795f008952
* Change the default for Mini Cart block The Block Hooks API currently doesn’t allow for setting the default state of the block injected into content so this ensures the mini-cart block has a better default state for injection. The current default (displaying total value in cart) takes up more width increasing the risk of poor layout. * Utilize Block Hooks to automatically inject mini-cart block. * include experimental prefix on filters * Fix filter name. * remove experimental prefix. On thinking about this, I don’t think these need to be experimental. They are intentionally provided as escape hatches for hosts/themes that want to opt-in/out so we’ll have to support them when this is shipped (at least until its no longer needed!) * fix variable name! * fix unit tests because of new default * remove another incorrect text expectation Defaults for the block affect this expectation. * fix E2E tests * Mini Cart Block: improve E2E test * fix: improve check for the Product Collection block --------- Co-authored-by: Luigi Teschio <gigitux@gmail.com> |
||
---|---|---|
.. | ||
mini-cart-contents | ||
quantity-badge | ||
test | ||
utils | ||
block.json | ||
block.tsx | ||
component-frontend.tsx | ||
edit.tsx | ||
editor.scss | ||
frontend.ts | ||
index.tsx | ||
style.scss | ||
types.ts |