@designcrowd/library.brand-page 5.17.6 → 5.17.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-BI2KuOEF.js → CreatedOnBrandCrowd-de-de-BUQFMhZb.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-BYLJCjLJ.js → CreatedOnBrandCrowd-en-us-QS-5r4XI.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-Y_D6cuGE.js → CreatedOnBrandCrowd-es-es-CP2iH-n0.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-CqCBRjYh.js → CreatedOnBrandCrowd-fr-ca-qfD4NmQZ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-CqCBRjYh.js → CreatedOnBrandCrowd-fr-fr-qfD4NmQZ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-Bt0YF6DA.js → CreatedOnBrandCrowd-pt-br-CfmaB7zE.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-Bt0YF6DA.js → CreatedOnBrandCrowd-pt-pt-CfmaB7zE.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-CEk8FBEG.js → CreatedOnDcom-de-de-BxSUWfGN.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DWw4Tm2L.js → CreatedOnDcom-en-us-CSeUdR6v.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-DpG-8o98.js → CreatedOnDcom-es-es-g7rCfAtP.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-CEla7RmR.js → CreatedOnDcom-fr-ca-Bh_BTb-O.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-DRXeVTlV.js → CreatedOnDcom-fr-fr-Clgd_Ujm.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-Bzu_phZc.js → CreatedOnDcom-pt-br-Dlgk0myX.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-DWax8Er7.js → CreatedOnDcom-pt-pt-B14APfrn.js} +1 -1
- package/lib/src/brand-page/models/brand-page-context.model.d.ts +2 -1
- package/lib/src/brand-page/models/brand-page-context.model.js +5 -0
- package/lib/src/brand-page/models/index.d.ts +1 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +62 -2
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +1 -0
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +60 -2
- package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +30 -1
- package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +60 -2
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +60 -2
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +60 -2
- package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +60 -2
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +60 -2
- package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +60 -2
- package/lib/src/brand-page-maker/composables/ai-chat/useAiChat.js +3 -1
- package/lib/src/brand-page-maker/composables/ai-chat/useAiMetadataBuilder.d.ts +1 -1
- package/lib/src/brand-page-maker/composables/ai-chat/useAiMetadataBuilder.js +6 -6
- package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.d.ts +2 -0
- package/lib/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.js +258 -0
- package/lib/src/brand-page-maker/constants/sidebar-constant.d.ts +1 -0
- package/lib/src/brand-page-maker/constants/sidebar-constant.js +8 -0
- package/lib/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.d.ts +16 -0
- package/lib/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.js +14 -0
- package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +62 -3
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +2 -0
- package/lib/src/brand-page-maker/stores/index.d.ts +1 -0
- package/lib/src/brand-page-maker/stores/index.js +1 -0
- package/lib/src/brand-page-maker/stores/snapshot/snapshot-store.d.ts +2 -0
- package/lib/src/brand-page-maker/stores/snapshot/snapshot-store.js +9 -0
- package/lib/src/clients/ai-assistant-client.d.ts +8 -0
- package/lib/src/clients/ai-assistant-client.js +11 -1
- package/lib/src/composables/useSnapshot.js +33 -0
- package/lib/src/css/library.brand-page-brandCrowd.min.css +19 -6
- package/lib/src/css/library.brand-page-brandPage.min.css +19 -6
- package/lib/src/css/library.brand-page-designCom.min.css +19 -6
- package/lib/src/css/library.brand-page-preview.min.css +19 -6
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.mjs +42 -41
- package/lib/src/{lib-DODSa6QK.js → lib-pOkCQP0J.js} +28820 -26841
- package/lib/src/lib.js +1 -0
- package/lib/src/metadata-builder/ai-metadata-executor.d.ts +1 -1
- package/lib/src/metadata-builder/ai-metadata-executor.js +68 -7
- package/lib/src/metadata-builder/builders/add-page-builder.d.ts +14 -0
- package/lib/src/metadata-builder/builders/add-page-builder.js +66 -0
- package/lib/src/metadata-builder/builders/remove-page-builder.d.ts +13 -0
- package/lib/src/metadata-builder/builders/remove-page-builder.js +50 -0
- package/lib/src/metadata-builder/builders/section-builders/about-section-builder.d.ts +6 -0
- package/lib/src/metadata-builder/builders/section-builders/about-section-builder.js +17 -0
- package/lib/src/metadata-builder/builders/section-builders/banner-section-builder.d.ts +6 -0
- package/lib/src/metadata-builder/builders/section-builders/banner-section-builder.js +25 -0
- package/lib/src/metadata-builder/builders/section-builders/base-section-builder.d.ts +40 -0
- package/lib/src/metadata-builder/builders/section-builders/base-section-builder.js +108 -0
- package/lib/src/metadata-builder/builders/section-builders/button-section-builder.d.ts +6 -0
- package/lib/src/metadata-builder/builders/section-builders/button-section-builder.js +16 -0
- package/lib/src/metadata-builder/builders/section-builders/contact-form-builder.d.ts +6 -0
- package/lib/src/metadata-builder/builders/section-builders/contact-form-builder.js +27 -0
- package/lib/src/metadata-builder/builders/section-builders/delete-section-builder.d.ts +13 -0
- package/lib/src/metadata-builder/builders/section-builders/delete-section-builder.js +37 -0
- package/lib/src/metadata-builder/builders/section-builders/divider-section-builder.d.ts +6 -0
- package/lib/src/metadata-builder/builders/section-builders/divider-section-builder.js +16 -0
- package/lib/src/metadata-builder/builders/section-builders/image-gallery-builder.d.ts +6 -0
- package/lib/src/metadata-builder/builders/section-builders/image-gallery-builder.js +76 -0
- package/lib/src/metadata-builder/builders/section-builders/image-section-builder.d.ts +6 -0
- package/lib/src/metadata-builder/builders/section-builders/image-section-builder.js +16 -0
- package/lib/src/metadata-builder/builders/section-builders/images-section-builder.d.ts +6 -0
- package/lib/src/metadata-builder/builders/section-builders/images-section-builder.js +158 -0
- package/lib/src/metadata-builder/builders/section-builders/index.d.ts +17 -0
- package/lib/src/metadata-builder/builders/section-builders/index.js +17 -0
- package/lib/src/metadata-builder/builders/section-builders/mailing-list-builder.d.ts +6 -0
- package/lib/src/metadata-builder/builders/section-builders/mailing-list-builder.js +17 -0
- package/lib/src/metadata-builder/builders/section-builders/mailing-list-section-builder.d.ts +6 -0
- package/lib/src/metadata-builder/builders/section-builders/mailing-list-section-builder.js +16 -0
- package/lib/src/metadata-builder/builders/section-builders/move-section-builder.d.ts +15 -0
- package/lib/src/metadata-builder/builders/section-builders/move-section-builder.js +62 -0
- package/lib/src/metadata-builder/builders/section-builders/profile-section-builder.d.ts +6 -0
- package/lib/src/metadata-builder/builders/section-builders/profile-section-builder.js +16 -0
- package/lib/src/metadata-builder/builders/section-builders/shapes-section-builder.d.ts +6 -0
- package/lib/src/metadata-builder/builders/section-builders/shapes-section-builder.js +162 -0
- package/lib/src/metadata-builder/builders/section-builders/social-links-builder.d.ts +6 -0
- package/lib/src/metadata-builder/builders/section-builders/social-links-builder.js +50 -0
- package/lib/src/metadata-builder/builders/section-builders/testimonial-section-builder.d.ts +6 -0
- package/lib/src/metadata-builder/builders/section-builders/testimonial-section-builder.js +133 -0
- package/lib/src/metadata-builder/builders/section-builders/text-section-builder.d.ts +6 -0
- package/lib/src/metadata-builder/builders/section-builders/text-section-builder.js +154 -0
- package/lib/src/metadata-builder/builders/section-content-factory.d.ts +3 -0
- package/lib/src/metadata-builder/builders/section-content-factory.js +13 -0
- package/lib/src/metadata-builder/builders/section-field-maps.d.ts +12 -0
- package/lib/src/metadata-builder/builders/section-field-maps.js +180 -0
- package/lib/src/metadata-builder/builders/section-field-utils.d.ts +11 -0
- package/lib/src/metadata-builder/builders/section-field-utils.js +109 -0
- package/lib/src/metadata-builder/helpers/rte.helpers.d.ts +6 -0
- package/lib/src/metadata-builder/helpers/rte.helpers.js +16 -1
- package/lib/src/metadata-builder/metadata-executor.js +71 -1
- package/lib/src/metadata-builder/models.d.ts +54 -0
- package/lib/src/metadata-builder/models.js +58 -0
- package/lib/src/metadata-builder/parsers/ai-toolcall-parser.d.ts +51 -3
- package/lib/src/metadata-builder/parsers/ai-toolcall-parser.js +110 -13
- package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +285 -0
- package/lib/src/metadata-builder/parsers/section-tool-arguments.js +7 -0
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +60 -2
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +60 -2
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +60 -2
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +60 -2
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +90 -3
- package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +61 -2
- package/lib/src/shared/side-bar/components/SideBar.mixin.js +6 -0
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +60 -2
- package/lib/src/utils/minify-brand-page-metadata.d.ts +22 -0
- package/lib/src/utils/minify-brand-page-metadata.js +344 -0
- package/package.json +1 -1
- package/src/brand-page/models/brand-page-context.model.ts +12 -3
- package/src/brand-page/models/index.ts +1 -0
- package/src/brand-page-maker/components/ai-website-builder/AiWebsiteBuilder.vue +80 -0
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +4 -0
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +9 -2
- package/src/brand-page-maker/composables/ai-chat/useAiChat.ts +4 -1
- package/src/brand-page-maker/composables/ai-chat/useAiMetadataBuilder.ts +6 -6
- package/src/brand-page-maker/composables/ai-chat/useAiWebsiteBuilderChat.ts +363 -0
- package/src/brand-page-maker/constants/sidebar-constant.ts +8 -0
- package/src/brand-page-maker/stores/ai-thread/ai-website-builder-thread-store.ts +19 -0
- package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +3 -1
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +4 -0
- package/src/brand-page-maker/stores/index.ts +1 -0
- package/src/brand-page-maker/stores/snapshot/snapshot-store.ts +12 -0
- package/src/clients/ai-assistant-client.ts +17 -1
- package/src/composables/useSnapshot.ts +47 -0
- package/src/lib.ts +4 -0
- package/src/metadata-builder/ai-metadata-executor.ts +116 -26
- package/src/metadata-builder/builders/add-page-builder.ts +98 -0
- package/src/metadata-builder/builders/remove-page-builder.ts +83 -0
- package/src/metadata-builder/builders/section-builders/about-section-builder.ts +28 -0
- package/src/metadata-builder/builders/section-builders/banner-section-builder.ts +45 -0
- package/src/metadata-builder/builders/section-builders/base-section-builder.ts +160 -0
- package/src/metadata-builder/builders/section-builders/button-section-builder.ts +24 -0
- package/src/metadata-builder/builders/section-builders/contact-form-builder.ts +43 -0
- package/src/metadata-builder/builders/section-builders/delete-section-builder.ts +63 -0
- package/src/metadata-builder/builders/section-builders/divider-section-builder.ts +27 -0
- package/src/metadata-builder/builders/section-builders/image-gallery-builder.ts +111 -0
- package/src/metadata-builder/builders/section-builders/image-section-builder.ts +24 -0
- package/src/metadata-builder/builders/section-builders/images-section-builder.ts +223 -0
- package/src/metadata-builder/builders/section-builders/index.ts +21 -0
- package/src/metadata-builder/builders/section-builders/mailing-list-builder.ts +29 -0
- package/src/metadata-builder/builders/section-builders/mailing-list-section-builder.ts +27 -0
- package/src/metadata-builder/builders/section-builders/move-section-builder.ts +100 -0
- package/src/metadata-builder/builders/section-builders/profile-section-builder.ts +27 -0
- package/src/metadata-builder/builders/section-builders/shapes-section-builder.ts +231 -0
- package/src/metadata-builder/builders/section-builders/social-links-builder.ts +79 -0
- package/src/metadata-builder/builders/section-builders/testimonial-section-builder.ts +194 -0
- package/src/metadata-builder/builders/section-builders/text-section-builder.ts +234 -0
- package/src/metadata-builder/builders/section-content-factory.ts +20 -0
- package/src/metadata-builder/builders/section-field-maps.ts +235 -0
- package/src/metadata-builder/builders/section-field-utils.ts +157 -0
- package/src/metadata-builder/helpers/rte.helpers.ts +23 -1
- package/src/metadata-builder/metadata-executor.ts +96 -4
- package/src/metadata-builder/models.ts +62 -0
- package/src/metadata-builder/parsers/ai-toolcall-parser.ts +141 -17
- package/src/metadata-builder/parsers/section-tool-arguments.ts +417 -0
- package/src/shared/side-bar/components/SideBar.mixin.ts +10 -0
- package/src/utils/minify-brand-page-metadata.ts +407 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type getWebsiteContextualUpgradeResponse } from '../../../clients/brand-page-client';
|
|
2
2
|
import { type LogoDraftAsset, type LogoTemplateAsset } from '@brand-page-maker/stores';
|
|
3
3
|
import type { CustomDomainConfigModel, CustomDomainModel } from '@brand-page-maker/models';
|
|
4
|
+
import { type AbTest } from '@brand-page';
|
|
4
5
|
import type { WebsiteSlugCheckResponse } from '@brand-page-maker/models/api.model';
|
|
5
6
|
import { WEBSITE_UPGRADE_CONTEXT_TYPES } from '@designcrowd/fe-shared-lib';
|
|
6
7
|
export type WebsiteContextUpgradeType = keyof typeof WEBSITE_UPGRADE_CONTEXT_TYPES;
|
|
@@ -47,7 +48,7 @@ export interface BrandPageContainerState {
|
|
|
47
48
|
eventButtonLocation?: string;
|
|
48
49
|
websiteUpsellModalViewModel?: any;
|
|
49
50
|
showPublishOptionModal?: boolean;
|
|
50
|
-
abTests:
|
|
51
|
+
abTests: AbTest;
|
|
51
52
|
isSubsequentPublish: boolean;
|
|
52
53
|
isContextualUpgradeModalVisible: boolean;
|
|
53
54
|
contextualUpgradeType: WebsiteContextUpgradeType | undefined;
|
|
@@ -136,7 +137,36 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
136
137
|
eventButtonLocation?: string | undefined;
|
|
137
138
|
websiteUpsellModalViewModel?: any;
|
|
138
139
|
showPublishOptionModal?: boolean | undefined;
|
|
139
|
-
abTests:
|
|
140
|
+
abTests: {
|
|
141
|
+
bp_3926_freemium_watermark?: {
|
|
142
|
+
key: string;
|
|
143
|
+
value: string;
|
|
144
|
+
isControl: boolean;
|
|
145
|
+
isVariation: boolean;
|
|
146
|
+
isExcluded: boolean;
|
|
147
|
+
} | undefined;
|
|
148
|
+
bp_4572_ai_text_generation_post_purchase?: {
|
|
149
|
+
key: string;
|
|
150
|
+
value: string;
|
|
151
|
+
isControl: boolean;
|
|
152
|
+
isVariation: boolean;
|
|
153
|
+
isExcluded: boolean;
|
|
154
|
+
} | undefined;
|
|
155
|
+
bp_4964_ai_text_generation_improvement?: {
|
|
156
|
+
key: string;
|
|
157
|
+
value: string;
|
|
158
|
+
isControl: boolean;
|
|
159
|
+
isVariation: boolean;
|
|
160
|
+
isExcluded: boolean;
|
|
161
|
+
} | undefined;
|
|
162
|
+
bp_5245_ai_website_assistant?: {
|
|
163
|
+
key: string;
|
|
164
|
+
value: string;
|
|
165
|
+
isControl: boolean;
|
|
166
|
+
isVariation: boolean;
|
|
167
|
+
isExcluded: boolean;
|
|
168
|
+
} | undefined;
|
|
169
|
+
};
|
|
140
170
|
isSubsequentPublish: boolean;
|
|
141
171
|
isContextualUpgradeModalVisible: boolean;
|
|
142
172
|
contextualUpgradeType: WebsiteContextUpgradeType | undefined;
|
|
@@ -198,7 +228,36 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
|
|
|
198
228
|
eventButtonLocation?: string | undefined;
|
|
199
229
|
websiteUpsellModalViewModel?: any;
|
|
200
230
|
showPublishOptionModal?: boolean | undefined;
|
|
201
|
-
abTests:
|
|
231
|
+
abTests: {
|
|
232
|
+
bp_3926_freemium_watermark?: {
|
|
233
|
+
key: string;
|
|
234
|
+
value: string;
|
|
235
|
+
isControl: boolean;
|
|
236
|
+
isVariation: boolean;
|
|
237
|
+
isExcluded: boolean;
|
|
238
|
+
} | undefined;
|
|
239
|
+
bp_4572_ai_text_generation_post_purchase?: {
|
|
240
|
+
key: string;
|
|
241
|
+
value: string;
|
|
242
|
+
isControl: boolean;
|
|
243
|
+
isVariation: boolean;
|
|
244
|
+
isExcluded: boolean;
|
|
245
|
+
} | undefined;
|
|
246
|
+
bp_4964_ai_text_generation_improvement?: {
|
|
247
|
+
key: string;
|
|
248
|
+
value: string;
|
|
249
|
+
isControl: boolean;
|
|
250
|
+
isVariation: boolean;
|
|
251
|
+
isExcluded: boolean;
|
|
252
|
+
} | undefined;
|
|
253
|
+
bp_5245_ai_website_assistant?: {
|
|
254
|
+
key: string;
|
|
255
|
+
value: string;
|
|
256
|
+
isControl: boolean;
|
|
257
|
+
isVariation: boolean;
|
|
258
|
+
isExcluded: boolean;
|
|
259
|
+
} | undefined;
|
|
260
|
+
};
|
|
202
261
|
isSubsequentPublish: boolean;
|
|
203
262
|
isContextualUpgradeModalVisible: boolean;
|
|
204
263
|
contextualUpgradeType: WebsiteContextUpgradeType | undefined;
|
|
@@ -466,6 +466,8 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
466
466
|
// TODO: refactor and extend this method for initialise stores.
|
|
467
467
|
// TODO: waiting to do undo/redo feature to extend this functionality
|
|
468
468
|
async initialiseStoresByBrandPageModelAsync(brandPageModel) {
|
|
469
|
+
const pageNavigationStore = usePageNavigationStore();
|
|
470
|
+
pageNavigationStore.setNav({ nav: brandPageModel.nav });
|
|
469
471
|
this.initialisePagesForCurrentPage({
|
|
470
472
|
pages: brandPageModel.pages,
|
|
471
473
|
sections: {
|
|
@@ -11,4 +11,6 @@ export declare const useSnapshotStore: import("pinia").StoreDefinition<"snapshot
|
|
|
11
11
|
setBase64Snapshot(base64: string | null): void;
|
|
12
12
|
setIsCapturing(isCapturing: boolean): void;
|
|
13
13
|
clearSnapshot(): void;
|
|
14
|
+
registerCaptureCallback(callback: () => Promise<void>): void;
|
|
15
|
+
refreshSnapshotAsync(): Promise<void>;
|
|
14
16
|
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineStore } from 'pinia';
|
|
2
|
+
let captureCallback = null;
|
|
2
3
|
export const useSnapshotStore = defineStore('snapshot', {
|
|
3
4
|
state: () => ({
|
|
4
5
|
snapshotBase64: null,
|
|
@@ -14,6 +15,14 @@ export const useSnapshotStore = defineStore('snapshot', {
|
|
|
14
15
|
clearSnapshot() {
|
|
15
16
|
this.snapshotBase64 = null;
|
|
16
17
|
},
|
|
18
|
+
registerCaptureCallback(callback) {
|
|
19
|
+
captureCallback = callback;
|
|
20
|
+
},
|
|
21
|
+
async refreshSnapshotAsync() {
|
|
22
|
+
if (captureCallback) {
|
|
23
|
+
await captureCallback();
|
|
24
|
+
}
|
|
25
|
+
},
|
|
17
26
|
},
|
|
18
27
|
getters: {
|
|
19
28
|
hasSnapshot: (state) => !!state.snapshotBase64,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { MinifiedBrandPageMetadata } from '../utils/minify-brand-page-metadata';
|
|
1
2
|
export declare const AI_ASSISTANT_AGENT_TYPES: {
|
|
2
3
|
readonly WEBSITE_TEXT_ELEMENT: "website_text_element";
|
|
4
|
+
readonly WEBSITE_BUILDER: "website_builder";
|
|
3
5
|
};
|
|
4
6
|
export type AiAssistantAgentType = (typeof AI_ASSISTANT_AGENT_TYPES)[keyof typeof AI_ASSISTANT_AGENT_TYPES];
|
|
5
7
|
export type AiAssistantResponseType = 'message' | 'tool_calls' | 'tool_calls_with_message';
|
|
@@ -98,4 +100,10 @@ export declare class AiAssistantClient {
|
|
|
98
100
|
* Build the JSON message content for website text element agent
|
|
99
101
|
*/
|
|
100
102
|
export declare const buildWebsiteTextElementMessage: (content: WebsiteTextElementRequestContent) => string;
|
|
103
|
+
/**
|
|
104
|
+
* Build the message content for website builder agent.
|
|
105
|
+
* Embeds minified metadata as a JSON code fence in the message text
|
|
106
|
+
* so the ai-pipeline's _extract_context_from_request() can parse it.
|
|
107
|
+
*/
|
|
108
|
+
export declare const buildWebsiteBuilderMessage: (userPrompt: string, minifiedMetadata: MinifiedBrandPageMetadata) => string;
|
|
101
109
|
export declare const getInstance: () => AiAssistantClient;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import axios, {} from 'axios';
|
|
2
|
-
import { useBrandPageContainerStore } from '
|
|
2
|
+
import { useBrandPageContainerStore } from '../brand-page-maker/stores/brandpage-container/brand-page-container-store';
|
|
3
3
|
// Agent types
|
|
4
4
|
export const AI_ASSISTANT_AGENT_TYPES = {
|
|
5
5
|
WEBSITE_TEXT_ELEMENT: 'website_text_element',
|
|
6
|
+
WEBSITE_BUILDER: 'website_builder',
|
|
6
7
|
};
|
|
7
8
|
// Website Endpoints
|
|
8
9
|
export const getWebsiteCreateThreadEndpoint = () => `/api/assistant/thread/website`;
|
|
@@ -111,5 +112,14 @@ export class AiAssistantClient {
|
|
|
111
112
|
export const buildWebsiteTextElementMessage = (content) => {
|
|
112
113
|
return JSON.stringify(content);
|
|
113
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Build the message content for website builder agent.
|
|
117
|
+
* Embeds minified metadata as a JSON code fence in the message text
|
|
118
|
+
* so the ai-pipeline's _extract_context_from_request() can parse it.
|
|
119
|
+
*/
|
|
120
|
+
export const buildWebsiteBuilderMessage = (userPrompt, minifiedMetadata) => {
|
|
121
|
+
const metadataJson = JSON.stringify(minifiedMetadata);
|
|
122
|
+
return `${userPrompt}\n\nmetadata:\n\`\`\`json\n${metadataJson}\n\`\`\``;
|
|
123
|
+
};
|
|
114
124
|
let _instance;
|
|
115
125
|
export const getInstance = () => _instance ? _instance : (_instance = new AiAssistantClient());
|
|
@@ -47,12 +47,45 @@ export function useSnapshot() {
|
|
|
47
47
|
if (typeof window.html2canvas === 'undefined') {
|
|
48
48
|
throw new Error('html2canvas failed to load');
|
|
49
49
|
}
|
|
50
|
+
// Pre-fetch blob URLs from shape <object> elements so they can be
|
|
51
|
+
// rendered as <img> in the html2canvas clone (html2canvas cannot
|
|
52
|
+
// traverse the isolated DOM inside <object> elements).
|
|
53
|
+
const shapeDataUris = new Map();
|
|
54
|
+
const shapeObjects = element.querySelectorAll('.c-shape-object object');
|
|
55
|
+
for (const obj of Array.from(shapeObjects)) {
|
|
56
|
+
const dataUrl = obj.getAttribute('data');
|
|
57
|
+
if (dataUrl && dataUrl.startsWith('blob:')) {
|
|
58
|
+
try {
|
|
59
|
+
const response = await fetch(dataUrl);
|
|
60
|
+
const svgText = await response.text();
|
|
61
|
+
shapeDataUris.set(dataUrl, `data:image/svg+xml,${encodeURIComponent(svgText)}`);
|
|
62
|
+
}
|
|
63
|
+
catch {
|
|
64
|
+
/* skip – shape will render as blank, same as before */
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
50
68
|
const canvas = await window.html2canvas(element, {
|
|
51
69
|
allowTaint: true,
|
|
52
70
|
useCORS: true,
|
|
53
71
|
scale: 0.8, // Reduce quality to decrease file size
|
|
54
72
|
logging: false,
|
|
55
73
|
backgroundColor: '#ffffff',
|
|
74
|
+
onclone: (_doc, clonedElement) => {
|
|
75
|
+
const clonedObjects = clonedElement.querySelectorAll('.c-shape-object object');
|
|
76
|
+
clonedObjects.forEach((obj) => {
|
|
77
|
+
const dataUrl = obj.getAttribute('data');
|
|
78
|
+
if (dataUrl && shapeDataUris.has(dataUrl)) {
|
|
79
|
+
const img = _doc.createElement('img');
|
|
80
|
+
img.src = shapeDataUris.get(dataUrl);
|
|
81
|
+
const style = obj.getAttribute('style');
|
|
82
|
+
if (style) {
|
|
83
|
+
img.setAttribute('style', style);
|
|
84
|
+
}
|
|
85
|
+
obj.parentNode?.replaceChild(img, obj);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
},
|
|
56
89
|
});
|
|
57
90
|
const base64Image = canvas.toDataURL('image/jpeg', 0.8); // Use JPEG with 80% quality for smaller size
|
|
58
91
|
lastSnapshot.value = base64Image;
|
|
@@ -9172,7 +9172,20 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
9172
9172
|
}
|
|
9173
9173
|
}
|
|
9174
9174
|
|
|
9175
|
-
.
|
|
9175
|
+
.ai-container {
|
|
9176
|
+
height: calc(100vh - 90px);
|
|
9177
|
+
margin-left: -1.25rem;
|
|
9178
|
+
margin-right: -1.25rem;
|
|
9179
|
+
display: -webkit-box;
|
|
9180
|
+
display: -ms-flexbox;
|
|
9181
|
+
display: flex;
|
|
9182
|
+
-webkit-box-orient: vertical;
|
|
9183
|
+
-webkit-box-direction: normal;
|
|
9184
|
+
-ms-flex-direction: column;
|
|
9185
|
+
flex-direction: column;
|
|
9186
|
+
}
|
|
9187
|
+
|
|
9188
|
+
.c-brand-page-maker[data-v-974836d4] {
|
|
9176
9189
|
--navigation-height-desktop: 64px;
|
|
9177
9190
|
--navigation-height-mobile: 96px;
|
|
9178
9191
|
--maker-height: 100vh;
|
|
@@ -9182,10 +9195,10 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
9182
9195
|
height: calc(var(--maker-height) - var(--mobile-sidebar-bottom-height));
|
|
9183
9196
|
padding-top: var(--navigation-height-mobile);
|
|
9184
9197
|
}
|
|
9185
|
-
.c-brand-page-maker__inner[data-v-
|
|
9198
|
+
.c-brand-page-maker__inner[data-v-974836d4] {
|
|
9186
9199
|
height: 100%;
|
|
9187
9200
|
}
|
|
9188
|
-
.c-save-bar[data-v-
|
|
9201
|
+
.c-save-bar[data-v-974836d4] {
|
|
9189
9202
|
position: absolute;
|
|
9190
9203
|
top: 0px;
|
|
9191
9204
|
left: 0px;
|
|
@@ -9207,7 +9220,7 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
9207
9220
|
-webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
9208
9221
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
9209
9222
|
}
|
|
9210
|
-
.c-save-bar--visible[data-v-
|
|
9223
|
+
.c-save-bar--visible[data-v-974836d4] {
|
|
9211
9224
|
visibility: visible !important;
|
|
9212
9225
|
--tw-translate-y: 0px !important;
|
|
9213
9226
|
-webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
|
|
@@ -9217,11 +9230,11 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
9217
9230
|
transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
9218
9231
|
}
|
|
9219
9232
|
@media (min-width: 1024px) {
|
|
9220
|
-
.c-brand-page-maker[data-v-
|
|
9233
|
+
.c-brand-page-maker[data-v-974836d4] {
|
|
9221
9234
|
height: calc(var(--maker-height) - var(--navigation-height-desktop));
|
|
9222
9235
|
padding-top: 0px;
|
|
9223
9236
|
}
|
|
9224
|
-
.c-brand-page-maker__inner[data-v-
|
|
9237
|
+
.c-brand-page-maker__inner[data-v-974836d4] {
|
|
9225
9238
|
height: 100%;
|
|
9226
9239
|
}
|
|
9227
9240
|
}
|
|
@@ -9491,7 +9491,20 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
9491
9491
|
}
|
|
9492
9492
|
}
|
|
9493
9493
|
|
|
9494
|
-
.
|
|
9494
|
+
.ai-container {
|
|
9495
|
+
height: calc(100vh - 90px);
|
|
9496
|
+
margin-left: -1.25rem;
|
|
9497
|
+
margin-right: -1.25rem;
|
|
9498
|
+
display: -webkit-box;
|
|
9499
|
+
display: -ms-flexbox;
|
|
9500
|
+
display: flex;
|
|
9501
|
+
-webkit-box-orient: vertical;
|
|
9502
|
+
-webkit-box-direction: normal;
|
|
9503
|
+
-ms-flex-direction: column;
|
|
9504
|
+
flex-direction: column;
|
|
9505
|
+
}
|
|
9506
|
+
|
|
9507
|
+
.c-brand-page-maker[data-v-974836d4] {
|
|
9495
9508
|
--navigation-height-desktop: 64px;
|
|
9496
9509
|
--navigation-height-mobile: 96px;
|
|
9497
9510
|
--maker-height: 100vh;
|
|
@@ -9501,10 +9514,10 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
9501
9514
|
height: calc(var(--maker-height) - var(--mobile-sidebar-bottom-height));
|
|
9502
9515
|
padding-top: var(--navigation-height-mobile);
|
|
9503
9516
|
}
|
|
9504
|
-
.c-brand-page-maker__inner[data-v-
|
|
9517
|
+
.c-brand-page-maker__inner[data-v-974836d4] {
|
|
9505
9518
|
height: 100%;
|
|
9506
9519
|
}
|
|
9507
|
-
.c-save-bar[data-v-
|
|
9520
|
+
.c-save-bar[data-v-974836d4] {
|
|
9508
9521
|
position: absolute;
|
|
9509
9522
|
top: 0px;
|
|
9510
9523
|
left: 0px;
|
|
@@ -9526,7 +9539,7 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
9526
9539
|
-webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
9527
9540
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
9528
9541
|
}
|
|
9529
|
-
.c-save-bar--visible[data-v-
|
|
9542
|
+
.c-save-bar--visible[data-v-974836d4] {
|
|
9530
9543
|
visibility: visible !important;
|
|
9531
9544
|
--tw-translate-y: 0px !important;
|
|
9532
9545
|
-webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
|
|
@@ -9536,11 +9549,11 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
9536
9549
|
transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
9537
9550
|
}
|
|
9538
9551
|
@media (min-width: 1024px) {
|
|
9539
|
-
.c-brand-page-maker[data-v-
|
|
9552
|
+
.c-brand-page-maker[data-v-974836d4] {
|
|
9540
9553
|
height: calc(var(--maker-height) - var(--navigation-height-desktop));
|
|
9541
9554
|
padding-top: 0px;
|
|
9542
9555
|
}
|
|
9543
|
-
.c-brand-page-maker__inner[data-v-
|
|
9556
|
+
.c-brand-page-maker__inner[data-v-974836d4] {
|
|
9544
9557
|
height: 100%;
|
|
9545
9558
|
}
|
|
9546
9559
|
}
|
|
@@ -9202,7 +9202,20 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
9202
9202
|
}
|
|
9203
9203
|
}
|
|
9204
9204
|
|
|
9205
|
-
.
|
|
9205
|
+
.ai-container {
|
|
9206
|
+
height: calc(100vh - 90px);
|
|
9207
|
+
margin-left: -1.25rem;
|
|
9208
|
+
margin-right: -1.25rem;
|
|
9209
|
+
display: -webkit-box;
|
|
9210
|
+
display: -ms-flexbox;
|
|
9211
|
+
display: flex;
|
|
9212
|
+
-webkit-box-orient: vertical;
|
|
9213
|
+
-webkit-box-direction: normal;
|
|
9214
|
+
-ms-flex-direction: column;
|
|
9215
|
+
flex-direction: column;
|
|
9216
|
+
}
|
|
9217
|
+
|
|
9218
|
+
.c-brand-page-maker[data-v-974836d4] {
|
|
9206
9219
|
--navigation-height-desktop: 64px;
|
|
9207
9220
|
--navigation-height-mobile: 96px;
|
|
9208
9221
|
--maker-height: 100vh;
|
|
@@ -9212,10 +9225,10 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
9212
9225
|
height: calc(var(--maker-height) - var(--mobile-sidebar-bottom-height));
|
|
9213
9226
|
padding-top: var(--navigation-height-mobile);
|
|
9214
9227
|
}
|
|
9215
|
-
.c-brand-page-maker__inner[data-v-
|
|
9228
|
+
.c-brand-page-maker__inner[data-v-974836d4] {
|
|
9216
9229
|
height: 100%;
|
|
9217
9230
|
}
|
|
9218
|
-
.c-save-bar[data-v-
|
|
9231
|
+
.c-save-bar[data-v-974836d4] {
|
|
9219
9232
|
position: absolute;
|
|
9220
9233
|
top: 0px;
|
|
9221
9234
|
left: 0px;
|
|
@@ -9237,7 +9250,7 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
9237
9250
|
-webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
9238
9251
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
9239
9252
|
}
|
|
9240
|
-
.c-save-bar--visible[data-v-
|
|
9253
|
+
.c-save-bar--visible[data-v-974836d4] {
|
|
9241
9254
|
visibility: visible !important;
|
|
9242
9255
|
--tw-translate-y: 0px !important;
|
|
9243
9256
|
-webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
|
|
@@ -9247,11 +9260,11 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
9247
9260
|
transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
9248
9261
|
}
|
|
9249
9262
|
@media (min-width: 1024px) {
|
|
9250
|
-
.c-brand-page-maker[data-v-
|
|
9263
|
+
.c-brand-page-maker[data-v-974836d4] {
|
|
9251
9264
|
height: calc(var(--maker-height) - var(--navigation-height-desktop));
|
|
9252
9265
|
padding-top: 0px;
|
|
9253
9266
|
}
|
|
9254
|
-
.c-brand-page-maker__inner[data-v-
|
|
9267
|
+
.c-brand-page-maker__inner[data-v-974836d4] {
|
|
9255
9268
|
height: 100%;
|
|
9256
9269
|
}
|
|
9257
9270
|
}
|
|
@@ -8908,7 +8908,20 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
8908
8908
|
}
|
|
8909
8909
|
}
|
|
8910
8910
|
|
|
8911
|
-
.bp .
|
|
8911
|
+
.bp .ai-container {
|
|
8912
|
+
height: calc(100vh - 90px);
|
|
8913
|
+
margin-left: -1.25rem;
|
|
8914
|
+
margin-right: -1.25rem;
|
|
8915
|
+
display: -webkit-box;
|
|
8916
|
+
display: -ms-flexbox;
|
|
8917
|
+
display: flex;
|
|
8918
|
+
-webkit-box-orient: vertical;
|
|
8919
|
+
-webkit-box-direction: normal;
|
|
8920
|
+
-ms-flex-direction: column;
|
|
8921
|
+
flex-direction: column;
|
|
8922
|
+
}
|
|
8923
|
+
|
|
8924
|
+
.bp .c-brand-page-maker[data-v-974836d4] {
|
|
8912
8925
|
--navigation-height-desktop: 64px;
|
|
8913
8926
|
--navigation-height-mobile: 96px;
|
|
8914
8927
|
--maker-height: 100vh;
|
|
@@ -8918,10 +8931,10 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
8918
8931
|
height: calc(var(--maker-height) - var(--mobile-sidebar-bottom-height));
|
|
8919
8932
|
padding-top: var(--navigation-height-mobile);
|
|
8920
8933
|
}
|
|
8921
|
-
.bp .c-brand-page-maker__inner[data-v-
|
|
8934
|
+
.bp .c-brand-page-maker__inner[data-v-974836d4] {
|
|
8922
8935
|
height: 100%;
|
|
8923
8936
|
}
|
|
8924
|
-
.bp .c-save-bar[data-v-
|
|
8937
|
+
.bp .c-save-bar[data-v-974836d4] {
|
|
8925
8938
|
position: absolute;
|
|
8926
8939
|
top: 0px;
|
|
8927
8940
|
left: 0px;
|
|
@@ -8943,7 +8956,7 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
8943
8956
|
-webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
8944
8957
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
8945
8958
|
}
|
|
8946
|
-
.bp .c-save-bar--visible[data-v-
|
|
8959
|
+
.bp .c-save-bar--visible[data-v-974836d4] {
|
|
8947
8960
|
visibility: visible !important;
|
|
8948
8961
|
--tw-translate-y: 0px !important;
|
|
8949
8962
|
-webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
|
|
@@ -8953,11 +8966,11 @@ input[type='number'][data-v-b7154ee1] {
|
|
|
8953
8966
|
transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
8954
8967
|
}
|
|
8955
8968
|
@media (min-width: 1024px) {
|
|
8956
|
-
.bp .c-brand-page-maker[data-v-
|
|
8969
|
+
.bp .c-brand-page-maker[data-v-974836d4] {
|
|
8957
8970
|
height: calc(var(--maker-height) - var(--navigation-height-desktop));
|
|
8958
8971
|
padding-top: 0px;
|
|
8959
8972
|
}
|
|
8960
|
-
.bp .c-brand-page-maker__inner[data-v-
|
|
8973
|
+
.bp .c-brand-page-maker__inner[data-v-974836d4] {
|
|
8961
8974
|
height: 100%;
|
|
8962
8975
|
}
|
|
8963
8976
|
}
|
package/lib/src/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export { default as Page } from './brand-page/components/page/Page.vue';
|
|
|
21
21
|
export { default as CookieConsent } from './brand-page/components/cookie-consent/CookieConsent.vue';
|
|
22
22
|
export { default as SensitiveContentModal } from './brand-page/components/sensitive-content/SensitiveContentModal.vue';
|
|
23
23
|
export { getBrandPageViewModelFromBrandPageModel, migrateBrandPageModel, } from './brand-page/utils';
|
|
24
|
+
export { minifyBrandPageMetadata, type MinifiedBrandPageMetadata, } from './utils/minify-brand-page-metadata';
|
|
24
25
|
export * as brandPageUtils from './brand-page/utils';
|
|
25
26
|
export type { CriticalResourceURLs } from './brand-page/utils/view-model.util';
|
|
26
27
|
export { getOptimalLogoSize, calculateOptimizedLogoDimensions, applyLogoImageBase64UrlToBrandPageTemplateModel, recalculateLogoContentDimensions, recalculateHeaderLogoSizes, } from './brand-page/utils/logo.util';
|
package/lib/src/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 P, l as t, m as R, n as L, o as M, p as o, q as r, r as b, s as n, t as F, u as
|
|
2
|
-
import { createPinia as
|
|
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 P, l as t, m as R, n as L, o as M, p as o, q as r, r as b, s as n, t as F, u as i, v as l, 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 m, K as k, L as V, M as X, N as h, O as v, P as W, Q as f, R as x, S as z, T as Z, U as w, 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 Pa, ae as ta, af as Ra, ag as La, ah as Ma, ai as oa, aj as ra, ak as ba, al as na, am as Fa, an as ia, ao as la, 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 ma, aB as ka, aC as Va, aD as Xa, aE as ha, aF as va, aG as Wa, aH as fa, aI as xa, aJ as za, aK as Za, aL as wa, 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 P_, b4 as t_, b5 as R_, b6 as L_, b7 as M_, b8 as o_, b9 as r_, ba as b_, bb as n_, bc as F_, bd as i_, be as l_, 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 m_, br as k_, bs as V_, bt as X_, bu as h_, bv as v_, bw as W_, bx as f_, by as x_, bz as z_, bA as Z_, bB as w_, 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 PE, bW as tE, bX as RE, bY as LE, bZ as ME, b_ as oE, b$ as rE, c0 as bE, c1 as nE, c2 as FE, c3 as iE, c4 as lE, 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 mE, ch as kE, ci as VE, cj as XE, ck as hE, cl as vE, cm as WE, cn as fE } from "./lib-pOkCQP0J.js";
|
|
2
|
+
import { createPinia as zE, setActivePinia as ZE } from "pinia";
|
|
3
3
|
export {
|
|
4
4
|
E as ABOUT_SECTION_SETTINGS_CONFIG,
|
|
5
5
|
T as AB_TEST_FLAG,
|
|
@@ -23,8 +23,8 @@ export {
|
|
|
23
23
|
b as BRANDPAGE_SLUG_CHARACTER_LIMIT_ERROR_MESSAGE,
|
|
24
24
|
n as BRANDPAGE_SLUG_INVALID_ERROR_MESSAGE,
|
|
25
25
|
F as BRANDPAGE_TITLE_CHARACTER_LIMIT,
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
i as BRANDPAGE_TITLE_CHARACTER_LIMIT_ERROR_MESSAGE,
|
|
27
|
+
l as BRAND_CONTACT_PATH_FRAGMENT,
|
|
28
28
|
g as BRAND_PAGE_PATH_FRAGMENT,
|
|
29
29
|
B as BRAND_PAGE_TYPES,
|
|
30
30
|
c as BRAND_SITE_PATH_FRAGMENT,
|
|
@@ -36,15 +36,15 @@ export {
|
|
|
36
36
|
p as BackgroundGradientStarterKit,
|
|
37
37
|
y as BackgroundImageSamples,
|
|
38
38
|
K as BackgroundShape,
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
m as BackgroundShapeStarterKit,
|
|
40
|
+
k as BackgroundStyles,
|
|
41
41
|
V as BrandPageMaker,
|
|
42
42
|
X as BrandPageModel,
|
|
43
43
|
h as ButtonStyles,
|
|
44
44
|
v as CONTACT_FORM_SETTINGS_CONFIG,
|
|
45
45
|
W as CONTENT_SETTINGS_CONFIGS,
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
f as CONTENT_TYPES,
|
|
47
|
+
x as CREATE_ADMIN_MEDIA_ENDPOINT,
|
|
48
48
|
z as CREATE_USER_MEDIA_ENDPOINT,
|
|
49
49
|
Z as CUSTOM_DOMAIN_INSTRUCTION_DNS_HOST_DISPLAY_TEXT,
|
|
50
50
|
w as CUSTOM_DOMAIN_STATUSES,
|
|
@@ -77,8 +77,8 @@ export {
|
|
|
77
77
|
ba as GET_ALL_USER_MEDIA_ENDPOINT,
|
|
78
78
|
na as GalleryStyles,
|
|
79
79
|
Fa as GettyVideoMedia,
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
ia as GoogleAnalytics,
|
|
81
|
+
la as GoogleMapsPlugin,
|
|
82
82
|
ga as HEADER_DISPLAY,
|
|
83
83
|
Ba as HYPERLINK_TYPE,
|
|
84
84
|
ca as IMAGES_SECTION_SETTINGS_CONFIG,
|
|
@@ -90,15 +90,15 @@ export {
|
|
|
90
90
|
pa as LOGO_SETTINGS_CONFIG,
|
|
91
91
|
ya as LogoRender,
|
|
92
92
|
Ka as LogoStyles,
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
ma as MAILING_LIST_CONTENT_SETTINGS_CONFIG,
|
|
94
|
+
ka as MAKER_MOBILE_BREAKPOINT,
|
|
95
95
|
Va as MAP_CONTENT_SETTINGS_CONFIG,
|
|
96
96
|
Xa as MEDIA_SIZES,
|
|
97
97
|
ha as MEDIA_TYPES,
|
|
98
98
|
va as MESSAGE_VISIBLE_DURATION,
|
|
99
99
|
Wa as MOBILE_HEIGHT,
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
fa as MOBILE_WIDTH,
|
|
101
|
+
xa as MY_DESIGN_ASSETS_ENDPOINTS,
|
|
102
102
|
za as NAVIGATION_DISPLAY,
|
|
103
103
|
Za as NavModel,
|
|
104
104
|
wa as NavigationDesktop,
|
|
@@ -131,8 +131,8 @@ export {
|
|
|
131
131
|
b_ as STRIPE_ADDRESS_LIMITS,
|
|
132
132
|
n_ as STYLE_THEME_KEYS,
|
|
133
133
|
F_ as SUPPORT_ME_CONTENT_SETTINGS_CONFIG,
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
i_ as SensitiveContent,
|
|
135
|
+
l_ as SensitiveContentModal,
|
|
136
136
|
g_ as SeoPageSettings,
|
|
137
137
|
B_ as ShapeAspectRatioCategory,
|
|
138
138
|
c_ as TESTIMONIALS_SECTION_SETTINGS_CONFIG,
|
|
@@ -144,15 +144,15 @@ export {
|
|
|
144
144
|
p_ as TEXT_MEDIA_HEADING_STYLE_FIELD,
|
|
145
145
|
y_ as TEXT_MEDIA_PARAGRAPH_STYLE_FIELD,
|
|
146
146
|
K_ as TEXT_MEDIA_TITLE_FIELD,
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
m_ as TEXT_MEDIA_TITLE_STYLE_FIELD,
|
|
148
|
+
k_ as TEXT_STYLE_TYPES,
|
|
149
149
|
V_ as TEXT_STYLE_TYPES_DISPLAY_NAME_MAP,
|
|
150
150
|
X_ as TIKTOK_CONTENT_SETTINGS_CONFIG,
|
|
151
151
|
h_ as TWITCH_CONTENT_SETTINGS_CONFIG,
|
|
152
152
|
v_ as TextStyleOption,
|
|
153
153
|
W_ as TextStyles,
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
f_ as UI_DEVICE_MODES,
|
|
155
|
+
x_ as UI_EVENTS,
|
|
156
156
|
z_ as UI_EVENT_SOURCES,
|
|
157
157
|
Z_ as UI_SCREENSIZE_MODES,
|
|
158
158
|
w_ as UPGRADE_CTA_LOCATIONS,
|
|
@@ -175,7 +175,7 @@ export {
|
|
|
175
175
|
CE as calculateOptimizedLogoDimensions,
|
|
176
176
|
GE as createBrandPageMakerRouter,
|
|
177
177
|
DE as createNewI18nInstance,
|
|
178
|
-
|
|
178
|
+
zE as createPinia,
|
|
179
179
|
PE as emptyGlobalTextStyleDeclaration,
|
|
180
180
|
tE as forEachPageCallContentCallback,
|
|
181
181
|
RE as getAbTestResults,
|
|
@@ -186,25 +186,26 @@ export {
|
|
|
186
186
|
bE as getValueType,
|
|
187
187
|
nE as isGoogleType,
|
|
188
188
|
FE as isStripePaymentIntent,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
gE as
|
|
192
|
-
BE as
|
|
193
|
-
cE as
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
UE as
|
|
197
|
-
dE as
|
|
198
|
-
uE as
|
|
199
|
-
HE as
|
|
200
|
-
pE as
|
|
201
|
-
yE as
|
|
202
|
-
KE as
|
|
189
|
+
iE as isUrlType,
|
|
190
|
+
lE as migrateBrandPageModel,
|
|
191
|
+
gE as minifyBrandPageMetadata,
|
|
192
|
+
BE as recalculateHeaderLogoSizes,
|
|
193
|
+
cE as recalculateLogoContentDimensions,
|
|
194
|
+
YE as sanitizeRTEHtml,
|
|
195
|
+
ZE as setActivePinia,
|
|
196
|
+
UE as setLocaleAsync,
|
|
197
|
+
dE as setRouterInstance,
|
|
198
|
+
uE as setupSSRPinia,
|
|
199
|
+
HE as tr,
|
|
200
|
+
pE as useBrandPageContainerStore,
|
|
201
|
+
yE as useBrandPageMakerStore,
|
|
202
|
+
KE as useBrandPageMakerUserStore,
|
|
203
|
+
mE as useConsent,
|
|
203
204
|
kE as useEventManagerStore,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
205
|
+
VE as useEventTracker,
|
|
206
|
+
XE as useLocalisedRouteStore,
|
|
207
|
+
hE as useReCaptcha,
|
|
208
|
+
vE as useShopConfigStore,
|
|
209
|
+
WE as useUiStore,
|
|
210
|
+
fE as useVideoStore
|
|
210
211
|
};
|