@@ 57-71 (lines=15) @@ | ||
54 | * @throws DuplicateCollectionIdentifierException |
|
55 | * @throws DomainException |
|
56 | */ |
|
57 | private function registerJavascript() |
|
58 | { |
|
59 | $this->addJs( |
|
60 | CoreBlocksAssetManager::JS_HANDLE_CORE_BLOCKS, |
|
61 | [ |
|
62 | ReactAssetManager::JS_HANDLE_REACT, |
|
63 | ReactAssetManager::JS_HANDLE_REACT_DOM, |
|
64 | CoreAssetManager::JS_HANDLE_JS_CORE, |
|
65 | 'wp-components', |
|
66 | 'wp-i18n', |
|
67 | 'wp-keycodes', |
|
68 | 'wp-url', |
|
69 | ] |
|
70 | )->setRequiresTranslation(); |
|
71 | } |
|
72 | } |
|
73 |
@@ 43-57 (lines=15) @@ | ||
40 | * @throws DuplicateCollectionIdentifierException |
|
41 | * @throws DomainException |
|
42 | */ |
|
43 | private function registerJavascript() |
|
44 | { |
|
45 | $this->addJs( |
|
46 | EspressoCoreAppAssetManager::JS_HANDLE_EDITOR, |
|
47 | [ |
|
48 | ReactAssetManager::JS_HANDLE_REACT, |
|
49 | ReactAssetManager::JS_HANDLE_REACT_DOM, |
|
50 | CoreAssetManager::JS_HANDLE_JS_CORE, |
|
51 | 'wp-components', |
|
52 | 'wp-i18n', |
|
53 | 'wp-keycodes', |
|
54 | 'wp-url', |
|
55 | ] |
|
56 | )->setRequiresTranslation(); |
|
57 | } |
|
58 | } |
|
59 |