@budibase/frontend-core 1.0.213 → 1.0.216
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 +3 -3
- package/src/api/flags.js +9 -0
- package/src/api/other.js +9 -0
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.216",
|
|
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": "^1.0.
|
|
9
|
+
"@budibase/bbui": "^1.0.216",
|
|
10
10
|
"lodash": "^4.17.21",
|
|
11
11
|
"svelte": "^3.46.2"
|
|
12
12
|
},
|
|
13
|
-
"gitHead": "
|
|
13
|
+
"gitHead": "c14c7100278bcc04791f2b446c7c150f3b4c5d0e"
|
|
14
14
|
}
|
package/src/api/flags.js
CHANGED
|
@@ -22,4 +22,13 @@ export const buildFlagEndpoints = API => ({
|
|
|
22
22
|
},
|
|
23
23
|
})
|
|
24
24
|
},
|
|
25
|
+
/**
|
|
26
|
+
* Allows us to experimentally toggle a beta UI feature through a cookie.
|
|
27
|
+
* @param value the feature to toggle
|
|
28
|
+
*/
|
|
29
|
+
toggleUiFeature: async ({ value }) => {
|
|
30
|
+
return await API.post({
|
|
31
|
+
url: `/api/beta/${value}`,
|
|
32
|
+
})
|
|
33
|
+
},
|
|
25
34
|
})
|
package/src/api/other.js
CHANGED
|
@@ -54,4 +54,13 @@ export const buildOtherEndpoints = API => ({
|
|
|
54
54
|
url: "/api/permission/builtin",
|
|
55
55
|
})
|
|
56
56
|
},
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if they are part of the budibase beta program.
|
|
60
|
+
*/
|
|
61
|
+
checkBetaAccess: async email => {
|
|
62
|
+
return await API.get({
|
|
63
|
+
url: `/api/beta/access?email=${email}`,
|
|
64
|
+
})
|
|
65
|
+
},
|
|
57
66
|
})
|