This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the Interactivity API files to include latest changes (#9924)
* Update Interactivity API JS files * Disable TS checks in the Interactivity API for now * Add new SSR files * Replace wp_ prefixes with wc_ ones * Replace wp- prefix with wc- * Replace guternberg_ prefix with woocommerce_ * Remove file comments from Gutenberg * Rename files with `wp` prefix * Fix code to load Interactivity API php files * Remove TODO comments * Replace @WordPress with @woocommerce * Update Webpack configuration * Fix directive prefix * Remove interactivity folder from tsconfig exclude * Add client-side navigation meta tag code * Remove unneeded blocks.php file * Fix store tag id * Register Interactivity API runtime script * Fix Interactivity API runtime registering * Remove all files related to directive processing in PHP * Move json_encode to Store's render method
- Loading branch information
Showing
27 changed files
with
560 additions
and
661 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export const csnMetaTagItemprop = 'woo-client-side-navigation'; | ||
export const componentPrefix = 'woo-'; | ||
export const directivePrefix = 'data-woo-'; | ||
export const csnMetaTagItemprop = 'wc-client-side-navigation'; | ||
export const directivePrefix = 'wc'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import registerDirectives from './directives'; | ||
import registerComponents from './components'; | ||
import { init } from './router'; | ||
export { store } from './store'; | ||
export { navigate } from './router'; | ||
|
||
/** | ||
* Initialize the initial vDOM. | ||
* Initialize the Interactivity API. | ||
*/ | ||
document.addEventListener( 'DOMContentLoaded', async () => { | ||
registerDirectives(); | ||
registerComponents(); | ||
await init(); | ||
console.log( 'hydrated!' ); | ||
// eslint-disable-next-line no-console | ||
console.log( 'Interactivity API started' ); | ||
} ); |
Oops, something went wrong.