@budibase/frontend-core 3.8.4 → 3.8.6

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "3.8.4",
3
+ "version": "3.8.6",
4
4
  "description": "Budibase frontend core libraries used in builder and client",
5
5
  "author": "Budibase",
6
6
  "license": "MPL-2.0",
@@ -17,5 +17,5 @@
17
17
  "shortid": "2.2.15",
18
18
  "socket.io-client": "^4.7.5"
19
19
  },
20
- "gitHead": "26eae99d75fe3fe7e467e186ee9d40acdc6dff95"
20
+ "gitHead": "74dd49640111c5d634c8a8417ce4019cdc1a77b0"
21
21
  }
@@ -22,6 +22,9 @@ export interface AttachmentEndpoints {
22
22
  data: any
23
23
  ) => Promise<ProcessAttachmentResponse>
24
24
  uploadBuilderAttachment: (data: any) => Promise<ProcessAttachmentResponse>
25
+ uploadPWAZip: (
26
+ data: FormData
27
+ ) => Promise<{ icons: Array<{ src: string; sizes: string; type: string }> }>
25
28
  externalUpload: (
26
29
  datasourceId: string,
27
30
  bucket: string,
@@ -79,6 +82,14 @@ export const buildAttachmentEndpoints = (
79
82
  })
80
83
  },
81
84
 
85
+ uploadPWAZip: async data => {
86
+ return await API.post({
87
+ url: "/api/pwa/process-zip",
88
+ body: data,
89
+ json: false,
90
+ })
91
+ },
92
+
82
93
  /**
83
94
  * Uploads a file to an external datasource.
84
95
  * @param datasourceId the ID of the datasource to upload to
package/src/constants.ts CHANGED
@@ -52,9 +52,9 @@ export const BudibaseRoleOptionsOld = [
52
52
  ]
53
53
  export const BudibaseRoleOptions = [
54
54
  {
55
- label: "Account admin",
55
+ label: "Workspace admin",
56
56
  value: BudibaseRoles.Admin,
57
- subtitle: "Has full access to all apps and settings in your account",
57
+ subtitle: "Has full access to all apps and settings in your workspace",
58
58
  sortOrder: 1,
59
59
  },
60
60
  {