store
2 months ago
GenerateBgImage.js
2 months ago
block-duplicate-helper.js
2 months ago
capitalize.js
2 months ago
color-code-to-class.js
2 months ago
color-slug-to-color-code.js
2 months ago
common.scss
1 week ago
convert-to-grid.js
2 months ago
default-color-palette.js
2 months ago
delete-from-array.js
2 months ago
depModules.js
2 months ago
disable-links.js
1 week ago
empty-string-to-undefined.js
2 months ago
example-data.js
2 months ago
fixBrokenUnicode.js
2 months ago
font-awesome-new.js
1 week ago
font-awesome-version.js
2 months ago
font-awesome.js
2 months ago
formatNumCol.js
2 months ago
gradient-slug-to-gradient-code.js
2 months ago
heading-level-utils.js
2 months ago
hex-to-rgba.js
2 months ago
horizontal-scroll-controls.js
2 months ago
icon-label.js
1 week ago
is-excludes-blocks.js
2 months ago
is-gradient-style.js
2 months ago
is-hex-color.js
2 months ago
is-not-json.js
2 months ago
is-parent-reusable-block.js
2 months ago
merge-colors.js
2 months ago
multi-array-flaten.js
2 months ago
removeProperty.js
2 months ago
replaceClientId.js
2 months ago
sanitizeSlug.js
2 months ago
settings-page-url.js
1 week ago
strip-html.js
2 months ago
taxonomy-utils.js
2 months ago
to-number.js
2 months ago
to-preset-spacing-var.js
2 months ago
unit-options.js
2 months ago
wrap-unwrap.js
2 months ago
depModules.js
37 lines
| 1 | import { select, dispatch } from '@wordpress/data'; |
| 2 | /** |
| 3 | * 下記は vkbBlockEditor でしか使われていなかったのでコメントアウト |
| 4 | * vkbBlockEditor が復活したり他で� |
| 5 | 要になったときのために一応残す |
| 6 | */ |
| 7 | // import * as blockEditor from '@wordpress/block-editor'; |
| 8 | // import * as editor from '@wordpress/editor'; |
| 9 | import ServerSideRender from '@wordpress/server-side-render'; |
| 10 | import * as components from '@wordpress/components'; |
| 11 | |
| 12 | /* |
| 13 | ・vkbBlockEditor はすでに使われていない |
| 14 | ・@wordpress/editor を読み込むと 外観 > ウィジェット で怒られる |
| 15 | ("wp-editor" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets).) |
| 16 | |
| 17 | 上記の点からコメントアウトしました |
| 18 | |
| 19 | export const vkbBlockEditor = |
| 20 | blockEditor && blockEditor.BlockEdit ? blockEditor : editor; |
| 21 | */ |
| 22 | export const depServerSideRender = () => { |
| 23 | if (ServerSideRender) { |
| 24 | return ServerSideRender; |
| 25 | } |
| 26 | return components.ServerSideRender; |
| 27 | }; |
| 28 | |
| 29 | export const selectEditor = select('core/block-editor') |
| 30 | ? select('core/block-editor') |
| 31 | : select('core/editor'); |
| 32 | export const dispatchEditor = dispatch('core/block-editor') |
| 33 | ? dispatch('core/block-editor') |
| 34 | : dispatch('core/editor'); |
| 35 | |
| 36 | export { fixBrokenUnicode } from './fixBrokenUnicode'; |
| 37 |