@designcrowd/library.brand-page 6.0.6-v2-poc-2 → 6.0.6

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-DC3zJ4EI.js → CreatedOnBrandCrowd-de-de-oGS283ms.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-WxsgK16i.js → CreatedOnBrandCrowd-en-us-Be4Hw8Nr.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-PooaBwOY.js → CreatedOnBrandCrowd-es-es-CPBtRSj1.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-B-SyXYxn.js → CreatedOnBrandCrowd-fr-ca-Cg10f_d-.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-B-SyXYxn.js → CreatedOnBrandCrowd-fr-fr-Cg10f_d-.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-D7WamfO5.js → CreatedOnBrandCrowd-pt-br-B948D0V7.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-D7WamfO5.js → CreatedOnBrandCrowd-pt-pt-B948D0V7.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-BCcWMkdO.js → CreatedOnDcom-de-de-Dglo-8v1.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-DeTTbHqi.js → CreatedOnDcom-en-us-BUAHAaS5.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-CawL9NsI.js → CreatedOnDcom-es-es-B2mjCtM2.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-JTfhwgSp.js → CreatedOnDcom-fr-ca-DgiIR-U3.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-C0_cTdqE.js → CreatedOnDcom-fr-fr-DqnZTSPY.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-BA1jF9nv.js → CreatedOnDcom-pt-br-ZhHGJYs8.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-CcdZV0s6.js → CreatedOnDcom-pt-pt-DulWcYWp.js} +1 -1
  15. package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +2 -2
  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-D5-uKGCN.js → lib-hQZFYMry.js} +12951 -12992
  22. package/package.json +1 -1
  23. package/src/brand-page-maker/components/ai-website-builder/AiWebsiteBuilder.vue +2 -37
  24. package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +3 -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-D5-uKGCN.js";
2
+ import { _ as t } from "./lib-hQZFYMry.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-D5-uKGCN.js";
2
+ import { _ as t } from "./lib-hQZFYMry.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-D5-uKGCN.js";
2
+ import { _ as t } from "./lib-hQZFYMry.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-D5-uKGCN.js";
2
+ import { _ as t } from "./lib-hQZFYMry.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-D5-uKGCN.js";
2
+ import { _ as t } from "./lib-hQZFYMry.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-D5-uKGCN.js";
2
+ import { _ as t } from "./lib-hQZFYMry.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-D5-uKGCN.js";
2
+ import { _ as t } from "./lib-hQZFYMry.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-D5-uKGCN.js";
2
+ import { _ as e } from "./lib-hQZFYMry.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-D5-uKGCN.js";
2
+ import { _ as e } from "./lib-hQZFYMry.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-D5-uKGCN.js";
2
+ import { _ as e } from "./lib-hQZFYMry.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-D5-uKGCN.js";
2
+ import { _ as e } from "./lib-hQZFYMry.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-D5-uKGCN.js";
2
+ import { _ as e } from "./lib-hQZFYMry.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-D5-uKGCN.js";
2
+ import { _ as M } from "./lib-hQZFYMry.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-D5-uKGCN.js";
2
+ import { _ as M } from "./lib-hQZFYMry.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -331,7 +331,7 @@ export function useAiWebsiteBuilderChat() {
331
331
  message,
332
332
  websiteContext,
333
333
  websiteSnapshot: snapshotStore.snapshotBase64 || undefined,
334
- agentType: aiThreadStore.selectedAgentType,
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: aiThreadStore.selectedAgentType,
344
+ agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER,
345
345
  userPlan,
346
346
  connectionId,
347
347
  });
@@ -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
  });
@@ -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-D5-uKGCN.js";
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-hQZFYMry.js";
2
2
  import { createPinia as $T, setActivePinia as aE } from "pinia";
3
3
  export {
4
4
  T as ABOUT_SECTION_SETTINGS_CONFIG,