@designcrowd/library.brand-page 5.10.35 → 5.10.36
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/brand-page/utils/logo.util.js +1 -2
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.mjs +4160 -4159
- package/lib/src/lib.js +1 -0
- package/package.json +1 -1
- package/src/brand-page/utils/logo.util.ts +1 -3
- package/src/lib.ts +1 -0
|
@@ -2,7 +2,6 @@ import { DEFAULT_LOGO_VARIATION, LOGO_VARIATION } from '../constants';
|
|
|
2
2
|
import { BRAND_PAGE_TYPES, } from '../models';
|
|
3
3
|
import { FabricRenderClient, LogoVariationDefinitions, } from '../../clients/fabric-render-client';
|
|
4
4
|
import { isLogoContent } from './model.util';
|
|
5
|
-
const TEXT_DEFAULT_VALUE = 'Logo Text Here';
|
|
6
5
|
const REGEX_MATCH_TOKEN_IN_URL = /brand-page\/([^?]*)/;
|
|
7
6
|
const REGEX_MATCH_TEMPLATE_TOKEN_IN_URL = /logo\/([^\/]*)\//;
|
|
8
7
|
const REGEX_MATCH_URL = /(http|https):\/\//;
|
|
@@ -58,7 +57,7 @@ export const safeGetLogoTemplateImageFromLogoTemplateImageUrl = (variationUrl) =
|
|
|
58
57
|
const url = new URL(variationUrl);
|
|
59
58
|
const logoTemplateToken = getLogoTemplateTokenFromLogoTemplateImageUrl(variationUrl);
|
|
60
59
|
const logoTemplateVersion = Number.parseInt(url.searchParams.get('logoTemplateVersion') || '0');
|
|
61
|
-
const logoTemplateText = url.searchParams.get('text') ||
|
|
60
|
+
const logoTemplateText = url.searchParams.get('text') || '';
|
|
62
61
|
return {
|
|
63
62
|
logoTemplateToken,
|
|
64
63
|
logoTemplateText,
|
package/lib/src/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * as brandPageUtils from './brand-page/utils';
|
|
|
25
25
|
export type { CriticalResourceURLs } from './brand-page/utils/view-model.util';
|
|
26
26
|
export { getOptimalLogoSize } from './brand-page/utils/logo.util';
|
|
27
27
|
export { sanitizeRTEHtml } from './brand-page-maker/utils';
|
|
28
|
+
export { getPageSlugFromPageTitle } from './brand-page-maker/utils/slug.util';
|
|
28
29
|
export { useBrandPageMakerStore, useBrandPageMakerUserStore, useUiStore, useBrandPageContainerStore, useEventManagerStore, useLocalisedRouteStore, } from './brand-page-maker/stores';
|
|
29
30
|
export { useShopConfigStore } from './shared/ecommerce-settings/store/shop-settings-store';
|
|
30
31
|
import { createPinia, setActivePinia } from 'pinia';
|