Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions src/block/posts/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
getTypographyClasses,
} from '~stackable/block-components'
import { getBlockStyle } from '~stackable/hooks'
import { META_SEPARATORS } from '~stackable/util'

/**
* WordPress dependencies
Expand All @@ -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 ),
Expand Down
2 changes: 1 addition & 1 deletion src/components/design-library-list/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 2 additions & 1 deletion src/lazy-components/style-guide/utils.js
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -8,7 +10,6 @@ import { CssSaveCompiler } from '../../components/block-css'
import {
cleanSerializedBlock,
createUniqueClass,
blockStyleGenerators,
} from '~stackable/util'
import { PLACEHOLDER_INNER_BLOCKS } from './block-templates'

Expand Down
8 changes: 8 additions & 0 deletions src/util/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,3 +619,11 @@ export const cleanSerializedBlock = ( serialized, cb, attributes = {} ) => {

return cleanSerialized
}

export const META_SEPARATORS = {
dot: '·',
space: ' ',
comma: ',',
dash: '—',
pipe: '|',
}
1 change: 0 additions & 1 deletion src/util/styles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading