ywana-core8 0.0.724 → 0.0.726

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9889,10 +9889,7 @@ var CollectionContextProvider = function CollectionContextProvider(props) {
9889
9889
  const result = await this.fetch(this.selected.id)
9890
9890
  this.selected = result
9891
9891
  }
9892
- function clear() {
9893
- this.selected = null
9894
- }
9895
- async function create(form) {
9892
+ async function create(form) {
9896
9893
  try {
9897
9894
  if (versioning) form.version = 1
9898
9895
  await API.create(form);
@@ -10060,11 +10057,17 @@ var CollectionContextProvider = function CollectionContextProvider(props) {
10060
10057
  console.log("CONTEXT LOAD for CustomFilters", customFilters);
10061
10058
  load();
10062
10059
  }, [customFilters]);
10060
+
10061
+ function clearSelection() {
10062
+ setSelected(null);
10063
+ }
10064
+
10063
10065
  var value = {
10064
10066
  all: all,
10065
10067
  load: load,
10066
10068
  selected: selected,
10067
10069
  select: select,
10070
+ clearSelection: clearSelection,
10068
10071
  filters: filters,
10069
10072
  setFilters: setFilters,
10070
10073
  setLikes: setLikes,