Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Interactivity API: implement the new store() API #11071

Merged
merged 53 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
8450749
Sync Interactivity API code with Gutenberg
luisherranz Sep 25, 2023
c467f35
New store() API
luisherranz Sep 26, 2023
d196254
Store raw actions
luisherranz Sep 26, 2023
39230bf
Update wc-interactivity-store implementation
DAreRodz Sep 29, 2023
34f09af
Replace `wc_store` with `wc_initial_state`
DAreRodz Sep 29, 2023
6e2e838
Parse and populate initial state
DAreRodz Sep 29, 2023
6636df7
Allow store parts in `store()`
DAreRodz Sep 29, 2023
35d9b17
Accept namespaces in directive paths
DAreRodz Sep 29, 2023
a1ee265
Add $$namespace to directives' object values
DAreRodz Sep 29, 2023
4f83002
Make namespace parsing more robust
DAreRodz Sep 29, 2023
0840c78
Use DeepPartial type for store parts
DAreRodz Sep 29, 2023
826bb6e
Do not pass `rawStore` to `afterLoad` callbacks
DAreRodz Oct 2, 2023
61e6636
Simplify `store()` a bit
DAreRodz Oct 2, 2023
447bc23
Implement `privateStore()`
DAreRodz Oct 2, 2023
9f78157
Sync context directive with Gutenberg
luisherranz Oct 4, 2023
2b694e7
Refactor scope and extract getters per scope
luisherranz Oct 4, 2023
6185cfe
Add namespace to getters and actions
DAreRodz Oct 6, 2023
ba71c22
Remove current privateStore implementation
DAreRodz Oct 6, 2023
cff0dc7
Remove `afterLoad` option from `store`
DAreRodz Oct 6, 2023
0601c4e
Use same proxy handlers for ns, getters and actions
DAreRodz Oct 6, 2023
c32fa0c
Set scope inside `evaluate`
DAreRodz Oct 7, 2023
39cdbe3
Refactor proxy handlers
DAreRodz Oct 7, 2023
e07f0d1
Improve types a bit
DAreRodz Oct 7, 2023
97cac9d
Catch errors in async actions
DAreRodz Oct 7, 2023
96631ce
Implement stacks for scopes and namespaces
DAreRodz Oct 9, 2023
c3ac5c5
Implement `getElement`
DAreRodz Oct 10, 2023
e4180a7
Change directives object structure
DAreRodz Oct 10, 2023
1d59c78
Remove unnecessary import
DAreRodz Oct 11, 2023
1b696c4
Implement private stores
DAreRodz Oct 11, 2023
9537884
Return value from sync actions
DAreRodz Oct 11, 2023
f1e0cdf
Minor optimizations and improved comments
luisherranz Oct 12, 2023
9ae9002
Don't use async inside `data-wp-watch`
luisherranz Oct 13, 2023
f0508c9
Use a single Provider in context directive
DAreRodz Oct 17, 2023
2750a07
Remove DeepPartial type
DAreRodz Oct 17, 2023
0662935
Do not check if element exists
DAreRodz Oct 17, 2023
48adf83
Add the `current` prop of state inside the scope
DAreRodz Oct 17, 2023
3b22797
Move getters outside scope
DAreRodz Oct 17, 2023
0740232
Fix wc-key assignment
DAreRodz Nov 8, 2023
bb8adf1
Merge branch 'trunk' into interactivity-api-new-store-api
DAreRodz Nov 8, 2023
6fc6f60
Fix missing `navigate` in directives
DAreRodz Nov 8, 2023
8e61632
Fix namespace not being picked in the same element
luisherranz Nov 10, 2023
691bb54
Merge branch 'trunk' into interactivity-api-new-store-api
luisherranz Nov 10, 2023
e1c1007
Deep merge raw stores instead of proxied ones
DAreRodz Nov 13, 2023
8e605e6
Fix namespace assignment
DAreRodz Nov 14, 2023
5d91a56
Allow forward slashes in namespaces
DAreRodz Nov 14, 2023
8fc2917
Merge branch 'trunk' into interactivity-api-new-store-api
DAreRodz Nov 15, 2023
9ea4bfe
Migration of Product Collection and Product Button blocks to the new …
luisherranz Nov 16, 2023
6413756
Merge branch 'trunk' into interactivity-api-new-store-api
DAreRodz Nov 17, 2023
b67b264
Merge branch 'trunk' into interactivity-api-new-store-api
DAreRodz Nov 17, 2023
f665a38
Fix error when closing product gallery dialog with keyboard escape key
roykho Nov 17, 2023
09821c9
Merge branch 'trunk' of github.com:woocommerce/woocommerce-blocks int…
gigitux Nov 21, 2023
fa5932c
Merge commit 'a94a442d9a4cf40cb3cc68e08e172ccba1304bd2' into interact…
luisherranz Nov 21, 2023
8f675cd
use wc_initial_state instead of wc_store
gigitux Nov 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion assets/js/interactivity/constants.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export const csnMetaTagItemprop = 'wc-client-side-navigation';
export const directivePrefix = 'wc';
Loading
Loading