@designcrowd/library.brand-page 5.18.8-preview-1 → 5.18.8-preview-3

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-D7vzpvjY.js → CreatedOnBrandCrowd-de-de-BULoPmPN.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-Dl0ITtKa.js → CreatedOnBrandCrowd-en-us-DQAPXhGe.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-D6iWZKGj.js → CreatedOnBrandCrowd-es-es-3dnZzYaW.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-CRNww-gI.js → CreatedOnBrandCrowd-fr-ca-CnDROd1L.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-CRNww-gI.js → CreatedOnBrandCrowd-fr-fr-CnDROd1L.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-BrZHUqkY.js → CreatedOnBrandCrowd-pt-br-DMLlFwp2.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-BrZHUqkY.js → CreatedOnBrandCrowd-pt-pt-DMLlFwp2.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-DUQwr2oJ.js → CreatedOnDcom-de-de-Dm_8XFZp.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-S0V4ng2U.js → CreatedOnDcom-en-us-CcpvTw6r.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-D1SEHtQ0.js → CreatedOnDcom-es-es-CIYRTXMz.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-C2AtgCKk.js → CreatedOnDcom-fr-ca-CpcBqSk3.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-Y-0a5Srp.js → CreatedOnDcom-fr-fr-5gBEfi3W.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-BhdL_qjn.js → CreatedOnDcom-pt-br-BMWH4KBQ.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-DC8v9puv.js → CreatedOnDcom-pt-pt-CRMOb-b2.js} +1 -1
  15. package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +2 -0
  16. package/lib/src/clients/ai-assistant-client.d.ts +7 -0
  17. package/lib/src/index.mjs +1 -1
  18. package/lib/src/{lib-BkgHrDH6.js → lib-CdMa4Ee6.js} +195 -193
  19. package/lib/src/utils/build-asset-manifest.d.ts +4 -0
  20. package/lib/src/utils/build-asset-manifest.js +8 -0
  21. package/lib/src/utils/minify-brand-page-metadata.js +1 -9
  22. package/package.json +1 -1
  23. package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +2 -0
  24. package/src/clients/ai-assistant-client.ts +7 -0
  25. package/src/utils/build-asset-manifest.ts +12 -0
  26. package/src/utils/minify-brand-page-metadata.ts +5 -13
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BkgHrDH6.js";
2
+ import { _ as t } from "./lib-CdMa4Ee6.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-BkgHrDH6.js";
2
+ import { _ as t } from "./lib-CdMa4Ee6.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-BkgHrDH6.js";
2
+ import { _ as t } from "./lib-CdMa4Ee6.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-BkgHrDH6.js";
2
+ import { _ as t } from "./lib-CdMa4Ee6.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-BkgHrDH6.js";
2
+ import { _ as t } from "./lib-CdMa4Ee6.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-BkgHrDH6.js";
2
+ import { _ as t } from "./lib-CdMa4Ee6.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-BkgHrDH6.js";
2
+ import { _ as t } from "./lib-CdMa4Ee6.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-BkgHrDH6.js";
2
+ import { _ as e } from "./lib-CdMa4Ee6.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-BkgHrDH6.js";
2
+ import { _ as e } from "./lib-CdMa4Ee6.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-BkgHrDH6.js";
2
+ import { _ as e } from "./lib-CdMa4Ee6.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-BkgHrDH6.js";
2
+ import { _ as e } from "./lib-CdMa4Ee6.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-BkgHrDH6.js";
2
+ import { _ as e } from "./lib-CdMa4Ee6.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-BkgHrDH6.js";
2
+ import { _ as M } from "./lib-CdMa4Ee6.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-BkgHrDH6.js";
2
+ import { _ as M } from "./lib-CdMa4Ee6.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -6,6 +6,7 @@ import { AI_ASSISTANT_TOOL_NAMES } from '../../../metadata-builder/parsers/ai-to
6
6
  import { WebSocketGatewayClient, } from '../../../clients/websocket-gateway-client';
7
7
  import { minifyBrandPageMetadata } from '../../../utils/minify-brand-page-metadata';
8
8
  import { buildAssetManifest } from '../../../utils/build-asset-manifest';
9
+ import cloneDeep from 'lodash.clonedeep';
9
10
  import { usePageNavigationStore } from '../../../shared/page-navigation/store/page-navigation-store';
10
11
  import { navigateToPageByPageId } from '../../routing';
11
12
  import { useSnapshotStore, useAiWebsiteBuilderThreadStore, useAiCheckpointStore, useBrandPageContainerStore, useUiStore, } from '../../stores';
@@ -187,6 +188,7 @@ export function useAiWebsiteBuilderChat() {
187
188
  const currentPageId = pageNavigationStore.activePageId;
188
189
  const websiteContext = {
189
190
  metadata: minifyBrandPageMetadata(brandPageData, assets),
191
+ metadataFull: cloneDeep(brandPageData),
190
192
  ...(assets.length > 0 && { assets }),
191
193
  websiteTemplateToken: containerStore.designTemplateToken,
192
194
  ...(containerStore.designDraftToken && {
@@ -1,5 +1,6 @@
1
1
  import type { MinifiedBrandPageMetadata } from '../utils/minify-brand-page-metadata';
2
2
  import type { AssetEntry } from '../utils/build-asset-manifest';
3
+ import type { BrandPageModel } from '../brand-page/models';
3
4
  export interface ActiveContext {
4
5
  currentPageId: string;
5
6
  }
@@ -9,6 +10,12 @@ export interface LogoContext {
9
10
  }
10
11
  export interface WebsiteContext {
11
12
  metadata: MinifiedBrandPageMetadata;
13
+ /**
14
+ * Full structural metadata (logos externalized to `logoAssetKey`, no base64,
15
+ * no field-stripping) — persisted for the preview render only. The LLM uses
16
+ * `metadata` (minified); the preview renderer uses this for full fidelity.
17
+ */
18
+ metadataFull?: BrandPageModel;
12
19
  assets?: AssetEntry[];
13
20
  activeContext?: ActiveContext;
14
21
  businessName?: string;
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 g, x as c, 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 ga, aq as ca, 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 g_, bg as c_, 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 gT, c6 as cT, 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 } from "./lib-BkgHrDH6.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 g, x as c, 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 ga, aq as ca, 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 g_, bg as c_, 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 gT, c6 as cT, 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 } from "./lib-CdMa4Ee6.js";
2
2
  import { createPinia as QT, setActivePinia as $T } from "pinia";
3
3
  export {
4
4
  T as ABOUT_SECTION_SETTINGS_CONFIG,