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.
package/dist/index.cjs CHANGED
@@ -9897,10 +9897,7 @@ var CollectionContextProvider = function CollectionContextProvider(props) {
9897
9897
  const result = await this.fetch(this.selected.id)
9898
9898
  this.selected = result
9899
9899
  }
9900
- function clear() {
9901
- this.selected = null
9902
- }
9903
- async function create(form) {
9900
+ async function create(form) {
9904
9901
  try {
9905
9902
  if (versioning) form.version = 1
9906
9903
  await API.create(form);
@@ -10068,11 +10065,17 @@ var CollectionContextProvider = function CollectionContextProvider(props) {
10068
10065
  console.log("CONTEXT LOAD for CustomFilters", customFilters);
10069
10066
  load();
10070
10067
  }, [customFilters]);
10068
+
10069
+ function clearSelection() {
10070
+ setSelected(null);
10071
+ }
10072
+
10071
10073
  var value = {
10072
10074
  all: all,
10073
10075
  load: load,
10074
10076
  selected: selected,
10075
10077
  select: select,
10078
+ clearSelection: clearSelection,
10076
10079
  filters: filters,
10077
10080
  setFilters: setFilters,
10078
10081
  setLikes: setLikes,