corvée(dépendances) ajoute Carbon Fields
This commit is contained in:
parent
135cc65eed
commit
62368587e5
459 changed files with 72750 additions and 26 deletions
53
web/vendor/htmlburger/carbon-fields/packages/vendor/index.js
vendored
Normal file
53
web/vendor/htmlburger/carbon-fields/packages/vendor/index.js
vendored
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
/**
|
||||
* External dependencies.
|
||||
*/
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import nanoid from 'nanoid';
|
||||
import immer from 'immer';
|
||||
import * as apiFetch from '@wordpress/api-fetch';
|
||||
import * as compose from '@wordpress/compose';
|
||||
import * as element from '@wordpress/element';
|
||||
import * as hooks from '@wordpress/hooks';
|
||||
import * as data from '@wordpress/data';
|
||||
import * as i18n from '@wordpress/i18n';
|
||||
import * as classnames from 'classnames';
|
||||
import * as _ from 'lodash';
|
||||
import * as refractCallbag from 'refract-callbag';
|
||||
import * as callbagBasics from 'callbag-basics';
|
||||
|
||||
/**
|
||||
* Prevent the conflicts with WordPress's Underscore lib and other 3rd party plugins.
|
||||
*/
|
||||
_.noConflict();
|
||||
|
||||
/**
|
||||
* Setup the vendor variables used by Carbon Fields.
|
||||
*/
|
||||
window.cf = window.cf || {};
|
||||
window.cf.vendor = [
|
||||
[ 'react', React ],
|
||||
[ 'react-dom', ReactDOM ],
|
||||
[ 'nanoid', nanoid ],
|
||||
[ 'immer', immer ],
|
||||
[ '@wordpress/api-fetch', apiFetch ],
|
||||
[ '@wordpress/compose', compose ],
|
||||
[ '@wordpress/element', element ],
|
||||
[ '@wordpress/hooks', hooks ],
|
||||
[ '@wordpress/data', data ],
|
||||
[ '@wordpress/i18n', i18n ],
|
||||
[ 'classnames', classnames ],
|
||||
[ 'lodash', _ ],
|
||||
[ 'refract-callbag', refractCallbag ],
|
||||
[ 'callbag-basics', callbagBasics ]
|
||||
].reduce( ( vendors, [ key, implementation ] ) => {
|
||||
vendors[ key ] = implementation;
|
||||
|
||||
return vendors;
|
||||
}, {} );
|
||||
|
||||
/**
|
||||
* Setup the enviroment variables used by Carbon Fields.
|
||||
*/
|
||||
window.cf.hooks = hooks;
|
||||
window.cf.element = element;
|
||||
Loading…
Add table
Add a link
Reference in a new issue