@budibase/frontend-core 2.11.0 → 2.11.4

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/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "2.11.0",
3
+ "version": "2.11.4",
4
4
  "description": "Budibase frontend core libraries used in builder and client",
5
5
  "author": "Budibase",
6
6
  "license": "MPL-2.0",
7
7
  "svelte": "src/index.js",
8
8
  "dependencies": {
9
- "@budibase/bbui": "2.11.0",
10
- "@budibase/shared-core": "2.11.0",
9
+ "@budibase/bbui": "2.11.4",
10
+ "@budibase/shared-core": "2.11.4",
11
11
  "dayjs": "^1.10.8",
12
12
  "lodash": "^4.17.21",
13
13
  "socket.io-client": "^4.6.1",
14
14
  "svelte": "^3.46.2"
15
15
  },
16
- "gitHead": "1d9da91e460def8aea59b2370d237936823c0fa7"
16
+ "gitHead": "d68d6dd9178006ffdf8c5c3c2efacb3986551a72"
17
17
  }
@@ -3,6 +3,8 @@
3
3
  import RelationshipCell from "./RelationshipCell.svelte"
4
4
  import { FieldSubtype } from "@budibase/types"
5
5
 
6
+ export let api
7
+
6
8
  const { API } = getContext("grid")
7
9
  const { subtype } = $$props.schema
8
10
 
@@ -17,8 +19,11 @@
17
19
  throw `Search for '${subtype}' not implemented`
18
20
  }
19
21
 
22
+ // As we are overriding the search function from RelationshipCell, we want to map one shape to the expected one for the specific API
23
+ const email = Object.values(searchParams.query.string)[0]
24
+
20
25
  const results = await API.searchUsers({
21
- ...searchParams,
26
+ email,
22
27
  })
23
28
 
24
29
  // Mapping to the expected data within RelationshipCell
@@ -31,6 +36,7 @@
31
36
  </script>
32
37
 
33
38
  <RelationshipCell
39
+ bind:api
34
40
  {...$$props}
35
41
  {schema}
36
42
  {searchFunction}