PluginProbe
Extendify / trunk
Extendify vtrunk
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | src/Agent/workflows/abilities/components/run/index.jsx +2 -0 3.1.6 → trunk View file →
@@ -1,9 +1,11 @@
1 1 import { Generic } from '@agent/workflows/abilities/components/run/Generic';
2 +import { OptimizeMedia } from '@agent/workflows/abilities/components/run/imagify/OptimizeMedia';
2 3 import { CreateProduct } from '@agent/workflows/abilities/components/run/woo/CreateProduct';
3 4 import { createElement } from '@wordpress/element';
4 5
5 6 const BY_ABILITY = {
7 + 'imagify/optimize-media': OptimizeMedia,
6 8 'woocommerce/product-create': CreateProduct,
7 9 };
8 10
9 11 export const hasRunComponent = (abilityName) => !!BY_ABILITY[abilityName];