@designcrowd/library.brand-page 5.14.18 → 5.15.0-ast-getty
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-DcUC9u9V.js → CreatedOnBrandCrowd-de-de-UBjZ9E8b.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-CyE7w_kQ.js → CreatedOnBrandCrowd-en-us-Dxv-e7xY.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-CYfCI1eo.js → CreatedOnBrandCrowd-es-es-D1mxOUzA.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-XneRcW9W.js → CreatedOnBrandCrowd-fr-ca-BGXkoBpt.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-XneRcW9W.js → CreatedOnBrandCrowd-fr-fr-BGXkoBpt.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-DN9Jvi8B.js → CreatedOnBrandCrowd-pt-br--hMa1GOB.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-DN9Jvi8B.js → CreatedOnBrandCrowd-pt-pt--hMa1GOB.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-xeVBy03R.js → CreatedOnDcom-de-de-BahEsppf.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-Db5rDsSD.js → CreatedOnDcom-en-us-pFR9frdw.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-Dsza6g1E.js → CreatedOnDcom-es-es-8B5kqKM3.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-DfG2BFbq.js → CreatedOnDcom-fr-ca-CLts1YA1.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-B0EqCu0Q.js → CreatedOnDcom-fr-fr-DCbmqhsM.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-Bf9E4uxV.js → CreatedOnDcom-pt-br-BzbiPbzA.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-C_COgmdc.js → CreatedOnDcom-pt-pt-2w68rAO_.js} +1 -1
- package/lib/src/brand-page/constants/logo.constants.d.ts +1 -0
- package/lib/src/brand-page/constants/logo.constants.js +2 -0
- package/lib/src/brand-page/constants/styles.constants.d.ts +2 -2
- package/lib/src/brand-page/constants/styles.constants.js +2 -2
- package/lib/src/brand-page/utils/migration/migration-01.d.ts +3 -2
- package/lib/src/brand-page/utils/migration/migration-01.js +3 -2
- package/lib/src/brand-page/utils/migration/migration-01_1.d.ts +4 -3
- package/lib/src/brand-page/utils/migration/migration-01_1.js +3 -2
- package/lib/src/brand-page/utils/migration/migration-02.d.ts +4 -3
- package/lib/src/brand-page/utils/migration/migration-02.js +3 -2
- package/lib/src/brand-page/utils/migration/migration-03.d.ts +4 -3
- package/lib/src/brand-page/utils/migration/migration-03.js +3 -2
- package/lib/src/brand-page/utils/migration/migration-04.d.ts +4 -3
- package/lib/src/brand-page/utils/migration/migration-04.js +3 -2
- package/lib/src/brand-page/utils/migration/migration-05.d.ts +6 -2
- package/lib/src/brand-page/utils/migration/migration-05.js +3 -2
- package/lib/src/brand-page/utils/migration/migration-05_1.d.ts +3 -3
- package/lib/src/brand-page/utils/migration/migration-05_1.js +3 -3
- package/lib/src/brand-page/utils/migration/migration-05_2.d.ts +3 -3
- package/lib/src/brand-page/utils/migration/migration-05_2.js +3 -2
- package/lib/src/brand-page/utils/migration/migration-06.d.ts +2 -2
- package/lib/src/brand-page/utils/migration/migration-06.js +3 -2
- package/lib/src/brand-page/utils/migration/migration-07.d.ts +4 -0
- package/lib/src/brand-page/utils/migration/migration-07.js +60 -0
- package/lib/src/brand-page/utils/migration.util.d.ts +6 -1
- package/lib/src/brand-page/utils/migration.util.js +18 -7
- package/lib/src/brand-page/utils/style.util.d.ts +0 -8
- package/lib/src/brand-page/utils/style.util.js +0 -26
- package/lib/src/brand-page/utils/view-model.util.d.ts +6 -4
- package/lib/src/brand-page/utils/view-model.util.js +34 -33
- package/lib/src/brand-page/view-models.d.ts +1 -0
- package/lib/src/brand-page-maker/components/action-bar/ActionBar.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.mixin.d.ts +3 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +4 -3
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.d.ts +1 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +48 -2
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMakerTemplateSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.d.ts +1122 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +1058 -0
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +1 -1
- package/lib/src/brand-page-maker/components/brandpage-settings/ReplaceImageSettingsForBrandPageSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/color-palette/BpColorPalette.mixin.d.ts +103 -0
- package/lib/src/brand-page-maker/components/color-palette/BpColorPalette.mixin.js +116 -0
- package/lib/src/brand-page-maker/components/google-analytics/GoogleAnalytics.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/social-share/SocialShare.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +1 -1
- package/lib/src/brand-page-maker/composables/useEventTracker.d.ts +0 -2
- package/lib/src/brand-page-maker/composables/useEventTracker.js +0 -2
- package/lib/src/brand-page-maker/constants/config-settings-constant.js +1 -1
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.d.ts +2 -2
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +4 -3
- package/lib/src/brand-page-maker/stores/logo-store/logo-store.d.ts +0 -16
- package/lib/src/brand-page-maker/stores/logo-store/logo-store.js +0 -44
- package/lib/src/brand-page-maker/stores/ui/ui-store.d.ts +3 -2
- package/lib/src/brand-page-maker/stores/ui/ui-store.js +1 -1
- package/lib/src/bundled-translations-BzVCR5P2.js +157 -0
- package/lib/src/bundled-translations.de-DE-D8hpgB4c.js +155 -0
- package/lib/src/bundled-translations.es-ES-DDEID1pS.js +155 -0
- package/lib/src/bundled-translations.fr-CA-Bw7BvB5S.js +155 -0
- package/lib/src/bundled-translations.fr-FR-CYttyVyK.js +155 -0
- package/lib/src/bundled-translations.pt-BR-Ba0E7RWH.js +155 -0
- package/lib/src/bundled-translations.pt-PT-ChNJIgpc.js +155 -0
- package/lib/src/bundles/bundled-translations.de-DE.json +1 -14
- package/lib/src/bundles/bundled-translations.es-ES.json +1 -14
- package/lib/src/bundles/bundled-translations.fr-CA.json +1 -14
- package/lib/src/bundles/bundled-translations.fr-FR.json +1 -14
- package/lib/src/bundles/bundled-translations.json +8 -14
- package/lib/src/bundles/bundled-translations.pt-BR.json +1 -14
- package/lib/src/bundles/bundled-translations.pt-PT.json +1 -14
- package/lib/src/clients/brand-page-client.d.ts +0 -31
- package/lib/src/clients/brand-page-client.js +0 -40
- package/lib/src/composables/useTranslate.d.ts +2 -3
- package/lib/src/composables/useTranslate.js +2 -3
- package/lib/src/css/library.brand-page-brandCrowd.min.css +43 -20
- package/lib/src/css/library.brand-page-brandPage.min.css +43 -20
- package/lib/src/css/library.brand-page-designCom.min.css +43 -20
- package/lib/src/css/library.brand-page-preview.min.css +43 -20
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-C9-6KWzA.js → lib-Cxo-IUYm.js} +26063 -25892
- package/lib/src/shared/color-picker/components/ColorPicker.mixin.d.ts +3 -6
- package/lib/src/shared/color-picker/components/ColorPicker.mixin.js +38 -123
- package/lib/src/shared/content-settings/components/color-field/ColorField.mixin.d.ts +402 -0
- package/lib/src/shared/content-settings/components/color-field/ColorField.mixin.js +234 -0
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -1
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +4 -2
- package/lib/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.mixin.d.ts +2 -2
- package/lib/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.mixin.js +6 -0
- package/lib/src/shared/content-settings/models.d.ts +1 -0
- package/lib/src/shared/content-settings/models.js +1 -0
- package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +5 -116
- package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.js +0 -16
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +3 -93
- package/lib/src/shared/logo-settings/store/editable-logo-store.d.ts +2 -86
- package/lib/src/shared/logo-settings/store/editable-logo-store.js +1 -10
- package/lib/src/shared/logo-versions/LogoVersions.mixin.d.ts +3 -1
- package/lib/src/shared/my-designs/MyDesigns.mixin.d.ts +3 -1
- package/lib/src/shared/my-uploads/MyMedia.mixin.d.ts +3 -1
- package/lib/src/shared/my-uploads/MyUploads.mixin.d.ts +3 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +4 -2
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +6 -94
- package/lib/src/shared/page-settings/store/page-settings-store.js +1 -1
- package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +1 -1
- package/lib/src/shared/shape-library/ShapeLibrary.mixin.d.ts +3 -1
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +4 -2
- package/lib/src/shared/template-settings/components/TemplatesSettings.mixin.d.ts +3 -2
- package/lib/src/shared/template-settings/models.d.ts +0 -1
- package/lib/src/shared/template-settings/store/template-settings-store.d.ts +0 -2
- package/lib/src/shared/template-settings/store/template-settings-store.js +4 -24
- package/lib/src/shared/unsplash-library/UnsplashLibrary.mixin.d.ts +3 -1
- package/package.json +1 -1
- package/src/brand-page/components/logo/Logo.vue +24 -1
- package/src/brand-page/components/logo/LogoRender.vue +56 -20
- package/src/brand-page/constants/logo.constants.ts +3 -0
- package/src/brand-page/constants/styles.constants.ts +2 -2
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +1121 -1112
- package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +416 -413
- package/src/brand-page/utils/migration/logo/migration.util.logo.test.ts +3 -3
- package/src/brand-page/utils/migration/migration-01.ts +7 -4
- package/src/brand-page/utils/migration/migration-01_1.ts +6 -3
- package/src/brand-page/utils/migration/migration-02.ts +7 -4
- package/src/brand-page/utils/migration/migration-03.ts +7 -4
- package/src/brand-page/utils/migration/migration-04.ts +7 -4
- package/src/brand-page/utils/migration/migration-05.ts +16 -3
- package/src/brand-page/utils/migration/migration-05_1.ts +6 -4
- package/src/brand-page/utils/migration/migration-05_2.ts +6 -3
- package/src/brand-page/utils/migration/migration-06.ts +5 -2
- package/src/brand-page/utils/migration/migration-07.test.ts +384 -0
- package/src/brand-page/utils/migration/migration-07.ts +107 -0
- package/src/brand-page/utils/migration.util.test.ts +274 -157
- package/src/brand-page/utils/migration.util.ts +29 -10
- package/src/brand-page/utils/migration2.util.test.ts +7 -2
- package/src/brand-page/utils/style.util.ts +0 -30
- package/src/brand-page/utils/view-model.util.ts +46 -27
- package/src/brand-page/view-models.ts +1 -0
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +52 -1
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +1090 -0
- package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +1 -1
- package/src/brand-page-maker/components/color-palette/BpColorPalette.mixin.ts +133 -0
- package/src/brand-page-maker/components/color-palette/BpColorPalette.vue +17 -123
- package/src/brand-page-maker/components/color-palette/BpColorPicker.vue +13 -9
- package/src/brand-page-maker/composables/useEventTracker.ts +0 -2
- package/src/brand-page-maker/constants/config-settings-constant.ts +1 -1
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +5 -3
- package/src/brand-page-maker/stores/logo-store/logo-store.ts +0 -60
- package/src/brand-page-maker/stores/ui/ui-store.ts +2 -5
- package/src/bundles/bundled-translations.de-DE.json +1 -14
- package/src/bundles/bundled-translations.es-ES.json +1 -14
- package/src/bundles/bundled-translations.fr-CA.json +1 -14
- package/src/bundles/bundled-translations.fr-FR.json +1 -14
- package/src/bundles/bundled-translations.json +8 -14
- package/src/bundles/bundled-translations.pt-BR.json +1 -14
- package/src/bundles/bundled-translations.pt-PT.json +1 -14
- package/src/clients/brand-page-client.ts +0 -80
- package/src/composables/useTranslate.ts +2 -6
- package/src/shared/color-picker/components/ColorPicker.mixin.ts +46 -153
- package/src/shared/common/i18n/common.de-DE.json +0 -2
- package/src/shared/common/i18n/common.es-ES.json +0 -2
- package/src/shared/common/i18n/common.fr-CA.json +0 -2
- package/src/shared/common/i18n/common.fr-FR.json +0 -2
- package/src/shared/common/i18n/common.json +0 -2
- package/src/shared/common/i18n/common.pt-BR.json +0 -2
- package/src/shared/common/i18n/common.pt-PT.json +0 -2
- package/src/shared/content-settings/components/color-field/ColorField.mixin.ts +273 -0
- package/src/shared/content-settings/components/color-field/ColorField.vue +14 -299
- package/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.mixin.ts +6 -0
- package/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.vue +5 -0
- package/src/shared/content-settings/components/replace-image-base-settings/i18n/replace-image-setting.json +1 -0
- package/src/shared/content-settings/models.ts +1 -0
- package/src/shared/logo-settings/components/EditLogoSettings.mixin.ts +0 -20
- package/src/shared/logo-settings/components/EditLogoSettings.vue +147 -166
- package/src/shared/logo-settings/components/i18n/edit-logo-settings.de-DE.json +1 -2
- package/src/shared/logo-settings/components/i18n/edit-logo-settings.es-ES.json +1 -2
- package/src/shared/logo-settings/components/i18n/edit-logo-settings.fr-CA.json +1 -2
- package/src/shared/logo-settings/components/i18n/edit-logo-settings.fr-FR.json +1 -2
- package/src/shared/logo-settings/components/i18n/edit-logo-settings.json +1 -2
- package/src/shared/logo-settings/components/i18n/edit-logo-settings.pt-BR.json +1 -2
- package/src/shared/logo-settings/components/i18n/edit-logo-settings.pt-PT.json +1 -2
- package/src/shared/logo-settings/store/editable-logo-store.ts +1 -14
- package/src/shared/page-settings/store/page-settings-store.ts +1 -0
- package/src/shared/template-settings/models.ts +0 -1
- package/src/shared/template-settings/store/template-settings-store.ts +4 -32
- package/src/shared/video-library/VideoLibrary.vue +394 -0
- package/src/shared/video-library/i18n/video-library.json +8 -0
- package/lib/src/bundled-translations-C35ICQCS.js +0 -159
- package/lib/src/bundled-translations.de-DE-B3sIK6Yw.js +0 -159
- package/lib/src/bundled-translations.es-ES-CJCflztK.js +0 -159
- package/lib/src/bundled-translations.fr-CA-CtlwKcDs.js +0 -159
- package/lib/src/bundled-translations.fr-FR-CjDBsRhl.js +0 -159
- package/lib/src/bundled-translations.pt-BR-CNuFzR0R.js +0 -159
- package/lib/src/bundled-translations.pt-PT-D2Ak5M-w.js +0 -159
- package/src/shared/logo-settings/components/LogoTemplateSearch.vue +0 -266
- package/src/shared/logo-settings/components/i18n/logo-template-search.de-DE.json +0 -8
- package/src/shared/logo-settings/components/i18n/logo-template-search.es-ES.json +0 -8
- package/src/shared/logo-settings/components/i18n/logo-template-search.fr-CA.json +0 -8
- package/src/shared/logo-settings/components/i18n/logo-template-search.fr-FR.json +0 -8
- package/src/shared/logo-settings/components/i18n/logo-template-search.json +0 -8
- package/src/shared/logo-settings/components/i18n/logo-template-search.pt-BR.json +0 -8
- package/src/shared/logo-settings/components/i18n/logo-template-search.pt-PT.json +0 -8
- package/src/shared/logo-settings/components/logo-switch-confirmation-modal/LogoSwitchConfirmationModal.vue +0 -74
- package/src/shared/logo-settings/components/logo-switch-confirmation-modal/i18n/logo-switch-confirmation-modal.de-DE.json +0 -6
- package/src/shared/logo-settings/components/logo-switch-confirmation-modal/i18n/logo-switch-confirmation-modal.es-ES.json +0 -6
- package/src/shared/logo-settings/components/logo-switch-confirmation-modal/i18n/logo-switch-confirmation-modal.fr-CA.json +0 -6
- package/src/shared/logo-settings/components/logo-switch-confirmation-modal/i18n/logo-switch-confirmation-modal.fr-FR.json +0 -6
- package/src/shared/logo-settings/components/logo-switch-confirmation-modal/i18n/logo-switch-confirmation-modal.json +0 -6
- package/src/shared/logo-settings/components/logo-switch-confirmation-modal/i18n/logo-switch-confirmation-modal.pt-BR.json +0 -6
- package/src/shared/logo-settings/components/logo-switch-confirmation-modal/i18n/logo-switch-confirmation-modal.pt-PT.json +0 -6
|
@@ -16,9 +16,9 @@ export declare const defaultHamburgerNavigation: {
|
|
|
16
16
|
export declare const OLD_DEFAULT_LOGO_HEIGHT = "6rem";
|
|
17
17
|
export declare const DEFAULT_LOGO_HEIGHT = "9rem";
|
|
18
18
|
export declare const DEFAULT_LOGO_WIDTH = "9rem";
|
|
19
|
-
export declare const LOGO_SLIDER_DESKTOP_MIN =
|
|
19
|
+
export declare const LOGO_SLIDER_DESKTOP_MIN = 1;
|
|
20
20
|
export declare const LOGO_SLIDER_DESKTOP_MAX = 20;
|
|
21
|
-
export declare const LOGO_SLIDER_MOBILE_MIN =
|
|
21
|
+
export declare const LOGO_SLIDER_MOBILE_MIN = 1;
|
|
22
22
|
export declare const LOGO_SLIDER_MOBILE_MAX = 13;
|
|
23
23
|
export declare const CONTENT_TEXT_STYLE_PROPERTY_KEYS: {
|
|
24
24
|
readonly descriptionStyle: "descriptionStyle";
|
|
@@ -18,9 +18,9 @@ export const OLD_DEFAULT_LOGO_HEIGHT = '6rem';
|
|
|
18
18
|
export const DEFAULT_LOGO_HEIGHT = '9rem';
|
|
19
19
|
export const DEFAULT_LOGO_WIDTH = '9rem';
|
|
20
20
|
// Logo slider values are unit of rem
|
|
21
|
-
export const LOGO_SLIDER_DESKTOP_MIN =
|
|
21
|
+
export const LOGO_SLIDER_DESKTOP_MIN = 1;
|
|
22
22
|
export const LOGO_SLIDER_DESKTOP_MAX = 20;
|
|
23
|
-
export const LOGO_SLIDER_MOBILE_MIN =
|
|
23
|
+
export const LOGO_SLIDER_MOBILE_MIN = 1;
|
|
24
24
|
export const LOGO_SLIDER_MOBILE_MAX = 13;
|
|
25
25
|
export const CONTENT_TEXT_STYLE_PROPERTY_KEYS = {
|
|
26
26
|
descriptionStyle: 'descriptionStyle',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BrandPageModel } from '../../';
|
|
2
|
+
import { type MigrationData } from '../../utils';
|
|
2
3
|
export declare const applyTextContentTextToTextItemsMigration: (brandPageModel: BrandPageModel) => void;
|
|
3
4
|
export declare const migrateProfileContentToHaveTextStyles: (brandPageModel: BrandPageModel) => void;
|
|
4
5
|
export declare const migrateMailingListContentToHaveTextStyles: (brandPageModel: BrandPageModel) => void;
|
|
@@ -17,6 +18,6 @@ export declare const migrateNewLogoLogic: (brandPageModel: BrandPageModel, isUse
|
|
|
17
18
|
export declare const migrateGlobalTextStylesToHaveMissingStyles: (brandPageModel: BrandPageModel) => void;
|
|
18
19
|
export declare const migrateConvertLineHeightOnNavigationStyles: (brandPageModel: BrandPageModel) => void;
|
|
19
20
|
export declare const migrateConvertLineHeightOnFooterStyles: (brandPageModel: BrandPageModel) => void;
|
|
20
|
-
export declare const migration01: (
|
|
21
|
+
export declare const migration01: (migrationResult: MigrationData, options: {
|
|
21
22
|
isUserDraft: boolean;
|
|
22
|
-
}) =>
|
|
23
|
+
}) => Promise<MigrationData>;
|
|
@@ -856,7 +856,8 @@ export const migrateConvertLineHeightOnFooterStyles = (brandPageModel) => {
|
|
|
856
856
|
};
|
|
857
857
|
}
|
|
858
858
|
};
|
|
859
|
-
export const migration01 = (
|
|
859
|
+
export const migration01 = async (migrationResult, options) => {
|
|
860
|
+
const { brandPageModel } = migrationResult;
|
|
860
861
|
if (!brandPageModel.brandPageType) {
|
|
861
862
|
brandPageModel.brandPageType = BRAND_PAGE_TYPES.default;
|
|
862
863
|
}
|
|
@@ -888,5 +889,5 @@ export const migration01 = (brandPageModel, options) => {
|
|
|
888
889
|
migrateGlobalTextStylesToHaveMissingStyles(brandPageModel);
|
|
889
890
|
migrateConvertLineHeightOnNavigationStyles(brandPageModel);
|
|
890
891
|
migrateConvertLineHeightOnFooterStyles(brandPageModel);
|
|
891
|
-
return
|
|
892
|
+
return migrationResult;
|
|
892
893
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { LogoImageModel } from '../..';
|
|
2
|
+
import type { MigrationData } from '../migration.util';
|
|
3
|
+
export declare const migration01_1: (migrationResult: MigrationData, options: {
|
|
3
4
|
logoImage?: LogoImageModel;
|
|
4
|
-
}) =>
|
|
5
|
+
}) => MigrationData;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { migrateLogoImage } from './logo/logo.migration.util';
|
|
2
|
-
export const migration01_1 = (
|
|
2
|
+
export const migration01_1 = (migrationResult, options) => {
|
|
3
|
+
const { brandPageModel } = migrationResult;
|
|
3
4
|
migrateLogoImage(brandPageModel, options.logoImage);
|
|
4
|
-
return
|
|
5
|
+
return migrationResult;
|
|
5
6
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type LogoImageModel } from '../..';
|
|
2
|
+
import type { MigrationData } from '../migration.util';
|
|
2
3
|
export declare const convertLetterSpacingRemToEm: (fontSizeInEmOrRem: string | undefined, letterSpacingRemValue: string | undefined) => string | undefined;
|
|
3
|
-
export declare const migration02: (
|
|
4
|
+
export declare const migration02: (migrationResult: MigrationData, options: {
|
|
4
5
|
logoImage?: LogoImageModel;
|
|
5
6
|
isUserDraft: boolean;
|
|
6
|
-
}) =>
|
|
7
|
+
}) => Promise<MigrationData>;
|
|
@@ -31,7 +31,8 @@ const handleConversion = (style) => {
|
|
|
31
31
|
}
|
|
32
32
|
style.letterSpacing = convertLetterSpacingRemToEm(style.fontSize, style.letterSpacing);
|
|
33
33
|
};
|
|
34
|
-
export const migration02 = (
|
|
34
|
+
export const migration02 = async (migrationResult, options) => {
|
|
35
|
+
const { brandPageModel } = migrationResult;
|
|
35
36
|
handleConversion(brandPageModel.pageHeaderDesktop?.navigation?.defaultButtonStyle);
|
|
36
37
|
handleConversion(brandPageModel.pageHeaderMobile?.navigation?.defaultButtonStyle);
|
|
37
38
|
handleConversion(brandPageModel.pageFooterDesktop?.copyrightStyle);
|
|
@@ -127,5 +128,5 @@ export const migration02 = (brandPageModel, options) => {
|
|
|
127
128
|
}
|
|
128
129
|
});
|
|
129
130
|
});
|
|
130
|
-
return
|
|
131
|
+
return migrationResult;
|
|
131
132
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
1
|
+
import { type LogoImageModel } from '../..';
|
|
2
|
+
import type { MigrationData } from '../migration.util';
|
|
3
|
+
export declare const migration03: (migrationResult: MigrationData, options: {
|
|
3
4
|
logoImage?: LogoImageModel;
|
|
4
5
|
isUserDraft: boolean;
|
|
5
|
-
}) =>
|
|
6
|
+
}) => Promise<MigrationData>;
|
|
@@ -28,7 +28,8 @@ const migrateApplyAutoScaleProperty = (brandPageType, textStyle) => {
|
|
|
28
28
|
textStyle.applyAutoScale =
|
|
29
29
|
brandPageType && brandPageType === BRAND_PAGE_TYPES.brandSite;
|
|
30
30
|
};
|
|
31
|
-
export const migration03 = (
|
|
31
|
+
export const migration03 = async (migrationResult, options) => {
|
|
32
|
+
const { brandPageModel } = migrationResult;
|
|
32
33
|
handleRecursiveFontSizeMigration(brandPageModel.pageHeaderDesktop);
|
|
33
34
|
handleRecursiveFontSizeMigration(brandPageModel.pageHeaderMobile);
|
|
34
35
|
handleRecursiveFontSizeMigration(brandPageModel.pageFooterDesktop);
|
|
@@ -116,5 +117,5 @@ export const migration03 = (brandPageModel, options) => {
|
|
|
116
117
|
}
|
|
117
118
|
});
|
|
118
119
|
});
|
|
119
|
-
return
|
|
120
|
+
return migrationResult;
|
|
120
121
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
1
|
+
import { type LogoImageModel } from '../..';
|
|
2
|
+
import type { MigrationData } from '../migration.util';
|
|
3
|
+
export declare const migration04: (migrationResult: MigrationData, options: {
|
|
3
4
|
logoImage?: LogoImageModel;
|
|
4
5
|
isUserDraft: boolean;
|
|
5
|
-
}) =>
|
|
6
|
+
}) => Promise<MigrationData>;
|
|
@@ -86,7 +86,8 @@ const updateUserUploadedImageUrls = (content) => {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
export const migration04 = (
|
|
89
|
+
export const migration04 = async (migrationResult, options) => {
|
|
90
|
+
const { brandPageModel } = migrationResult;
|
|
90
91
|
if (brandPageModel.faviconUrl &&
|
|
91
92
|
isUserUploadedImage(brandPageModel.faviconUrl)) {
|
|
92
93
|
brandPageModel.faviconUrl = removeUserImageExtension(brandPageModel.faviconUrl);
|
|
@@ -111,5 +112,5 @@ export const migration04 = (brandPageModel, options) => {
|
|
|
111
112
|
}
|
|
112
113
|
});
|
|
113
114
|
}
|
|
114
|
-
return
|
|
115
|
+
return migrationResult;
|
|
115
116
|
};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
1
|
+
import { type LogoImageModel } from '../..';
|
|
2
|
+
import type { MigrationData } from '../migration.util';
|
|
3
|
+
export declare const migration05: (migrationResult: MigrationData, options: {
|
|
4
|
+
logoImage?: LogoImageModel;
|
|
5
|
+
isUserDraft: boolean;
|
|
6
|
+
}) => Promise<MigrationData>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {} from '../..';
|
|
2
2
|
import { isTextContent } from '../model.util';
|
|
3
|
-
export const migration05 = (
|
|
3
|
+
export const migration05 = async (migrationResult, options) => {
|
|
4
|
+
const { brandPageModel } = migrationResult;
|
|
4
5
|
brandPageModel.pages.forEach((page) => {
|
|
5
6
|
page.contents.forEach((content) => {
|
|
6
7
|
if (isTextContent(content)) {
|
|
@@ -13,5 +14,5 @@ export const migration05 = (brandPageModel) => {
|
|
|
13
14
|
}
|
|
14
15
|
});
|
|
15
16
|
});
|
|
16
|
-
return
|
|
17
|
+
return migrationResult;
|
|
17
18
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const migration05_1: (
|
|
1
|
+
import type { MigrationData } from '../migration.util';
|
|
2
|
+
export declare const migration05_1: (migrationResult: MigrationData, options: {
|
|
3
3
|
isUserDraft: boolean;
|
|
4
|
-
}) =>
|
|
4
|
+
}) => MigrationData;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export const migration05_1 = (migrationResult, options) => {
|
|
2
|
+
const { brandPageModel } = migrationResult;
|
|
3
3
|
if (!options.isUserDraft) {
|
|
4
4
|
brandPageModel.pageFooterDesktop?.socialLinks?.forEach((link) => {
|
|
5
5
|
if (link.imageUrl === 'twitter') {
|
|
@@ -14,5 +14,5 @@ export const migration05_1 = (brandPageModel, options) => {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
return
|
|
17
|
+
return migrationResult;
|
|
18
18
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const migration05_2: (
|
|
1
|
+
import type { MigrationData } from '../migration.util';
|
|
2
|
+
export declare const migration05_2: (migrationResult: MigrationData, options: {
|
|
3
3
|
isUserDraft: boolean;
|
|
4
|
-
}) =>
|
|
4
|
+
}) => MigrationData;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {} from '../..';
|
|
2
|
-
export const migration05_2 = (
|
|
2
|
+
export const migration05_2 = (migrationResult, options) => {
|
|
3
|
+
const { brandPageModel } = migrationResult;
|
|
3
4
|
brandPageModel.pages.forEach((page) => {
|
|
4
5
|
page.contents.forEach((content) => {
|
|
5
6
|
// Casting content type to string to avoid adding placeholder types in CONTENT_SETTINGS_CONFIGS
|
|
@@ -10,5 +11,5 @@ export const migration05_2 = (brandPageModel, options) => {
|
|
|
10
11
|
}
|
|
11
12
|
});
|
|
12
13
|
});
|
|
13
|
-
return
|
|
14
|
+
return migrationResult;
|
|
14
15
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const migration06: (
|
|
1
|
+
import type { MigrationData } from '../migration.util';
|
|
2
|
+
export declare const migration06: (migrationResult: MigrationData) => MigrationData;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {} from '../..';
|
|
2
2
|
import { isImagesContent } from '../model.util';
|
|
3
|
-
export const migration06 = (
|
|
3
|
+
export const migration06 = (migrationResult) => {
|
|
4
|
+
const { brandPageModel } = migrationResult;
|
|
4
5
|
brandPageModel.pages.forEach((page) => {
|
|
5
6
|
page.contents.forEach((content) => {
|
|
6
7
|
// Migration for ImagesSection content
|
|
@@ -44,5 +45,5 @@ export const migration06 = (brandPageModel) => {
|
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
});
|
|
47
|
-
return
|
|
48
|
+
return migrationResult;
|
|
48
49
|
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { DEFAULT_LOGO_HEIGHT, DEFAULT_LOGO_WIDTH, PageFooterDesktop, PageFooterMobile, PageHeaderDesktop, PageHeaderMobile, } from '../..';
|
|
2
|
+
import { FabricRenderClient } from '../../../clients/fabric-render-client';
|
|
3
|
+
const calculateConstrainedDimensions = (logoData, maxWidth, maxHeight) => {
|
|
4
|
+
const maxWidthRem = parseFloat(maxWidth);
|
|
5
|
+
const maxHeightRem = parseFloat(maxHeight);
|
|
6
|
+
const logoAspectRatio = logoData.width / logoData.height;
|
|
7
|
+
let actualHeight;
|
|
8
|
+
if (logoAspectRatio >= 1) {
|
|
9
|
+
actualHeight = maxWidthRem / logoAspectRatio;
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
actualHeight = maxHeightRem;
|
|
13
|
+
}
|
|
14
|
+
const actualHeightRem = `${Math.ceil(actualHeight)}rem`;
|
|
15
|
+
return { width: actualHeightRem, height: actualHeightRem };
|
|
16
|
+
};
|
|
17
|
+
export const migration07 = async (migrationResult, options) => {
|
|
18
|
+
const { brandPageModel } = migrationResult;
|
|
19
|
+
if (options.isServerRender !== undefined && options.isServerRender) {
|
|
20
|
+
migrationResult.useOldLogoRenderSize = true;
|
|
21
|
+
return migrationResult;
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
const fabricClient = FabricRenderClient.getInstance();
|
|
25
|
+
// Define all sections that need logo data
|
|
26
|
+
const sections = [
|
|
27
|
+
{ name: 'pageHeaderDesktop', config: brandPageModel.pageHeaderDesktop },
|
|
28
|
+
{ name: 'pageHeaderMobile', config: brandPageModel.pageHeaderMobile },
|
|
29
|
+
{ name: 'pageFooterDesktop', config: brandPageModel.pageFooterDesktop },
|
|
30
|
+
{ name: 'pageFooterMobile', config: brandPageModel.pageFooterMobile },
|
|
31
|
+
].filter((section) => section.config);
|
|
32
|
+
// Fetch logo data for all sections in parallel
|
|
33
|
+
const logoDataPromises = sections.map(async (section) => {
|
|
34
|
+
const logoData = section.config?.logoTemplateImage?.logoTemplateToken
|
|
35
|
+
? await fabricClient.getLogoSvgUrlByLogoTemplateImageAsync(section.config.logoTemplateImage)
|
|
36
|
+
: await fabricClient.getLogoSvgUrlByLogoImageAsync(section.config.logoImage);
|
|
37
|
+
return {
|
|
38
|
+
sectionName: section.name,
|
|
39
|
+
logoData,
|
|
40
|
+
config: section.config,
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
const results = await Promise.all(logoDataPromises);
|
|
44
|
+
// Apply dimensions to each section
|
|
45
|
+
results.forEach(({ sectionName, logoData, config }) => {
|
|
46
|
+
if (logoData && logoData.width && logoData.height && config) {
|
|
47
|
+
const currentMaxWidth = config.logoImageWidth || DEFAULT_LOGO_WIDTH;
|
|
48
|
+
const currentMaxHeight = config.logoImageHeight || DEFAULT_LOGO_HEIGHT;
|
|
49
|
+
const dimensions = calculateConstrainedDimensions(logoData, currentMaxWidth, currentMaxHeight);
|
|
50
|
+
config.logoImageHeight = dimensions.height;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
catch (error) {
|
|
55
|
+
console.warn('Migration 06: Failed to fetch logo dimensions:', error);
|
|
56
|
+
migrationResult.useOldLogoRenderSize = true;
|
|
57
|
+
return migrationResult;
|
|
58
|
+
}
|
|
59
|
+
return migrationResult;
|
|
60
|
+
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { type BrandPageModel, type LogoImageModel } from '../models';
|
|
2
|
+
export interface MigrationData {
|
|
3
|
+
brandPageModel: BrandPageModel;
|
|
4
|
+
useOldLogoRenderSize: boolean;
|
|
5
|
+
}
|
|
2
6
|
export declare const GetLatestModelVersion: () => number;
|
|
3
7
|
export declare const migrateBrandPageModel: (brandPageModel: BrandPageModel, options: {
|
|
4
8
|
logoImage?: LogoImageModel;
|
|
5
9
|
isUserDraft: boolean;
|
|
6
|
-
|
|
10
|
+
isServerRender: boolean;
|
|
11
|
+
}) => Promise<MigrationData>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LOGO_MIGRATION_VERSION } from '../constants';
|
|
1
2
|
import {} from '../models';
|
|
2
3
|
import { migration01 } from './migration/migration-01';
|
|
3
4
|
import { migration01_1 } from './migration/migration-01_1';
|
|
@@ -5,9 +6,10 @@ import { migration02 } from './migration/migration-02';
|
|
|
5
6
|
import { migration03 } from './migration/migration-03';
|
|
6
7
|
import { migration04 } from './migration/migration-04';
|
|
7
8
|
import { migration05 } from './migration/migration-05';
|
|
9
|
+
import { migration06 } from './migration/migration-06';
|
|
8
10
|
import { migration05_1 } from './migration/migration-05_1';
|
|
9
11
|
import { migration05_2 } from './migration/migration-05_2';
|
|
10
|
-
import {
|
|
12
|
+
import { migration07 } from './migration/migration-07';
|
|
11
13
|
const MIGRATION_TABLE = [
|
|
12
14
|
{
|
|
13
15
|
version: 1,
|
|
@@ -55,19 +57,28 @@ const MIGRATION_TABLE = [
|
|
|
55
57
|
migrateFn: migration06,
|
|
56
58
|
description: 'Migrating new fields for images section',
|
|
57
59
|
},
|
|
60
|
+
{
|
|
61
|
+
version: 7,
|
|
62
|
+
migrateFn: migration07,
|
|
63
|
+
description: 'Migrating logo render sizes for logo content, header and footer sections',
|
|
64
|
+
},
|
|
58
65
|
];
|
|
59
66
|
export const GetLatestModelVersion = () => Math.max(...MIGRATION_TABLE.map((x) => x.version));
|
|
60
|
-
export const migrateBrandPageModel = (brandPageModel, options) => {
|
|
67
|
+
export const migrateBrandPageModel = async (brandPageModel, options) => {
|
|
61
68
|
let modelVersion = brandPageModel.v;
|
|
69
|
+
let migrationResult = {
|
|
70
|
+
brandPageModel,
|
|
71
|
+
useOldLogoRenderSize: false,
|
|
72
|
+
};
|
|
62
73
|
if (!modelVersion) {
|
|
63
74
|
modelVersion = 0;
|
|
64
75
|
}
|
|
65
|
-
|
|
76
|
+
for (const x of MIGRATION_TABLE) {
|
|
66
77
|
if (x.runAlways || modelVersion < x.version) {
|
|
67
|
-
|
|
78
|
+
migrationResult = await x.migrateFn(migrationResult, options);
|
|
68
79
|
}
|
|
69
|
-
}
|
|
80
|
+
}
|
|
70
81
|
// Set the model to latest version
|
|
71
|
-
brandPageModel.v = GetLatestModelVersion();
|
|
72
|
-
return
|
|
82
|
+
migrationResult.brandPageModel.v = GetLatestModelVersion();
|
|
83
|
+
return migrationResult;
|
|
73
84
|
};
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import type { BrandPageModel, LogoTheme, ThemeColor, FabricLogoTheme, ButtonStyles, PageModel } from '../models';
|
|
2
2
|
import { NavigationDesktop, NavigationMobile } from '../models';
|
|
3
3
|
import { PageStyles, PageHeaderMobile, PageHeaderDesktop, PageFooterMobile, PageFooterDesktop } from '../models';
|
|
4
|
-
/**
|
|
5
|
-
* Simple utility to convert any color format to hex for consistent comparison
|
|
6
|
-
*/
|
|
7
|
-
export declare const normalizeColorToHex: (color: string) => string;
|
|
8
|
-
/**
|
|
9
|
-
* Simple utility to check if two colors match (handles different formats)
|
|
10
|
-
*/
|
|
11
|
-
export declare const colorsMatch: (color1: string, color2: string) => boolean;
|
|
12
4
|
/**
|
|
13
5
|
* @function getColorValueForCorrectCssProperty
|
|
14
6
|
* @param k: string
|
|
@@ -3,34 +3,8 @@ import { PageStyles, PageHeaderMobile, PageHeaderDesktop, PageFooterMobile, Page
|
|
|
3
3
|
import { STYLE_THEME_KEYS } from '../constants';
|
|
4
4
|
import { arrayToLinearGradient, linearGradientToArray, isColorLinearGradient, RGBAtoHex, } from '../../utils/helpers';
|
|
5
5
|
import { addTransparentAlphaChannelToHex, calculateLuminanceRatio, getNewColorBasedOnTargetColorTheme, } from './color.util';
|
|
6
|
-
import { isRgbColor } from '../../utils/helpers';
|
|
7
6
|
import chroma from 'chroma-js';
|
|
8
7
|
import { hasRTEContent } from '../../brand-page-maker/utils';
|
|
9
|
-
/**
|
|
10
|
-
* Simple utility to convert any color format to hex for consistent comparison
|
|
11
|
-
*/
|
|
12
|
-
export const normalizeColorToHex = (color) => {
|
|
13
|
-
if (!color)
|
|
14
|
-
return color;
|
|
15
|
-
const cleanColor = color.replace(/ /g, '');
|
|
16
|
-
try {
|
|
17
|
-
return isRgbColor(cleanColor) ? RGBAtoHex(cleanColor) : cleanColor;
|
|
18
|
-
}
|
|
19
|
-
catch (e) {
|
|
20
|
-
console.warn('Failed to convert color to hex:', color);
|
|
21
|
-
return cleanColor;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Simple utility to check if two colors match (handles different formats)
|
|
26
|
-
*/
|
|
27
|
-
export const colorsMatch = (color1, color2) => {
|
|
28
|
-
if (!color1 || !color2)
|
|
29
|
-
return false;
|
|
30
|
-
const normalized1 = normalizeColorToHex(color1);
|
|
31
|
-
const normalized2 = normalizeColorToHex(color2);
|
|
32
|
-
return normalized1 === normalized2;
|
|
33
|
-
};
|
|
34
8
|
const MIN_LUM_RATIO = 0.3;
|
|
35
9
|
const parseFabricColorToCssStyle = (fabricColor) => {
|
|
36
10
|
if (fabricColor && typeof fabricColor === 'object') {
|
|
@@ -8,10 +8,12 @@ export declare const mapToTextViewModel: (content: TextContent, styles: PageStyl
|
|
|
8
8
|
export declare const mapToBannerSectionViewModel: (content: BannerSectionContent, styles: PageStyles) => BannerSectionViewModel;
|
|
9
9
|
export declare const mapToImagesSectionViewModel: (content: ImagesSectionContent, styles: PageStyles, brandPageType: BrandPageType) => TextImageSectionViewModel;
|
|
10
10
|
export declare const mapToBookingSectionViewModel: (content: BookingSectionContent, styles: PageStyles) => BookingSectionViewModel;
|
|
11
|
-
export declare const mapToPageHeaderViewModel: (pageHeader: PageHeaderDesktop | PageHeaderMobile, pageStyles: PageStyles, pages: PageViewModel[]) => PageHeaderViewModel;
|
|
12
|
-
export declare const mapToPageFooterViewModel: (pageFooter: PageFooterDesktop | PageFooterMobile, pageStyles: PageStyles) => PageFooterViewModel;
|
|
13
|
-
export declare const mapToViewModel: (styles: PageStyles, brandPageType: BrandPageType
|
|
14
|
-
|
|
11
|
+
export declare const mapToPageHeaderViewModel: (pageHeader: PageHeaderDesktop | PageHeaderMobile, pageStyles: PageStyles, pages: PageViewModel[], useOldLogoRenderSize?: boolean) => PageHeaderViewModel;
|
|
12
|
+
export declare const mapToPageFooterViewModel: (pageFooter: PageFooterDesktop | PageFooterMobile, pageStyles: PageStyles, useOldLogoRenderSize?: boolean) => PageFooterViewModel;
|
|
13
|
+
export declare const mapToViewModel: (styles: PageStyles, brandPageType: BrandPageType, options?: {
|
|
14
|
+
useOldLogoRenderSize: boolean;
|
|
15
|
+
}) => (content: Content) => ContentViewModel | undefined;
|
|
16
|
+
export declare const getBrandPageViewModelFromBrandPageModel: (model: BrandPageModel, brandPageToken: string | undefined, showBrandCrowdLogo?: boolean, useOldLogoRenderSize?: boolean) => BrandPageViewModel;
|
|
15
17
|
export declare const isLogoViewModel: (viewModel: ContentViewModel) => viewModel is LogoViewModel;
|
|
16
18
|
/** for service.brand-page website preview by logo draft token */
|
|
17
19
|
export declare const applyLogoImageToBrandPageViewModel: (viewModel: BrandPageViewModel, logoImage: LogoImageModel) => BrandPageViewModel;
|