@designcrowd/library.brand-page 6.0.7-v2-poc-4 → 6.0.7
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-OJqJo1Wz.js → CreatedOnBrandCrowd-de-de-BHdSggJF.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-5TwDKB4_.js → CreatedOnBrandCrowd-en-us-BkXgCP9b.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-DQ8sEmwY.js → CreatedOnBrandCrowd-es-es-BH5wgsCf.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-DiFwY3MJ.js → CreatedOnBrandCrowd-fr-ca-B1G1uA0h.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-DiFwY3MJ.js → CreatedOnBrandCrowd-fr-fr-B1G1uA0h.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-DN4tw0t4.js → CreatedOnBrandCrowd-pt-br-DsxKSbvj.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-DN4tw0t4.js → CreatedOnBrandCrowd-pt-pt-DsxKSbvj.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-BQptVYpC.js → CreatedOnDcom-de-de-Cl5GF-VM.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DkS9fQ84.js → CreatedOnDcom-en-us-CdrjUK9h.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-Bu-yOvlp.js → CreatedOnDcom-es-es-C_TWy69G.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-DD1jC-dk.js → CreatedOnDcom-fr-ca-rS0AwFJa.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-ChhcEHhG.js → CreatedOnDcom-fr-fr-DqDRkB4g.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-CcPPSv3q.js → CreatedOnDcom-pt-br-CSMHvqvM.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-DP6EVmg_.js → CreatedOnDcom-pt-pt-DQBCQkNp.js} +1 -1
- package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +4 -9
- 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 -29
- package/lib/src/clients/ai-assistant-client.d.ts +0 -1
- package/lib/src/clients/ai-assistant-client.js +0 -1
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-Bdg-EA-8.js → lib-CoiqQTUC.js} +14972 -15105
- package/lib/src/metadata-builder/builders/global-styles-builder.js +0 -16
- package/lib/src/metadata-builder/builders/section-builders/text-section-builder.js +1 -4
- package/lib/src/metadata-builder/builders/section-field-utils.d.ts +1 -6
- package/lib/src/metadata-builder/builders/section-field-utils.js +12 -48
- package/package.json +1 -1
- package/src/brand-page-maker/components/ai-website-builder/AiWebsiteBuilder.vue +2 -37
- package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +4 -8
- package/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.ts +0 -43
- package/src/clients/ai-assistant-client.ts +0 -1
- package/src/metadata-builder/builders/global-styles-builder.ts +0 -21
- package/src/metadata-builder/builders/section-builders/text-section-builder.ts +1 -4
- package/src/metadata-builder/builders/section-field-utils.ts +18 -69
- package/lib/src/metadata-builder/builders/global-font-propagation.d.ts +0 -28
- package/lib/src/metadata-builder/builders/global-font-propagation.js +0 -125
- package/src/metadata-builder/builders/global-font-propagation.test.ts +0 -269
- package/src/metadata-builder/builders/global-font-propagation.ts +0 -205
- package/src/metadata-builder/builders/section-field-utils.test.ts +0 -83
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, computed, watch, nextTick } from 'vue';
|
|
2
|
-
import { getInstance as getAiAssistantClient, } from '../../../clients/ai-assistant-client';
|
|
2
|
+
import { getInstance as getAiAssistantClient, AI_ASSISTANT_AGENT_TYPES, } from '../../../clients/ai-assistant-client';
|
|
3
3
|
import { FabricRenderClient } from '../../../clients/fabric-render-client';
|
|
4
4
|
import { parseLogoThemeToCssStyles } from '../../../brand-page/utils/style.util';
|
|
5
5
|
import { AI_ASSISTANT_TOOL_NAMES } from '../../../metadata-builder/parsers/ai-toolcall-parser';
|
|
@@ -331,7 +331,7 @@ export function useAiWebsiteBuilderChat() {
|
|
|
331
331
|
message,
|
|
332
332
|
websiteContext,
|
|
333
333
|
websiteSnapshot: snapshotStore.snapshotBase64 || undefined,
|
|
334
|
-
agentType:
|
|
334
|
+
agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER,
|
|
335
335
|
userPlan,
|
|
336
336
|
connectionId,
|
|
337
337
|
});
|
|
@@ -341,7 +341,7 @@ export function useAiWebsiteBuilderChat() {
|
|
|
341
341
|
message,
|
|
342
342
|
websiteContext,
|
|
343
343
|
websiteSnapshot: snapshotStore.snapshotBase64 || undefined,
|
|
344
|
-
agentType:
|
|
344
|
+
agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER,
|
|
345
345
|
userPlan,
|
|
346
346
|
connectionId,
|
|
347
347
|
});
|
|
@@ -486,14 +486,9 @@ export function useAiWebsiteBuilderChat() {
|
|
|
486
486
|
failedResults,
|
|
487
487
|
retryCount,
|
|
488
488
|
});
|
|
489
|
-
// Tool submissions must go to the SAME agent that ran the thread —
|
|
490
|
-
// hardcoding V1 here routed every V2 tool result (incl. failed-section
|
|
491
|
-
// repairs) to the V1 service, which has no state for the thread and
|
|
492
|
-
// fails the build (AI QA 2026-07-05: T19 'Something went wrong'; V2's
|
|
493
|
-
// silent-repair loop was never reached from the editor).
|
|
494
489
|
const submitResult = await client.submitToolResultsBuildAsync(aiThreadStore.threadId, {
|
|
495
490
|
toolCalls: toolResults,
|
|
496
|
-
agentType:
|
|
491
|
+
agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER,
|
|
497
492
|
connectionId,
|
|
498
493
|
retryCount,
|
|
499
494
|
userPlan,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type AiAssistantAgentType } from '../../../clients/ai-assistant-client';
|
|
2
1
|
export declare const useAiWebsiteBuilderThreadStore: import("pinia").StoreDefinition<"aiWebsiteBuilderThread", Pick<{
|
|
3
2
|
threadId: import("vue").Ref<string | null, string | null>;
|
|
4
3
|
runId: import("vue").Ref<string | null, string | null>;
|
|
@@ -9,9 +8,7 @@ export declare const useAiWebsiteBuilderThreadStore: import("pinia").StoreDefini
|
|
|
9
8
|
buildSectionsCompleted: import("vue").Ref<number, number>;
|
|
10
9
|
promptText: import("vue").Ref<string, string>;
|
|
11
10
|
stopGeneration: import("vue").Ref<(() => void) | null, (() => void) | null>;
|
|
12
|
-
|
|
13
|
-
setSelectedAgentType: (type: AiAssistantAgentType) => void;
|
|
14
|
-
}, "threadId" | "runId" | "messages" | "isProcessing" | "buildId" | "isBuildInProgress" | "buildSectionsCompleted" | "promptText" | "stopGeneration" | "selectedAgentType">, Pick<{
|
|
11
|
+
}, "threadId" | "runId" | "messages" | "isProcessing" | "buildId" | "isBuildInProgress" | "buildSectionsCompleted" | "promptText" | "stopGeneration">, Pick<{
|
|
15
12
|
threadId: import("vue").Ref<string | null, string | null>;
|
|
16
13
|
runId: import("vue").Ref<string | null, string | null>;
|
|
17
14
|
messages: import("vue").Ref<any[], any[]>;
|
|
@@ -21,8 +18,6 @@ export declare const useAiWebsiteBuilderThreadStore: import("pinia").StoreDefini
|
|
|
21
18
|
buildSectionsCompleted: import("vue").Ref<number, number>;
|
|
22
19
|
promptText: import("vue").Ref<string, string>;
|
|
23
20
|
stopGeneration: import("vue").Ref<(() => void) | null, (() => void) | null>;
|
|
24
|
-
selectedAgentType: import("vue").Ref<AiAssistantAgentType, AiAssistantAgentType>;
|
|
25
|
-
setSelectedAgentType: (type: AiAssistantAgentType) => void;
|
|
26
21
|
}, never>, Pick<{
|
|
27
22
|
threadId: import("vue").Ref<string | null, string | null>;
|
|
28
23
|
runId: import("vue").Ref<string | null, string | null>;
|
|
@@ -33,6 +28,4 @@ export declare const useAiWebsiteBuilderThreadStore: import("pinia").StoreDefini
|
|
|
33
28
|
buildSectionsCompleted: import("vue").Ref<number, number>;
|
|
34
29
|
promptText: import("vue").Ref<string, string>;
|
|
35
30
|
stopGeneration: import("vue").Ref<(() => void) | null, (() => void) | null>;
|
|
36
|
-
|
|
37
|
-
setSelectedAgentType: (type: AiAssistantAgentType) => void;
|
|
38
|
-
}, "setSelectedAgentType">>;
|
|
31
|
+
}, never>>;
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import { defineStore } from 'pinia';
|
|
2
2
|
import { ref } from 'vue';
|
|
3
|
-
import { AI_ASSISTANT_AGENT_TYPES, } from '../../../clients/ai-assistant-client';
|
|
4
|
-
const AGENT_TYPE_STORAGE_KEY = 'bc-ai-website-builder-agent';
|
|
5
|
-
const isLocalStorage = () => typeof window !== 'undefined' && typeof window.localStorage !== 'undefined';
|
|
6
|
-
const getStoredAgentType = () => {
|
|
7
|
-
if (isLocalStorage()) {
|
|
8
|
-
const stored = window.localStorage.getItem(AGENT_TYPE_STORAGE_KEY);
|
|
9
|
-
if (stored === AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER ||
|
|
10
|
-
stored === AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER_V2) {
|
|
11
|
-
return stored;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
return AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER;
|
|
15
|
-
};
|
|
16
3
|
export const useAiWebsiteBuilderThreadStore = defineStore('aiWebsiteBuilderThread', () => {
|
|
17
4
|
const threadId = ref(null);
|
|
18
5
|
const runId = ref(null);
|
|
@@ -23,20 +10,6 @@ export const useAiWebsiteBuilderThreadStore = defineStore('aiWebsiteBuilderThrea
|
|
|
23
10
|
const buildSectionsCompleted = ref(0);
|
|
24
11
|
const promptText = ref('');
|
|
25
12
|
const stopGeneration = ref(null);
|
|
26
|
-
const selectedAgentType = ref(getStoredAgentType());
|
|
27
|
-
const setSelectedAgentType = (type) => {
|
|
28
|
-
selectedAgentType.value = type;
|
|
29
|
-
if (isLocalStorage()) {
|
|
30
|
-
window.localStorage.setItem(AGENT_TYPE_STORAGE_KEY, type);
|
|
31
|
-
}
|
|
32
|
-
// Reset thread state — V1/V2 threads are not interchangeable
|
|
33
|
-
threadId.value = null;
|
|
34
|
-
runId.value = null;
|
|
35
|
-
messages.value = [];
|
|
36
|
-
buildId.value = null;
|
|
37
|
-
isBuildInProgress.value = false;
|
|
38
|
-
buildSectionsCompleted.value = 0;
|
|
39
|
-
};
|
|
40
13
|
return {
|
|
41
14
|
threadId,
|
|
42
15
|
runId,
|
|
@@ -47,7 +20,5 @@ export const useAiWebsiteBuilderThreadStore = defineStore('aiWebsiteBuilderThrea
|
|
|
47
20
|
buildSectionsCompleted,
|
|
48
21
|
promptText,
|
|
49
22
|
stopGeneration,
|
|
50
|
-
selectedAgentType,
|
|
51
|
-
setSelectedAgentType,
|
|
52
23
|
};
|
|
53
24
|
});
|
|
@@ -23,7 +23,6 @@ export interface WebsiteContext {
|
|
|
23
23
|
}
|
|
24
24
|
export declare const AI_ASSISTANT_AGENT_TYPES: {
|
|
25
25
|
readonly WEBSITE_BUILDER: "website_builder";
|
|
26
|
-
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];
|
|
29
28
|
export type UserPlan = 'free' | 'premium';
|
|
@@ -3,7 +3,6 @@ import { useBrandPageContainerStore } from '../brand-page-maker/stores/brandpage
|
|
|
3
3
|
// Agent types
|
|
4
4
|
export const AI_ASSISTANT_AGENT_TYPES = {
|
|
5
5
|
WEBSITE_BUILDER: 'website_builder',
|
|
6
|
-
WEBSITE_BUILDER_V2: 'website_builder_v2',
|
|
7
6
|
};
|
|
8
7
|
// Website Endpoints
|
|
9
8
|
export const getWebsiteCreateThreadEndpoint = () => `/api/assistant/thread/website`;
|
package/lib/src/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as T, a as E, b as s, c as I, d as S, e as N, f as e, B as A, g as O, h as C, i as t, j as G, k as D, l as P, m as R, n as L, o, p as M, q as r, r as n, s as b, t as l, u as F, v as i, w as c, x as g, y as B, z as Y, C as U, D as d, E as u, F as H, G as p, H as y, I as K, J as m, K as k, L as V, M as X, N as v, O as h, P as f, Q as W, R as x, S as z, T as w, U as Z, V as j, W as q, X as J, Y as Q, Z as $, $ as aa, a0 as _a, a1 as Ta, a2 as Ea, a3 as sa, a4 as Ia, a5 as Sa, a6 as Na, a7 as ea, a8 as Aa, a9 as Oa, aa as Ca, ab as ta, ac as Ga, ad as Da, ae as Pa, af as Ra, ag as La, ah as oa, ai as Ma, aj as ra, ak as na, al as ba, am as la, an as Fa, ao as ia, ap as ca, aq as ga, ar as Ba, as as Ya, at as Ua, au as da, av as ua, aw as Ha, ax as pa, ay as ya, az as Ka, aA as ma, aB as ka, aC as Va, aD as Xa, aE as va, aF as ha, aG as fa, aH as Wa, aI as xa, aJ as za, aK as wa, aL as Za, aM as ja, aN as qa, aO as Ja, aP as Qa, aQ as $a, aR as a_, aS as __, aT as T_, aU as E_, aV as s_, aW as I_, aX as S_, aY as N_, aZ as e_, a_ as A_, a$ as O_, b0 as C_, b1 as t_, b2 as G_, b3 as D_, b4 as P_, b5 as R_, b6 as L_, b7 as o_, b8 as M_, b9 as r_, ba as n_, bb as b_, bc as l_, bd as F_, be as i_, bf as c_, bg as g_, bh as B_, bi as Y_, bj as U_, bk as d_, bl as u_, bm as H_, bn as p_, bo as y_, bp as K_, bq as m_, br as k_, bs as V_, bt as X_, bu as v_, bv as h_, bw as f_, bx as W_, by as x_, bz as z_, bA as w_, bB as Z_, bC as j_, bD as q_, bE as J_, bF as Q_, bG as $_, bH as aT, bI as _T, bJ as TT, bK as ET, bL as sT, bM as IT, bN as ST, bO as NT, bP as eT, bQ as AT, bR as OT, bS as CT, bT as tT, bU as GT, bV as DT, bW as PT, bX as RT, bY as LT, bZ as oT, b_ as MT, b$ as rT, c0 as nT, c1 as bT, c2 as lT, c3 as FT, c4 as iT, c5 as cT, c6 as gT, c7 as BT, c8 as YT, c9 as UT, ca as dT, cb as uT, cc as HT, cd as pT, ce as yT, cf as KT, cg as mT, ch as kT, ci as VT, cj as XT, ck as vT, cl as hT, cm as fT, cn as WT, co as xT, cp as zT, cq as wT, cr as ZT, cs as jT, ct as qT, cu as JT } from "./lib-
|
|
1
|
+
import { A as T, a as E, b as s, c as I, d as S, e as N, f as e, B as A, g as O, h as C, i as t, j as G, k as D, l as P, m as R, n as L, o, p as M, q as r, r as n, s as b, t as l, u as F, v as i, w as c, x as g, y as B, z as Y, C as U, D as d, E as u, F as H, G as p, H as y, I as K, J as m, K as k, L as V, M as X, N as v, O as h, P as f, Q as W, R as x, S as z, T as w, U as Z, V as j, W as q, X as J, Y as Q, Z as $, $ as aa, a0 as _a, a1 as Ta, a2 as Ea, a3 as sa, a4 as Ia, a5 as Sa, a6 as Na, a7 as ea, a8 as Aa, a9 as Oa, aa as Ca, ab as ta, ac as Ga, ad as Da, ae as Pa, af as Ra, ag as La, ah as oa, ai as Ma, aj as ra, ak as na, al as ba, am as la, an as Fa, ao as ia, ap as ca, aq as ga, ar as Ba, as as Ya, at as Ua, au as da, av as ua, aw as Ha, ax as pa, ay as ya, az as Ka, aA as ma, aB as ka, aC as Va, aD as Xa, aE as va, aF as ha, aG as fa, aH as Wa, aI as xa, aJ as za, aK as wa, aL as Za, aM as ja, aN as qa, aO as Ja, aP as Qa, aQ as $a, aR as a_, aS as __, aT as T_, aU as E_, aV as s_, aW as I_, aX as S_, aY as N_, aZ as e_, a_ as A_, a$ as O_, b0 as C_, b1 as t_, b2 as G_, b3 as D_, b4 as P_, b5 as R_, b6 as L_, b7 as o_, b8 as M_, b9 as r_, ba as n_, bb as b_, bc as l_, bd as F_, be as i_, bf as c_, bg as g_, bh as B_, bi as Y_, bj as U_, bk as d_, bl as u_, bm as H_, bn as p_, bo as y_, bp as K_, bq as m_, br as k_, bs as V_, bt as X_, bu as v_, bv as h_, bw as f_, bx as W_, by as x_, bz as z_, bA as w_, bB as Z_, bC as j_, bD as q_, bE as J_, bF as Q_, bG as $_, bH as aT, bI as _T, bJ as TT, bK as ET, bL as sT, bM as IT, bN as ST, bO as NT, bP as eT, bQ as AT, bR as OT, bS as CT, bT as tT, bU as GT, bV as DT, bW as PT, bX as RT, bY as LT, bZ as oT, b_ as MT, b$ as rT, c0 as nT, c1 as bT, c2 as lT, c3 as FT, c4 as iT, c5 as cT, c6 as gT, c7 as BT, c8 as YT, c9 as UT, ca as dT, cb as uT, cc as HT, cd as pT, ce as yT, cf as KT, cg as mT, ch as kT, ci as VT, cj as XT, ck as vT, cl as hT, cm as fT, cn as WT, co as xT, cp as zT, cq as wT, cr as ZT, cs as jT, ct as qT, cu as JT } from "./lib-CoiqQTUC.js";
|
|
2
2
|
import { createPinia as $T, setActivePinia as aE } from "pinia";
|
|
3
3
|
export {
|
|
4
4
|
T as ABOUT_SECTION_SETTINGS_CONFIG,
|