Skip to content

Commit 591fd50

Browse files
committed
move meta separators to util
1 parent 0a25c70 commit 591fd50

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/block/posts/util.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
getTypographyClasses,
1313
} from '~stackable/block-components'
1414
import { getBlockStyle } from '~stackable/hooks'
15+
import { META_SEPARATORS } from '~stackable/util'
1516

1617
/**
1718
* WordPress dependencies
@@ -27,14 +28,6 @@ import { Fragment } from '@wordpress/element'
2728
*/
2829
import variations from './variations'
2930

30-
export const META_SEPARATORS = {
31-
dot: '·',
32-
space: ' ',
33-
comma: ',',
34-
dash: '—',
35-
pipe: '|',
36-
}
37-
3831
export const CONTENTS = [
3932
{
4033
label: __( 'Featured Image', i18n ),

src/components/design-library-list/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import DEFAULT from './default.json'
44
import {
55
settings, isPro, cdnUrl,
66
} from 'stackable'
7+
import { META_SEPARATORS } from '~stackable/util'
78

89
import { parse, serialize } from '@wordpress/blocks'
910
import { select } from '@wordpress/data'
10-
import { META_SEPARATORS } from '~stackable/block/posts/util'
1111

1212
export const DEFAULT_CONTENT = { ...DEFAULT }
1313
const PARSER = new DOMParser()

src/util/blocks.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,3 +619,11 @@ export const cleanSerializedBlock = ( serialized, cb, attributes = {} ) => {
619619

620620
return cleanSerialized
621621
}
622+
623+
export const META_SEPARATORS = {
624+
dot: '·',
625+
space: ' ',
626+
comma: ',',
627+
dash: '—',
628+
pipe: '|',
629+
}

0 commit comments

Comments
 (0)