-
Notifications
You must be signed in to change notification settings - Fork 219
Update directives prefix to data-woo-
#8316
Conversation
The release ZIP for this PR is accessible via:
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the TypeScript Errors Report
assets/js/interactivity/directives.js
|
Size Change: +140 B (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
woo-
and wpx
to wooStore
data-woo-
and wpx
to wooStore
This PR has been marked as If deemed still relevant, the pr can be kept active by ensuring it's up to date with the main branch and removing the stale label. |
data-woo-
and wpx
to wooStore
data-woo-
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I also left a minor comment.
@@ -0,0 +1,3 @@ | |||
export const cstMetaTagItemprop = 'woo-client-side-transitions'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if we will remove it later once we switch to Product block-only navigation, but to match the upstream this should now be called woo-client-side-navigation
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I think I've already included those changes in #8447, so I'm going to merge this PR and continue the development there.
What
Rename existing
wp
prefixes todata-woo
.Tracking issue: woocommerce/woocommerce#42486
Why
It is better if we don't use
wp
for now, as this is going to be something woo-specific until the final Interactivity API is released.How
Basically, updating the interactivity library to match WordPress/block-interactivity-experiments#142 and changing the value of the properties defined in
constants.js
.