@designcrowd/library.brand-page 6.1.0-websitev2-dev-2 → 6.1.0
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-D_qQ0sPW.js → CreatedOnBrandCrowd-de-de-CW5bD06L.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-CNMxavFU.js → CreatedOnBrandCrowd-en-us-CofG4e3V.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-Cyaiw1-R.js → CreatedOnBrandCrowd-es-es-XpL0-LWx.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-DbniOtuE.js → CreatedOnBrandCrowd-fr-ca-dlVN3zaX.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-DbniOtuE.js → CreatedOnBrandCrowd-fr-fr-dlVN3zaX.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-DI3JfwR8.js → CreatedOnBrandCrowd-pt-br-98gqdDVF.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-DI3JfwR8.js → CreatedOnBrandCrowd-pt-pt-98gqdDVF.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-DqBzJ_O9.js → CreatedOnDcom-de-de-Dbmlc0i1.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-B8uZjYMi.js → CreatedOnDcom-en-us-Dy9z7h1o.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BOLxcx3H.js → CreatedOnDcom-es-es-B3ksvNj9.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-CbGneDvu.js → CreatedOnDcom-fr-ca-CC9ieRzX.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-B-UwXpW3.js → CreatedOnDcom-fr-fr-BtnGJjF2.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-CRPrLx5_.js → CreatedOnDcom-pt-br-DT4doFYO.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-4p2rdAnc.js → CreatedOnDcom-pt-pt-CloXyOe6.js} +1 -1
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +3 -5
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.js +4 -6
- package/lib/src/brand-page/components/page-footer/PageFooter.mixin.d.ts +0 -1
- package/lib/src/brand-page/components/page-footer/PageFooter.mixin.js +1 -4
- package/lib/src/brand-page/components/payment/Payment.mixin.js +3 -4
- package/lib/src/brand-page/components/payment/__fixtures__/request-payment.d.ts +0 -1
- package/lib/src/brand-page/components/payment/__fixtures__/support-me.d.ts +0 -1
- package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.d.ts +0 -1
- package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.js +1 -4
- package/lib/src/brand-page/composables/consent.composable.d.ts +0 -2
- package/lib/src/brand-page/composables/consent.composable.js +3 -9
- package/lib/src/brand-page/models/brand-page-context.model.d.ts +0 -7
- package/lib/src/brand-page/utils/context.util.d.ts +0 -8
- package/lib/src/brand-page/utils/context.util.js +0 -8
- package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +3 -7
- package/lib/src/clients/ai-assistant-client.d.ts +0 -1
- package/lib/src/clients/ai-assistant-client.js +0 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +60 -60
- package/lib/src/css/library.brand-page-brandPage.min.css +60 -60
- package/lib/src/css/library.brand-page-designCom.min.css +60 -60
- package/lib/src/css/library.brand-page-preview.min.css +60 -60
- package/lib/src/index.d.ts +0 -1
- package/lib/src/index.mjs +217 -220
- package/lib/src/{lib-DhEJMZFn.js → lib-D7ubPlpu.js} +18168 -18341
- package/lib/src/lib.js +0 -1
- package/lib/src/metadata-builder/builders/global-styles-builder.js +0 -16
- package/lib/src/metadata-builder/builders/section-builders/index.d.ts +0 -1
- package/lib/src/metadata-builder/builders/section-builders/index.js +0 -1
- package/lib/src/metadata-builder/builders/section-builders/text-section-builder.js +2 -5
- package/lib/src/metadata-builder/builders/section-field-maps.js +0 -15
- 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/lib/src/metadata-builder/metadata-executor.js +1 -3
- package/lib/src/metadata-builder/models.d.ts +0 -2
- package/lib/src/metadata-builder/models.js +0 -2
- package/lib/src/metadata-builder/parsers/ai-toolcall-parser.d.ts +0 -1
- package/lib/src/metadata-builder/parsers/ai-toolcall-parser.js +0 -4
- package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +2 -14
- package/lib/src/utils/minify-brand-page-metadata.js +0 -7
- package/package.json +1 -1
- package/src/brand-page/components/contact-form/ContactForm.mixin.ts +2 -7
- package/src/brand-page/components/cookie-consent/CookieConsent.vue +0 -1
- package/src/brand-page/components/mailing-list/MailingList.mixin.ts +3 -8
- package/src/brand-page/components/navigation/navigation-carousel/NavigationCarousel.vue +1 -5
- package/src/brand-page/components/page-footer/PageFooter.mixin.ts +1 -4
- package/src/brand-page/components/page-footer/PageFooter.vue +1 -1
- package/src/brand-page/components/payment/Payment.mixin.ts +3 -4
- package/src/brand-page/components/payment/request-payment/RequestPayment.mixin.ts +1 -8
- package/src/brand-page/components/payment/request-payment/RequestPayment.vue +1 -1
- package/src/brand-page/components/save-contact/SaveContactWidget.vue +1 -2
- package/src/brand-page/components/shop/Shop.vue +3 -6
- package/src/brand-page/components/social-links/SocialLinks.vue +2 -5
- package/src/brand-page/composables/consent.composable.ts +4 -18
- package/src/brand-page/models/brand-page-context.model.ts +0 -7
- package/src/brand-page/utils/context.util.ts +0 -10
- package/src/brand-page-maker/components/ai-website-builder/AiWebsiteBuilder.vue +1 -1
- package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +3 -7
- package/src/clients/ai-assistant-client.ts +0 -1
- package/src/lib.ts +0 -1
- package/src/metadata-builder/builders/global-styles-builder.ts +0 -21
- package/src/metadata-builder/builders/section-builders/index.ts +0 -1
- package/src/metadata-builder/builders/section-builders/text-section-builder.ts +2 -5
- package/src/metadata-builder/builders/section-field-maps.ts +0 -18
- package/src/metadata-builder/builders/section-field-utils.ts +18 -69
- package/src/metadata-builder/metadata-executor.ts +0 -3
- package/src/metadata-builder/models.ts +0 -2
- package/src/metadata-builder/parsers/ai-toolcall-parser.ts +0 -4
- package/src/metadata-builder/parsers/section-tool-arguments.ts +1 -14
- package/src/utils/minify-brand-page-metadata.ts +0 -8
- 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/lib/src/metadata-builder/builders/section-builders/support-me-builder.d.ts +0 -8
- package/lib/src/metadata-builder/builders/section-builders/support-me-builder.js +0 -25
- package/lib/src/metadata-builder/builders/section-rules/support-me.rules.d.ts +0 -2
- package/lib/src/metadata-builder/builders/section-rules/support-me.rules.js +0 -17
- package/src/brand-page/utils/context.util.test.ts +0 -43
- 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-builders/support-me-builder.test.ts +0 -177
- package/src/metadata-builder/builders/section-builders/support-me-builder.ts +0 -43
- package/src/metadata-builder/builders/section-field-utils.test.ts +0 -83
- package/src/metadata-builder/builders/section-rules/support-me.rules.ts +0 -39
- package/src/utils/minify-brand-page-metadata.test.ts +0 -61
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import { FORM_FIELD_TYPES } from '@brand-page/models';
|
|
3
|
-
import { getEmailValidationError, getMessageValidationError, getNameValidationError, getPhoneValidationError,
|
|
3
|
+
import { getEmailValidationError, getMessageValidationError, getNameValidationError, getPhoneValidationError, } from '@brand-page/utils';
|
|
4
4
|
import { isDecorativeButtonStyle } from '../../utils/button.util';
|
|
5
5
|
import brandPageClient from '../../clients/brand-page.client';
|
|
6
6
|
import { isEmail } from '../../../utils/validator.util';
|
|
@@ -193,9 +193,7 @@ export default defineComponent({
|
|
|
193
193
|
}));
|
|
194
194
|
},
|
|
195
195
|
mounted() {
|
|
196
|
-
if (this.context?.recaptchaSiteKey &&
|
|
197
|
-
!isPreviewMode(this.context) &&
|
|
198
|
-
this.recaptcha) {
|
|
196
|
+
if (this.context?.recaptchaSiteKey && !this.isPreview && this.recaptcha) {
|
|
199
197
|
this.recaptcha.initialise({ siteKey: this.context.recaptchaSiteKey });
|
|
200
198
|
}
|
|
201
199
|
},
|
|
@@ -205,7 +203,7 @@ export default defineComponent({
|
|
|
205
203
|
if (this.hasFormError) {
|
|
206
204
|
return;
|
|
207
205
|
}
|
|
208
|
-
if (
|
|
206
|
+
if (this.isPreview || !this.context.brandPageToken) {
|
|
209
207
|
if (process.env.NODE_ENV !== 'production' &&
|
|
210
208
|
!this.context.brandPageSlug) {
|
|
211
209
|
console.error('brandPageToken is not defined');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import brandPageClient from '../../clients/brand-page.client';
|
|
3
|
-
import { getEmailValidationError, contentPaddingStyle as toContentPaddingStyle,
|
|
3
|
+
import { getEmailValidationError, contentPaddingStyle as toContentPaddingStyle, mutedTextForBackground, backgroundColorFromStyle, } from '@brand-page/utils';
|
|
4
4
|
import { contentSettingsTr, mailingListTr, } from '@src/composables/useTranslate';
|
|
5
5
|
import { useReCaptcha } from '../../composables/recaptcha.composable';
|
|
6
6
|
import { RECAPTCHA_ACTION_MAILING_LIST } from '../../constants';
|
|
@@ -46,9 +46,7 @@ export default defineComponent({
|
|
|
46
46
|
},
|
|
47
47
|
mounted() {
|
|
48
48
|
this.show = true;
|
|
49
|
-
if (this.context?.recaptchaSiteKey &&
|
|
50
|
-
!isPreviewMode(this.context) &&
|
|
51
|
-
this.recaptcha) {
|
|
49
|
+
if (this.context?.recaptchaSiteKey && !this.isPreview && this.recaptcha) {
|
|
52
50
|
this.recaptcha.initialise({ siteKey: this.context.recaptchaSiteKey });
|
|
53
51
|
}
|
|
54
52
|
},
|
|
@@ -105,7 +103,7 @@ export default defineComponent({
|
|
|
105
103
|
},
|
|
106
104
|
isFormDisabled() {
|
|
107
105
|
return (this.hasFormError ||
|
|
108
|
-
|
|
106
|
+
this.isPreview ||
|
|
109
107
|
!this.brandPageToken ||
|
|
110
108
|
this.isSubmitting);
|
|
111
109
|
},
|
|
@@ -127,7 +125,7 @@ export default defineComponent({
|
|
|
127
125
|
if (this.hasFormError) {
|
|
128
126
|
return;
|
|
129
127
|
}
|
|
130
|
-
if (
|
|
128
|
+
if (this.isPreview || !this.brandPageToken) {
|
|
131
129
|
return;
|
|
132
130
|
}
|
|
133
131
|
this.isSubmitting = true;
|
|
@@ -20,7 +20,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
20
20
|
default: boolean;
|
|
21
21
|
};
|
|
22
22
|
}>, {}, {}, {
|
|
23
|
-
isInPreviewMode(): boolean;
|
|
24
23
|
containerStyle(): BrandPageCssStyle;
|
|
25
24
|
socialLinksIconStyle(): BrandPageCssStyle;
|
|
26
25
|
isDisplayStyleCentered(): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
|
-
import { getRenderText
|
|
2
|
+
import { getRenderText } from '@brand-page/utils';
|
|
3
3
|
import { FOOTER_DISPLAY } from '../../constants';
|
|
4
4
|
export default defineComponent({
|
|
5
5
|
props: {
|
|
@@ -23,9 +23,6 @@ export default defineComponent({
|
|
|
23
23
|
},
|
|
24
24
|
emits: ['on-logo-click', 'footer-container-click'],
|
|
25
25
|
computed: {
|
|
26
|
-
isInPreviewMode() {
|
|
27
|
-
return isPreviewMode(this.context);
|
|
28
|
-
},
|
|
29
26
|
containerStyle() {
|
|
30
27
|
return this.viewModel.backgroundStyle;
|
|
31
28
|
},
|
|
@@ -2,7 +2,6 @@ import { defineComponent } from 'vue';
|
|
|
2
2
|
import brandPageClient from '../../clients/brand-page.client';
|
|
3
3
|
import { DISPLAY_STYLE_COLLAPSED, DISPLAY_STYLE_PREVIEW, paymentProviders, } from '../../constants';
|
|
4
4
|
import raygunUtil from '@brand-page/utils/raygun.util';
|
|
5
|
-
import { isPreviewMode } from '@brand-page/utils';
|
|
6
5
|
import { paymentTr } from '@src/composables/useTranslate';
|
|
7
6
|
const DEFAULT_PAYMENT_SUCCESS_MESSAGE = paymentTr(`defaultPaymentSuccessMessage`);
|
|
8
7
|
const PAYMENT_CONFIG_ACTIVE = 'Active';
|
|
@@ -61,10 +60,10 @@ export default defineComponent({
|
|
|
61
60
|
}
|
|
62
61
|
},
|
|
63
62
|
canMakePayment() {
|
|
64
|
-
return !
|
|
63
|
+
return !this.context.isPreview && this.isPaymentConfigActive;
|
|
65
64
|
},
|
|
66
65
|
showPaymentBlock() {
|
|
67
|
-
return
|
|
66
|
+
return this.context.isPreview || this.isPaymentConfigActive;
|
|
68
67
|
},
|
|
69
68
|
paymentOptions() {
|
|
70
69
|
return this.paymentConfig.paymentOptions;
|
|
@@ -148,7 +147,7 @@ export default defineComponent({
|
|
|
148
147
|
this.state = paymentConfigId
|
|
149
148
|
? paymentState.PaymentOptionSelection
|
|
150
149
|
: paymentState.IncompleteConfig;
|
|
151
|
-
if (
|
|
150
|
+
if (this.context.isPreview || !paymentConfigId) {
|
|
152
151
|
return;
|
|
153
152
|
}
|
|
154
153
|
try {
|
|
@@ -2,7 +2,7 @@ import { defineComponent } from 'vue';
|
|
|
2
2
|
import { PAYMENT_OPTION_DISPLAY_TYPES, PAYMENT_OPTION_IMAGE_TYPES, } from '../../../models';
|
|
3
3
|
import { DEFAULT_CURRENCY_SYMBOL } from '../../../constants';
|
|
4
4
|
import { addOpacityToHex } from '../../../utils/color.util';
|
|
5
|
-
import { contentPaddingStyle as toContentPaddingStyle
|
|
5
|
+
import { contentPaddingStyle as toContentPaddingStyle } from '../../../utils';
|
|
6
6
|
import { RGBAtoHex } from '@utils/helpers';
|
|
7
7
|
const MAX_CUSTOM_REQUEST_CHARS = 500;
|
|
8
8
|
export default defineComponent({
|
|
@@ -29,9 +29,6 @@ export default defineComponent({
|
|
|
29
29
|
};
|
|
30
30
|
},
|
|
31
31
|
computed: {
|
|
32
|
-
isInPreviewMode() {
|
|
33
|
-
return isPreviewMode(this.context);
|
|
34
|
-
},
|
|
35
32
|
contentPaddingStyle() {
|
|
36
33
|
return toContentPaddingStyle(this.viewModel);
|
|
37
34
|
},
|
|
@@ -4,10 +4,8 @@ export declare const useConsent: () => {
|
|
|
4
4
|
updateConsent: import("vue").Ref<(c: ConsentType) => void, (c: ConsentType) => void>;
|
|
5
5
|
featureEnabled: import("vue").Ref<boolean, boolean>;
|
|
6
6
|
showConsentModal: import("vue").Ref<boolean, boolean>;
|
|
7
|
-
persist: import("vue").Ref<boolean, boolean>;
|
|
8
7
|
initialise: (options: {
|
|
9
8
|
featureEnabled: boolean;
|
|
10
|
-
persist?: boolean;
|
|
11
9
|
}) => ConsentType;
|
|
12
10
|
grant: (cb?: () => unknown) => void;
|
|
13
11
|
deny: (cb?: () => unknown) => void;
|
|
@@ -28,7 +28,6 @@ const store = reactive({
|
|
|
28
28
|
consent: undefined,
|
|
29
29
|
featureEnabled: false,
|
|
30
30
|
showConsentModal: false,
|
|
31
|
-
persist: true,
|
|
32
31
|
updateConsent(c) {
|
|
33
32
|
this.consent = c;
|
|
34
33
|
},
|
|
@@ -39,8 +38,7 @@ export const useConsent = () => {
|
|
|
39
38
|
return undefined;
|
|
40
39
|
}
|
|
41
40
|
store.featureEnabled = options.featureEnabled;
|
|
42
|
-
store.
|
|
43
|
-
store.consent = store.persist ? getStoredConsent() : undefined;
|
|
41
|
+
store.consent = getStoredConsent();
|
|
44
42
|
store.showConsentModal =
|
|
45
43
|
options.featureEnabled && !accepted.value && !declined.value;
|
|
46
44
|
return store.consent;
|
|
@@ -48,17 +46,13 @@ export const useConsent = () => {
|
|
|
48
46
|
const accepted = computed(() => Boolean(store.consent && store.consent === 'granted'));
|
|
49
47
|
const declined = computed(() => Boolean(store.consent && store.consent === 'denied'));
|
|
50
48
|
const grant = (cb) => {
|
|
51
|
-
|
|
52
|
-
storeConsent('granted');
|
|
53
|
-
}
|
|
49
|
+
storeConsent('granted');
|
|
54
50
|
store.updateConsent('granted');
|
|
55
51
|
store.showConsentModal = store.featureEnabled && !accepted.value;
|
|
56
52
|
cb && cb();
|
|
57
53
|
};
|
|
58
54
|
const deny = (cb) => {
|
|
59
|
-
|
|
60
|
-
storeConsent('denied');
|
|
61
|
-
}
|
|
55
|
+
storeConsent('denied');
|
|
62
56
|
store.updateConsent('denied');
|
|
63
57
|
store.showConsentModal = false;
|
|
64
58
|
cb && cb();
|
|
@@ -47,13 +47,6 @@ export type MediaSizes = keyof typeof MEDIA_SIZES;
|
|
|
47
47
|
export interface BrandPageContext {
|
|
48
48
|
isTemplate: boolean;
|
|
49
49
|
isPreview: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Rendered as a customer-facing live preview (safe/inert actions, no
|
|
52
|
-
* watermark, ephemeral consent). Distinct from the editor `isPreview`, which
|
|
53
|
-
* also drives editor/thumbnail-only behaviour. Use `isPreviewMode()` to gate
|
|
54
|
-
* inert-action behaviour that applies to both.
|
|
55
|
-
*/
|
|
56
|
-
isLivePreview?: boolean;
|
|
57
50
|
/** @deprecated should be used on maker only */
|
|
58
51
|
isMobile?: boolean;
|
|
59
52
|
isDesignCom: boolean;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
import type { BrandPageContext } from '../models';
|
|
2
2
|
export declare const getSlugFromContext: (context: BrandPageContext) => string;
|
|
3
|
-
/**
|
|
4
|
-
* True when interactive actions must be inert and payment/shop blocks always
|
|
5
|
-
* shown — i.e. the render is a preview, not a live site. Covers both the
|
|
6
|
-
* editor preview (`isPreview`) and the customer live-preview
|
|
7
|
-
* (`isLivePreview`). Editor-only artifacts (cursor, nav interception,
|
|
8
|
-
* placeholders) must keep reading `context.isPreview` directly.
|
|
9
|
-
*/
|
|
10
|
-
export declare const isPreviewMode: (context: BrandPageContext) => boolean;
|
|
@@ -4,11 +4,3 @@ export const getSlugFromContext = (context) => {
|
|
|
4
4
|
}
|
|
5
5
|
return context.brandPageSlug;
|
|
6
6
|
};
|
|
7
|
-
/**
|
|
8
|
-
* True when interactive actions must be inert and payment/shop blocks always
|
|
9
|
-
* shown — i.e. the render is a preview, not a live site. Covers both the
|
|
10
|
-
* editor preview (`isPreview`) and the customer live-preview
|
|
11
|
-
* (`isLivePreview`). Editor-only artifacts (cursor, nav interception,
|
|
12
|
-
* placeholders) must keep reading `context.isPreview` directly.
|
|
13
|
-
*/
|
|
14
|
-
export const isPreviewMode = (context) => !!(context.isPreview || context.isLivePreview);
|
|
@@ -348,7 +348,7 @@ export function useAiWebsiteBuilderChat() {
|
|
|
348
348
|
message,
|
|
349
349
|
websiteContext,
|
|
350
350
|
websiteSnapshot: snapshotStore.snapshotBase64 || undefined,
|
|
351
|
-
agentType: AI_ASSISTANT_AGENT_TYPES.
|
|
351
|
+
agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER,
|
|
352
352
|
userPlan,
|
|
353
353
|
connectionId,
|
|
354
354
|
});
|
|
@@ -358,7 +358,7 @@ export function useAiWebsiteBuilderChat() {
|
|
|
358
358
|
message,
|
|
359
359
|
websiteContext,
|
|
360
360
|
websiteSnapshot: snapshotStore.snapshotBase64 || undefined,
|
|
361
|
-
agentType: AI_ASSISTANT_AGENT_TYPES.
|
|
361
|
+
agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER,
|
|
362
362
|
userPlan,
|
|
363
363
|
connectionId,
|
|
364
364
|
});
|
|
@@ -503,13 +503,9 @@ export function useAiWebsiteBuilderChat() {
|
|
|
503
503
|
failedResults,
|
|
504
504
|
retryCount,
|
|
505
505
|
});
|
|
506
|
-
// Tool submissions must go to the SAME agent that ran the thread
|
|
507
|
-
// (AI QA 2026-07-05 T19: a mismatched agentType routes tool results
|
|
508
|
-
// to a service with no state for the thread and fails the build).
|
|
509
|
-
// brandSite AI is V2-only; every call site sends WEBSITE_BUILDER_V2.
|
|
510
506
|
const submitResult = await client.submitToolResultsBuildAsync(aiThreadStore.threadId, {
|
|
511
507
|
toolCalls: toolResults,
|
|
512
|
-
agentType: AI_ASSISTANT_AGENT_TYPES.
|
|
508
|
+
agentType: AI_ASSISTANT_AGENT_TYPES.WEBSITE_BUILDER,
|
|
513
509
|
connectionId,
|
|
514
510
|
retryCount,
|
|
515
511
|
userPlan,
|
|
@@ -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`;
|