diff --git a/src/block/posts/util.js b/src/block/posts/util.js index 94c5fb1211..b1d5f516d7 100644 --- a/src/block/posts/util.js +++ b/src/block/posts/util.js @@ -12,6 +12,7 @@ import { getTypographyClasses, } from '~stackable/block-components' import { getBlockStyle } from '~stackable/hooks' +import { META_SEPARATORS } from '~stackable/util' /** * WordPress dependencies @@ -27,14 +28,6 @@ import { Fragment } from '@wordpress/element' */ import variations from './variations' -export const META_SEPARATORS = { - dot: '·', - space: ' ', - comma: ',', - dash: '—', - pipe: '|', -} - export const CONTENTS = [ { label: __( 'Featured Image', i18n ), diff --git a/src/components/design-library-list/util.js b/src/components/design-library-list/util.js index 98e16014af..8e64be7759 100644 --- a/src/components/design-library-list/util.js +++ b/src/components/design-library-list/util.js @@ -4,10 +4,10 @@ import DEFAULT from './default.json' import { settings, isPro, cdnUrl, } from 'stackable' +import { META_SEPARATORS } from '~stackable/util' import { parse, serialize } from '@wordpress/blocks' import { select } from '@wordpress/data' -import { META_SEPARATORS } from '~stackable/block/posts/util' export const DEFAULT_CONTENT = { ...DEFAULT } const PARSER = new DOMParser() diff --git a/src/util/styles/block-style-generators.js b/src/lazy-components/style-guide/block-style-generators.js similarity index 100% rename from src/util/styles/block-style-generators.js rename to src/lazy-components/style-guide/block-style-generators.js diff --git a/src/lazy-components/style-guide/utils.js b/src/lazy-components/style-guide/utils.js index 5f056527bb..e446b58124 100644 --- a/src/lazy-components/style-guide/utils.js +++ b/src/lazy-components/style-guide/utils.js @@ -1,5 +1,7 @@ import heroBg from './images/hero-bg.webp' import profile from './images/profile.webp' +import { blockStyleGenerators } from './block-style-generators' + import { i18n, srcUrl, version as VERSION, } from 'stackable' @@ -8,7 +10,6 @@ import { CssSaveCompiler } from '../../components/block-css' import { cleanSerializedBlock, createUniqueClass, - blockStyleGenerators, } from '~stackable/util' import { PLACEHOLDER_INNER_BLOCKS } from './block-templates' diff --git a/src/util/blocks.js b/src/util/blocks.js index f92bd421e1..ccc54297cc 100644 --- a/src/util/blocks.js +++ b/src/util/blocks.js @@ -619,3 +619,11 @@ export const cleanSerializedBlock = ( serialized, cb, attributes = {} ) => { return cleanSerialized } + +export const META_SEPARATORS = { + dot: '·', + space: ' ', + comma: ',', + dash: '—', + pipe: '|', +} diff --git a/src/util/styles/index.js b/src/util/styles/index.js index 8ec36c9dcd..2c36aeed45 100644 --- a/src/util/styles/index.js +++ b/src/util/styles/index.js @@ -15,7 +15,6 @@ import { applyFilters } from '@wordpress/hooks' export { default as StyleObject } from './style-object' export { useStyles, getStyles } from './style-object' export { useQueryLoopInstanceId } from './style-object' -export { blockStyleGenerators } from './block-style-generators' export const isDarkColor = _color => { try {