@designcrowd/library.brand-page 6.2.12-publish-2 → 6.2.13
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/lib/src/{CreatedOnBrandCrowd-de-de-BtVKllNQ.js → CreatedOnBrandCrowd-de-de-COhZYMwW.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-CX5V0v8u.js → CreatedOnBrandCrowd-en-us-De5eIVfZ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-CbA02PCL.js → CreatedOnBrandCrowd-es-es-D7Bk2q4d.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-BQAKruBF.js → CreatedOnBrandCrowd-fr-ca-BBCuO0D-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-BQAKruBF.js → CreatedOnBrandCrowd-fr-fr-BBCuO0D-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-Yk_yzB3s.js → CreatedOnBrandCrowd-pt-br-B5MrGFq-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-Yk_yzB3s.js → CreatedOnBrandCrowd-pt-pt-B5MrGFq-.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-DJZQbPSD.js → CreatedOnDcom-de-de-CJSWCbRg.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-BJvNAa4l.js → CreatedOnDcom-en-us-OO0s0TRW.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-CUwB1FRY.js → CreatedOnDcom-es-es-DQX1lZq7.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-CK54U4oh.js → CreatedOnDcom-fr-ca-C5cQ3rla.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-DuUNBGrM.js → CreatedOnDcom-fr-fr-UdyUX0b_.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-BfODpFNV.js → CreatedOnDcom-pt-br-C0FiDCQG.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-Cf6u2GCg.js → CreatedOnDcom-pt-pt-CbbnZ7aN.js} +1 -1
- package/lib/src/brand-page/models/brand-page-context.model.d.ts +0 -2
- package/lib/src/brand-page/models/brand-page-context.model.js +0 -7
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +0 -21
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +0 -21
- package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +0 -7
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +0 -21
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +0 -21
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +0 -21
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +0 -21
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +0 -21
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +0 -21
- package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +0 -13
- package/lib/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.d.ts +2 -9
- package/lib/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.js +0 -20
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +0 -21
- package/lib/src/clients/ai-assistant-client.d.ts +1 -6
- package/lib/src/clients/ai-assistant-client.js +15 -7
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-kGRlD3_P.js → lib-DgFekeRm.js} +19378 -19392
- package/lib/src/shared/background-settings/store/background-settings-store.js +3 -1
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +0 -21
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +0 -21
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +0 -21
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +0 -21
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +0 -28
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +1 -22
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +0 -21
- package/package.json +2 -2
- package/src/brand-page/models/brand-page-context.model.test.ts +38 -0
- package/src/brand-page/models/brand-page-context.model.ts +0 -13
- package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +0 -18
- package/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.ts +0 -30
- package/src/clients/ai-assistant-client.test.ts +135 -0
- package/src/clients/ai-assistant-client.ts +18 -12
- package/src/shared/background-settings/store/background-settings-store.ts +3 -1
- package/lib/src/brand-page-maker/composables/ai-chat/ai-builder-experiment.d.ts +0 -10
- package/lib/src/brand-page-maker/composables/ai-chat/ai-builder-experiment.js +0 -11
- package/src/brand-page-maker/composables/ai-chat/ai-builder-experiment.test.ts +0 -82
- package/src/brand-page-maker/composables/ai-chat/ai-builder-experiment.ts +0 -19
|
@@ -158,13 +158,6 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
158
158
|
isVariation: boolean;
|
|
159
159
|
isExcluded: boolean;
|
|
160
160
|
} | undefined;
|
|
161
|
-
bp_6136_v2_ai_builder?: {
|
|
162
|
-
key: string;
|
|
163
|
-
value: string;
|
|
164
|
-
isControl: boolean;
|
|
165
|
-
isVariation: boolean;
|
|
166
|
-
isExcluded: boolean;
|
|
167
|
-
} | undefined;
|
|
168
161
|
};
|
|
169
162
|
isSubsequentPublish: boolean;
|
|
170
163
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -240,13 +233,6 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
240
233
|
isVariation: boolean;
|
|
241
234
|
isExcluded: boolean;
|
|
242
235
|
} | undefined;
|
|
243
|
-
bp_6136_v2_ai_builder?: {
|
|
244
|
-
key: string;
|
|
245
|
-
value: string;
|
|
246
|
-
isControl: boolean;
|
|
247
|
-
isVariation: boolean;
|
|
248
|
-
isExcluded: boolean;
|
|
249
|
-
} | undefined;
|
|
250
236
|
};
|
|
251
237
|
isSubsequentPublish: boolean;
|
|
252
238
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -322,13 +308,6 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
322
308
|
isVariation: boolean;
|
|
323
309
|
isExcluded: boolean;
|
|
324
310
|
} | undefined;
|
|
325
|
-
bp_6136_v2_ai_builder?: {
|
|
326
|
-
key: string;
|
|
327
|
-
value: string;
|
|
328
|
-
isControl: boolean;
|
|
329
|
-
isVariation: boolean;
|
|
330
|
-
isExcluded: boolean;
|
|
331
|
-
} | undefined;
|
|
332
311
|
};
|
|
333
312
|
isSubsequentPublish: boolean;
|
|
334
313
|
isContextualUpgradeModalVisible: boolean;
|
|
@@ -22,7 +22,6 @@ export interface WebsiteContext {
|
|
|
22
22
|
logoContext?: LogoContext;
|
|
23
23
|
}
|
|
24
24
|
export declare const AI_ASSISTANT_AGENT_TYPES: {
|
|
25
|
-
readonly WEBSITE_BUILDER: "website_builder";
|
|
26
25
|
readonly WEBSITE_BUILDER_V2: "website_builder_v2";
|
|
27
26
|
};
|
|
28
27
|
export type AiAssistantAgentType = (typeof AI_ASSISTANT_AGENT_TYPES)[keyof typeof AI_ASSISTANT_AGENT_TYPES];
|
|
@@ -45,16 +44,13 @@ export interface WebsiteCreateThreadRequest {
|
|
|
45
44
|
message: string;
|
|
46
45
|
websiteContext?: WebsiteContext;
|
|
47
46
|
websiteSnapshot?: string;
|
|
48
|
-
agentType: AiAssistantAgentType;
|
|
49
47
|
}
|
|
50
48
|
export interface WebsiteSendMessageRequest {
|
|
51
49
|
message: string;
|
|
52
50
|
websiteContext?: WebsiteContext;
|
|
53
51
|
websiteSnapshot?: string;
|
|
54
|
-
agentType: AiAssistantAgentType;
|
|
55
52
|
}
|
|
56
53
|
export interface WebsiteToolSubmissionRequest {
|
|
57
|
-
agentType: AiAssistantAgentType;
|
|
58
54
|
toolCalls: AiAssistantToolResult[];
|
|
59
55
|
runId?: string | null;
|
|
60
56
|
message?: string;
|
|
@@ -68,7 +64,6 @@ export interface WebsiteCreateThreadBuildRequest {
|
|
|
68
64
|
message: string;
|
|
69
65
|
websiteContext?: WebsiteContext;
|
|
70
66
|
websiteSnapshot?: string;
|
|
71
|
-
agentType: AiAssistantAgentType;
|
|
72
67
|
userPlan?: UserPlan;
|
|
73
68
|
connectionId: string;
|
|
74
69
|
locale?: string;
|
|
@@ -77,7 +72,6 @@ export interface WebsiteSendMessageBuildRequest {
|
|
|
77
72
|
message: string;
|
|
78
73
|
websiteContext?: WebsiteContext;
|
|
79
74
|
websiteSnapshot?: string;
|
|
80
|
-
agentType: AiAssistantAgentType;
|
|
81
75
|
userPlan?: UserPlan;
|
|
82
76
|
connectionId: string;
|
|
83
77
|
locale?: string;
|
|
@@ -113,6 +107,7 @@ export declare class AiAssistantClient {
|
|
|
113
107
|
private getRequestVerificationToken;
|
|
114
108
|
private getRequestHeaders;
|
|
115
109
|
private extractCreditInfo;
|
|
110
|
+
private withAgentType;
|
|
116
111
|
/**
|
|
117
112
|
* Create a new Website AI Assistant thread
|
|
118
113
|
*/
|
|
@@ -2,7 +2,6 @@ import axios, {} from 'axios';
|
|
|
2
2
|
import { useBrandPageContainerStore } from '../brand-page-maker/stores/brandpage-container/brand-page-container-store';
|
|
3
3
|
// Agent types
|
|
4
4
|
export const AI_ASSISTANT_AGENT_TYPES = {
|
|
5
|
-
WEBSITE_BUILDER: 'website_builder',
|
|
6
5
|
WEBSITE_BUILDER_V2: 'website_builder_v2',
|
|
7
6
|
};
|
|
8
7
|
// Website Endpoints
|
|
@@ -27,12 +26,21 @@ export class AiAssistantClient {
|
|
|
27
26
|
usage: parseInt(headers['x-ai-credit-usage'] || '0', 10),
|
|
28
27
|
};
|
|
29
28
|
}
|
|
29
|
+
// The agent spread last, so no caller can override it. Tool results sent to a
|
|
30
|
+
// different agent than the one running the thread fail the build
|
|
31
|
+
// (ai-v2-tool-submission-routing.md).
|
|
32
|
+
withAgentType(request) {
|
|
33
|
+
return {
|
|
34
|
+
...request,
|
|
35
|
+
agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER_V2,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
30
38
|
/**
|
|
31
39
|
* Create a new Website AI Assistant thread
|
|
32
40
|
*/
|
|
33
41
|
async createWebsiteThreadAndSendMessageAsync(request) {
|
|
34
42
|
try {
|
|
35
|
-
const response = await axios.post(getWebsiteCreateThreadEndpoint(), request, {
|
|
43
|
+
const response = await axios.post(getWebsiteCreateThreadEndpoint(), this.withAgentType(request), {
|
|
36
44
|
withCredentials: true,
|
|
37
45
|
headers: this.getRequestHeaders(),
|
|
38
46
|
});
|
|
@@ -54,7 +62,7 @@ export class AiAssistantClient {
|
|
|
54
62
|
throw new Error('threadId is required');
|
|
55
63
|
}
|
|
56
64
|
try {
|
|
57
|
-
const response = await axios.post(getWebsiteSendMessageEndpoint(threadId), request, {
|
|
65
|
+
const response = await axios.post(getWebsiteSendMessageEndpoint(threadId), this.withAgentType(request), {
|
|
58
66
|
withCredentials: true,
|
|
59
67
|
headers: this.getRequestHeaders(),
|
|
60
68
|
});
|
|
@@ -76,7 +84,7 @@ export class AiAssistantClient {
|
|
|
76
84
|
throw new Error('threadId is required');
|
|
77
85
|
}
|
|
78
86
|
try {
|
|
79
|
-
const response = await axios.post(getWebsiteToolSubmissionEndpoint(threadId), request, {
|
|
87
|
+
const response = await axios.post(getWebsiteToolSubmissionEndpoint(threadId), this.withAgentType(request), {
|
|
80
88
|
withCredentials: true,
|
|
81
89
|
headers: this.getRequestHeaders(),
|
|
82
90
|
});
|
|
@@ -92,7 +100,7 @@ export class AiAssistantClient {
|
|
|
92
100
|
}
|
|
93
101
|
async createWebsiteThreadBuildAsync(request) {
|
|
94
102
|
try {
|
|
95
|
-
const response = await axios.post(getWebsiteCreateThreadEndpoint(), request, {
|
|
103
|
+
const response = await axios.post(getWebsiteCreateThreadEndpoint(), this.withAgentType(request), {
|
|
96
104
|
withCredentials: true,
|
|
97
105
|
headers: this.getRequestHeaders(),
|
|
98
106
|
});
|
|
@@ -108,7 +116,7 @@ export class AiAssistantClient {
|
|
|
108
116
|
throw new Error('threadId is required');
|
|
109
117
|
}
|
|
110
118
|
try {
|
|
111
|
-
const response = await axios.post(getWebsiteSendMessageEndpoint(threadId), request, {
|
|
119
|
+
const response = await axios.post(getWebsiteSendMessageEndpoint(threadId), this.withAgentType(request), {
|
|
112
120
|
withCredentials: true,
|
|
113
121
|
headers: this.getRequestHeaders(),
|
|
114
122
|
});
|
|
@@ -124,7 +132,7 @@ export class AiAssistantClient {
|
|
|
124
132
|
throw new Error('threadId is required');
|
|
125
133
|
}
|
|
126
134
|
try {
|
|
127
|
-
const response = await axios.post(getWebsiteToolSubmissionEndpoint(threadId), request, {
|
|
135
|
+
const response = await axios.post(getWebsiteToolSubmissionEndpoint(threadId), this.withAgentType(request), {
|
|
128
136
|
withCredentials: true,
|
|
129
137
|
headers: this.getRequestHeaders(),
|
|
130
138
|
});
|
package/lib/src/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, a as S, b as I, c as N, d as e, e as A, f as O, g as t, B as C, h as D, i as G, j as P, k as R, l as o, m as L, n as M, o as r, p as n, q as c, r as i, s as l, t as b, u as F, v as g, w as B, x as Y, y as d, z as U, C as u, D as p, E as H, F as y, G as m, H as K, I as k, J as V, K as v, L as X, M as h, N as x, O as f, P as W, Q as z, R as w, S as J, T as Z, U as j, V as q, W as Q, X as $, Y as aa, Z as Ta, $ as Ea, a0 as _a, a1 as sa, a2 as Sa, a3 as Ia, a4 as Na, a5 as ea, a6 as Aa, a7 as Oa, a8 as ta, a9 as Ca, aa as Da, ab as Ga, ac as Pa, ad as Ra, ae as oa, af as La, ag as Ma, ah as ra, ai as na, aj as ca, ak as ia, al as la, am as ba, an as Fa, ao as ga, ap as Ba, aq as Ya, ar as da, as as Ua, at as ua, au as pa, av as Ha, aw as ya, ax as ma, ay as Ka, az as ka, aA as Va, aB as va, aC as Xa, aD as ha, aE as xa, aF as fa, aG as Wa, aH as za, aI as wa, aJ as Ja, aK as Za, aL as ja, aM as qa, aN as Qa, aO as $a, aP as aT, aQ as TT, aR as ET, aS as _T, aT as sT, aU as ST, aV as IT, aW as NT, aX as eT, aY as AT, aZ as OT, a_ as tT, a$ as CT, b0 as DT, b1 as GT, b2 as PT, b3 as RT, b4 as oT, b5 as LT, b6 as MT, b7 as rT, b8 as nT, b9 as cT, ba as iT, bb as lT, bc as bT, bd as FT, be as gT, bf as BT, bg as YT, bh as dT, bi as UT, bj as uT, bk as pT, bl as HT, bm as yT, bn as mT, bo as KT, bp as kT, bq as VT, br as vT, bs as XT, bt as hT, bu as xT, bv as fT, bw as WT, bx as zT, by as wT, bz as JT, bA as ZT, bB as jT, bC as qT, bD as QT, bE as $T, bF as aE, bG as TE, bH as EE, bI as _E, bJ as sE, bK as SE, bL as IE, bM as NE, bN as eE, bO as AE, bP as OE, bQ as tE, bR as CE, bS as DE, bT as GE, bU as PE, bV as RE, bW as oE, bX as LE, bY as ME, bZ as rE, b_ as nE, b$ as cE, c0 as iE, c1 as lE, c2 as bE, c3 as FE, c4 as gE, c5 as BE, c6 as YE, c7 as dE, c8 as UE, c9 as uE, ca as pE, cb as HE, cc as yE, cd as mE, ce as KE, cf as kE, cg as VE, ch as vE, ci as XE, cj as hE, ck as xE, cl as fE, cm as WE, cn as zE, co as wE, cp as JE, cq as ZE, cr as jE, cs as qE, ct as QE, cu as $E, cv as a_, cw as T_, cx as E_, cy as __, cz as s_, cA as S_, cB as I_, cC as N_, cD as e_, cE as A_, cF as O_, cG as t_, cH as C_, cI as D_, cJ as G_ } from "./lib-
|
|
1
|
+
import { A as s, a as S, b as I, c as N, d as e, e as A, f as O, g as t, B as C, h as D, i as G, j as P, k as R, l as o, m as L, n as M, o as r, p as n, q as c, r as i, s as l, t as b, u as F, v as g, w as B, x as Y, y as d, z as U, C as u, D as p, E as H, F as y, G as m, H as K, I as k, J as V, K as v, L as X, M as h, N as x, O as f, P as W, Q as z, R as w, S as J, T as Z, U as j, V as q, W as Q, X as $, Y as aa, Z as Ta, $ as Ea, a0 as _a, a1 as sa, a2 as Sa, a3 as Ia, a4 as Na, a5 as ea, a6 as Aa, a7 as Oa, a8 as ta, a9 as Ca, aa as Da, ab as Ga, ac as Pa, ad as Ra, ae as oa, af as La, ag as Ma, ah as ra, ai as na, aj as ca, ak as ia, al as la, am as ba, an as Fa, ao as ga, ap as Ba, aq as Ya, ar as da, as as Ua, at as ua, au as pa, av as Ha, aw as ya, ax as ma, ay as Ka, az as ka, aA as Va, aB as va, aC as Xa, aD as ha, aE as xa, aF as fa, aG as Wa, aH as za, aI as wa, aJ as Ja, aK as Za, aL as ja, aM as qa, aN as Qa, aO as $a, aP as aT, aQ as TT, aR as ET, aS as _T, aT as sT, aU as ST, aV as IT, aW as NT, aX as eT, aY as AT, aZ as OT, a_ as tT, a$ as CT, b0 as DT, b1 as GT, b2 as PT, b3 as RT, b4 as oT, b5 as LT, b6 as MT, b7 as rT, b8 as nT, b9 as cT, ba as iT, bb as lT, bc as bT, bd as FT, be as gT, bf as BT, bg as YT, bh as dT, bi as UT, bj as uT, bk as pT, bl as HT, bm as yT, bn as mT, bo as KT, bp as kT, bq as VT, br as vT, bs as XT, bt as hT, bu as xT, bv as fT, bw as WT, bx as zT, by as wT, bz as JT, bA as ZT, bB as jT, bC as qT, bD as QT, bE as $T, bF as aE, bG as TE, bH as EE, bI as _E, bJ as sE, bK as SE, bL as IE, bM as NE, bN as eE, bO as AE, bP as OE, bQ as tE, bR as CE, bS as DE, bT as GE, bU as PE, bV as RE, bW as oE, bX as LE, bY as ME, bZ as rE, b_ as nE, b$ as cE, c0 as iE, c1 as lE, c2 as bE, c3 as FE, c4 as gE, c5 as BE, c6 as YE, c7 as dE, c8 as UE, c9 as uE, ca as pE, cb as HE, cc as yE, cd as mE, ce as KE, cf as kE, cg as VE, ch as vE, ci as XE, cj as hE, ck as xE, cl as fE, cm as WE, cn as zE, co as wE, cp as JE, cq as ZE, cr as jE, cs as qE, ct as QE, cu as $E, cv as a_, cw as T_, cx as E_, cy as __, cz as s_, cA as S_, cB as I_, cC as N_, cD as e_, cE as A_, cF as O_, cG as t_, cH as C_, cI as D_, cJ as G_ } from "./lib-DgFekeRm.js";
|
|
2
2
|
import { U as R_, u as o_ } from "./useEventTracker-DwPTmzpa.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "vue-cropperjs";
|