@builder.io/ai-utils 0.0.55 → 0.0.57
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/completion.d.ts +4 -0
- package/dist/settings.js +2 -2
- package/package.json +1 -1
package/dist/completion.d.ts
CHANGED
|
@@ -89,6 +89,10 @@ export interface BuilderEditorState {
|
|
|
89
89
|
* Other models in the Builder account
|
|
90
90
|
*/
|
|
91
91
|
otherModels?: BuilderModel[];
|
|
92
|
+
/**
|
|
93
|
+
* The URL that the Builder content preview is pointing to.
|
|
94
|
+
*/
|
|
95
|
+
previewUrl?: string;
|
|
92
96
|
/**
|
|
93
97
|
* Selected ids in the builder.
|
|
94
98
|
*/
|
package/dist/settings.js
CHANGED
|
@@ -15,8 +15,8 @@ const urlParamSettings = [
|
|
|
15
15
|
"viewId",
|
|
16
16
|
];
|
|
17
17
|
export function getAssistantUrl(opts = {}) {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
var _a;
|
|
19
|
+
const url = new URL((_a = opts.baseUrl) !== null && _a !== void 0 ? _a : (opts.local ? "http://localhost:7242" : "https://assistant.builder.io"));
|
|
20
20
|
urlParamSettings.forEach((key) => {
|
|
21
21
|
const value = opts[key];
|
|
22
22
|
if (typeof value === "string" || typeof value === "boolean") {
|