@designcrowd/library.brand-page 6.0.4-v2-poc-1 → 6.0.4

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.
Files changed (26) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-4OnjPmYG.js → CreatedOnBrandCrowd-de-de-Ruu5Az32.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-BAGhO9-4.js → CreatedOnBrandCrowd-en-us-DGUJtvld.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-Dfihr_sC.js → CreatedOnBrandCrowd-es-es-Dg-1uOfV.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-Bn7EvnJH.js → CreatedOnBrandCrowd-fr-ca-CRKraZl8.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-Bn7EvnJH.js → CreatedOnBrandCrowd-fr-fr-CRKraZl8.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-CS3YnURC.js → CreatedOnBrandCrowd-pt-br-bZ9VlEAu.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-CS3YnURC.js → CreatedOnBrandCrowd-pt-pt-bZ9VlEAu.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-D5EdnEvX.js → CreatedOnDcom-de-de-CJYfwZx8.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-D0VZrTxe.js → CreatedOnDcom-en-us-rzA1lVxH.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-C_5p9r1R.js → CreatedOnDcom-es-es-CNwGPjik.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-Dt3RrD0B.js → CreatedOnDcom-fr-ca-DKw7OGIz.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-BRPGqp2f.js → CreatedOnDcom-fr-fr-WzOEaAZG.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-DVzKzgsb.js → CreatedOnDcom-pt-br-DkualVhm.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-m4zg_E7k.js → CreatedOnDcom-pt-pt-w4Nnsdzq.js} +1 -1
  15. package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +4 -4
  16. package/lib/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.d.ts +2 -9
  17. package/lib/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.js +0 -29
  18. package/lib/src/clients/ai-assistant-client.d.ts +0 -1
  19. package/lib/src/clients/ai-assistant-client.js +0 -1
  20. package/lib/src/index.mjs +1 -1
  21. package/lib/src/{lib-CsDzbbp7.js → lib-Dy7MYyqz.js} +12280 -12321
  22. package/package.json +1 -1
  23. package/src/brand-page-maker/components/ai-website-builder/AiWebsiteBuilder.vue +3 -43
  24. package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +4 -3
  25. package/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.ts +0 -43
  26. package/src/clients/ai-assistant-client.ts +0 -1
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CsDzbbp7.js";
2
+ import { _ as t } from "./lib-Dy7MYyqz.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CsDzbbp7.js";
2
+ import { _ as t } from "./lib-Dy7MYyqz.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CsDzbbp7.js";
2
+ import { _ as t } from "./lib-Dy7MYyqz.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CsDzbbp7.js";
2
+ import { _ as t } from "./lib-Dy7MYyqz.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CsDzbbp7.js";
2
+ import { _ as t } from "./lib-Dy7MYyqz.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CsDzbbp7.js";
2
+ import { _ as t } from "./lib-Dy7MYyqz.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CsDzbbp7.js";
2
+ import { _ as t } from "./lib-Dy7MYyqz.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CsDzbbp7.js";
2
+ import { _ as e } from "./lib-Dy7MYyqz.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CsDzbbp7.js";
2
+ import { _ as e } from "./lib-Dy7MYyqz.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CsDzbbp7.js";
2
+ import { _ as e } from "./lib-Dy7MYyqz.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CsDzbbp7.js";
2
+ import { _ as e } from "./lib-Dy7MYyqz.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-CsDzbbp7.js";
2
+ import { _ as e } from "./lib-Dy7MYyqz.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-CsDzbbp7.js";
2
+ import { _ as M } from "./lib-Dy7MYyqz.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-CsDzbbp7.js";
2
+ import { _ as M } from "./lib-Dy7MYyqz.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { ref, computed, watch, nextTick, onUnmounted } 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';
@@ -333,7 +333,7 @@ export function useAiWebsiteBuilderChat() {
333
333
  message,
334
334
  websiteContext,
335
335
  websiteSnapshot: snapshotStore.snapshotBase64 || undefined,
336
- agentType: aiThreadStore.selectedAgentType,
336
+ agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER,
337
337
  userPlan,
338
338
  connectionId,
339
339
  });
@@ -343,7 +343,7 @@ export function useAiWebsiteBuilderChat() {
343
343
  message,
344
344
  websiteContext,
345
345
  websiteSnapshot: snapshotStore.snapshotBase64 || undefined,
346
- agentType: aiThreadStore.selectedAgentType,
346
+ agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER,
347
347
  userPlan,
348
348
  connectionId,
349
349
  });
@@ -498,7 +498,7 @@ export function useAiWebsiteBuilderChat() {
498
498
  });
499
499
  const submitResult = await client.submitToolResultsBuildAsync(aiThreadStore.threadId, {
500
500
  toolCalls: toolResults,
501
- agentType: aiThreadStore.selectedAgentType,
501
+ agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER,
502
502
  connectionId,
503
503
  retryCount,
504
504
  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
- selectedAgentType: import("vue").Ref<AiAssistantAgentType, AiAssistantAgentType>;
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
- selectedAgentType: import("vue").Ref<AiAssistantAgentType, AiAssistantAgentType>;
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
  });
@@ -16,7 +16,6 @@ export interface WebsiteContext {
16
16
  }
17
17
  export declare const AI_ASSISTANT_AGENT_TYPES: {
18
18
  readonly WEBSITE_BUILDER: "website_builder";
19
- readonly WEBSITE_BUILDER_V2: "website_builder_v2";
20
19
  };
21
20
  export type AiAssistantAgentType = (typeof AI_ASSISTANT_AGENT_TYPES)[keyof typeof AI_ASSISTANT_AGENT_TYPES];
22
21
  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 E, a as T, 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 G, j as D, k as t, l as P, m as R, n as L, o as M, p as o, q as r, r as n, s as b, t as F, u as l, v as i, w as g, x as B, y as c, 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 k, K as m, L as V, M as X, N as v, O as h, P as W, Q as f, R as x, S as z, T as w, U as Z, V as j, W as q, X as Q, Y as J, Z as $, $ as aa, a0 as _a, a1 as Ea, a2 as Ta, 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 Ga, ac as Da, ad as ta, ae as Pa, af as Ra, ag as La, ah as Ma, ai as oa, aj as ra, ak as na, al as ba, am as Fa, an as la, ao as ia, ap as ga, aq as Ba, ar as ca, 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 ka, aB as ma, aC as Va, aD as Xa, aE as va, aF as ha, aG as Wa, aH as fa, aI as xa, aJ as za, aK as wa, aL as Za, aM as ja, aN as qa, aO as Qa, aP as Ja, aQ as $a, aR as a_, aS as __, aT as E_, aU as T_, 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 G_, b2 as D_, b3 as t_, b4 as P_, b5 as R_, b6 as L_, b7 as M_, b8 as o_, b9 as r_, ba as n_, bb as b_, bc as F_, bd as l_, be as i_, bf as g_, bg as B_, bh as c_, 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 k_, br as m_, bs as V_, bt as X_, bu as v_, bv as h_, bw as W_, bx as f_, by as x_, bz as z_, bA as w_, bB as Z_, bC as j_, bD as q_, bE as Q_, bF as J_, bG as $_, bH as aE, bI as _E, bJ as EE, bK as TE, bL as sE, bM as IE, bN as SE, bO as NE, bP as eE, bQ as AE, bR as OE, bS as CE, bT as GE, bU as DE, bV as tE, bW as PE, bX as RE, bY as LE, bZ as ME, b_ as oE, b$ as rE, c0 as nE, c1 as bE, c2 as FE, c3 as lE, c4 as iE, c5 as gE, c6 as BE, c7 as cE, c8 as YE, c9 as UE, ca as dE, cb as uE, cc as HE, cd as pE, ce as yE, cf as KE, cg as kE, ch as mE, ci as VE, cj as XE, ck as vE, cl as hE, cm as WE, cn as fE, co as xE, cp as zE, cq as wE } from "./lib-CsDzbbp7.js";
1
+ import { A as E, a as T, 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 G, j as D, k as t, l as P, m as R, n as L, o as M, p as o, q as r, r as n, s as b, t as F, u as l, v as i, w as g, x as B, y as c, 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 k, K as m, L as V, M as X, N as v, O as h, P as W, Q as f, R as x, S as z, T as w, U as Z, V as j, W as q, X as Q, Y as J, Z as $, $ as aa, a0 as _a, a1 as Ea, a2 as Ta, 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 Ga, ac as Da, ad as ta, ae as Pa, af as Ra, ag as La, ah as Ma, ai as oa, aj as ra, ak as na, al as ba, am as Fa, an as la, ao as ia, ap as ga, aq as Ba, ar as ca, 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 ka, aB as ma, aC as Va, aD as Xa, aE as va, aF as ha, aG as Wa, aH as fa, aI as xa, aJ as za, aK as wa, aL as Za, aM as ja, aN as qa, aO as Qa, aP as Ja, aQ as $a, aR as a_, aS as __, aT as E_, aU as T_, 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 G_, b2 as D_, b3 as t_, b4 as P_, b5 as R_, b6 as L_, b7 as M_, b8 as o_, b9 as r_, ba as n_, bb as b_, bc as F_, bd as l_, be as i_, bf as g_, bg as B_, bh as c_, 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 k_, br as m_, bs as V_, bt as X_, bu as v_, bv as h_, bw as W_, bx as f_, by as x_, bz as z_, bA as w_, bB as Z_, bC as j_, bD as q_, bE as Q_, bF as J_, bG as $_, bH as aE, bI as _E, bJ as EE, bK as TE, bL as sE, bM as IE, bN as SE, bO as NE, bP as eE, bQ as AE, bR as OE, bS as CE, bT as GE, bU as DE, bV as tE, bW as PE, bX as RE, bY as LE, bZ as ME, b_ as oE, b$ as rE, c0 as nE, c1 as bE, c2 as FE, c3 as lE, c4 as iE, c5 as gE, c6 as BE, c7 as cE, c8 as YE, c9 as UE, ca as dE, cb as uE, cc as HE, cd as pE, ce as yE, cf as KE, cg as kE, ch as mE, ci as VE, cj as XE, ck as vE, cl as hE, cm as WE, cn as fE, co as xE, cp as zE, cq as wE } from "./lib-Dy7MYyqz.js";
2
2
  import { createPinia as jE, setActivePinia as qE } from "pinia";
3
3
  export {
4
4
  E as ABOUT_SECTION_SETTINGS_CONFIG,