PluginProbe
Scrollsequence – Cinematic Scroll Image Animation Plugin / 1.5.5
Scrollsequence – Cinematic Scroll Image Animation Plugin v1.5.5
1.4.3 1.4.4 1.4.5 1.4.6 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 trunk 0.9.92 0.9.93 0.9.94 0.9.96 1.0.072 1.0.073 All 61 releases
scrollsequence / includes / carbonfields / htmlburger / carbon-fields / packages / blocks / fields / index.js

index.js in Scrollsequence – Cinematic Scroll Image Animation Plugin 1.5.5, at includes/carbonfields/htmlburger/carbon-fields/packages/blocks/fields/index.js

64 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * External dependencies.
3 */
4 import { compose } from '@wordpress/compose';
5 import { addFilter } from '@wordpress/hooks';
6 import { withDispatch } from '@wordpress/data';
7
8 /**
9 * Carbon Fields dependencies.
10 */
11 import { withValidation } from '@carbon-fields/core';
12
13 /**
14 * Internal dependencies.
15 */
16 import withConditionalLogic from '../hocs/with-conditional-logic';
17 import isGutenberg from '../../metaboxes/utils/is-gutenberg';
18
19 /**
20 * Connects every field to the store.
21 */
22 addFilter( 'carbon-fields.field-edit.block', 'carbon-fields/blocks', compose(
23 withConditionalLogic,
24 withDispatch( ( dispatch ) => {
25 // Widgets support - WordPress 5.8
26 if ( isGutenberg() ) {
27 const { lockPostSaving, unlockPostSaving } = dispatch( 'core/editor' );
28
29 return {
30 lockSaving: lockPostSaving,
31 unlockSaving: unlockPostSaving
32 };
33 }
34
35 return {};
36 } ),
37 withValidation
38 ) );
39
40 /**
41 * Internal dependencies.
42 */
43 import './association';
44 import './complex';
45 import './datetime';
46 import './file';
47 import './footer-scripts';
48 import './header-scripts';
49 import './hidden';
50 import './image';
51 import './map';
52 import './multiselect';
53 import './media-gallery';
54 import './oembed';
55 import './radio';
56 import './radio-image';
57 import './select';
58 import './set';
59 import './sidebar';
60 import './separator';
61 import './text';
62 import './textarea';
63 import './block-preview';
64