| 1 |
<?php |
| 2 |
|
| 3 |
namespace WordProof\SDK\Config; |
| 4 |
|
| 5 |
class ScriptsConfig extends Config |
| 6 |
{ |
| 7 |
/** |
| 8 |
* Returns an array with the environment config. |
| 9 |
* |
| 10 |
* @return array |
| 11 |
*/ |
| 12 |
protected static function values() |
| 13 |
{ |
| 14 |
return [ |
| 15 |
'uikit' => [ |
| 16 |
'dependencies' => [], |
| 17 |
'type' => 'js' |
| 18 |
], |
| 19 |
'data' => [ |
| 20 |
'dependencies' => ['wp-data', 'lodash', 'wp-api-fetch'], |
| 21 |
'type' => 'js' |
| 22 |
], |
| 23 |
'wordproof-block-editor' => [ |
| 24 |
'dependencies' => ['wp-i18n', 'wp-element', 'wp-components', 'wp-editor', 'wp-edit-post', 'wp-data', 'lodash', 'wordproof-data'], |
| 25 |
'type' => 'js' |
| 26 |
], |
| 27 |
'wordproof-elementor-editor' => [ |
| 28 |
'dependencies' => ['wp-i18n', 'wp-element', 'wp-components', 'wp-editor', 'wp-edit-post', 'wp-data', 'lodash', 'wordproof-data', 'elementor-common'], |
| 29 |
'type' => 'js' |
| 30 |
], |
| 31 |
'wordproof-classic-editor' => [ |
| 32 |
'dependencies' => ['wp-i18n', 'wp-element', 'wp-components', 'wp-editor', 'wp-edit-post', 'wp-data', 'lodash', 'wordproof-data'], |
| 33 |
'type' => 'js' |
| 34 |
] |
| 35 |
]; |
| 36 |
} |
| 37 |
} |
| 38 |
|