@secretstache/wordpress-gutenberg 0.6.1 → 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/build/index.js +932 -921
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/helpers.js +2 -2
package/package.json
CHANGED
package/src/utils/helpers.js
CHANGED
@@ -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();
|