@budibase/frontend-core 3.9.1 → 3.9.2

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.9.1",
3
+ "version": "3.9.2",
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": "47ec626edb1cf53f7bcae95fc6496d2044235052"
20
+ "gitHead": "f9927b35b3939f1b96eb911d820ba5b06f288cd6"
21
21
  }
package/src/api/ai.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  import { GenerateJsRequest, GenerateJsResponse } from "@budibase/types"
2
2
  import { BaseAPIClient } from "./types"
3
+ import { sleep } from "../utils/utils"
3
4
 
4
5
  export interface AIEndpoints {
5
6
  generateCronExpression: (prompt: string) => Promise<{ message: string }>
6
7
  generateJs: (req: GenerateJsRequest) => Promise<GenerateJsResponse>
8
+ generateTables: (prompt: string) => Promise<void>
7
9
  }
8
10
 
9
11
  export const buildAIEndpoints = (API: BaseAPIClient): AIEndpoints => ({
@@ -23,4 +25,8 @@ export const buildAIEndpoints = (API: BaseAPIClient): AIEndpoints => ({
23
25
  body: req,
24
26
  })
25
27
  },
28
+ generateTables: async prompt => {
29
+ console.warn({ prompt })
30
+ await sleep(1000)
31
+ },
26
32
  })
@@ -134,7 +134,6 @@
134
134
  opacity: 0.16;
135
135
  background: var(--spectrum-global-color-blue-400);
136
136
  z-index: 2;
137
- pointer-events: none;
138
137
  }
139
138
 
140
139
  /* Cell border for cells with labels */
@@ -161,6 +160,7 @@
161
160
  }
162
161
  .cell:not(.focused) {
163
162
  user-select: none;
163
+ -webkit-user-select: none;
164
164
  }
165
165
  .cell:hover {
166
166
  cursor: default;