@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
package/lib/src/lib.js
CHANGED
|
@@ -28,6 +28,7 @@ export { getBrandPageViewModelFromBrandPageModel, migrateBrandPageModel, } from
|
|
|
28
28
|
export * as brandPageUtils from './brand-page/utils';
|
|
29
29
|
export { getOptimalLogoSize } from './brand-page/utils/logo.util';
|
|
30
30
|
export { sanitizeRTEHtml } from './brand-page-maker/utils';
|
|
31
|
+
export { getPageSlugFromPageTitle } from './brand-page-maker/utils/slug.util';
|
|
31
32
|
// stores
|
|
32
33
|
export { useBrandPageMakerStore, useBrandPageMakerUserStore, useUiStore, useBrandPageContainerStore, useEventManagerStore, useLocalisedRouteStore, } from './brand-page-maker/stores';
|
|
33
34
|
export { useShopConfigStore } from './shared/ecommerce-settings/store/shop-settings-store';
|
package/package.json
CHANGED
|
@@ -17,8 +17,6 @@ import {
|
|
|
17
17
|
} from '../../clients/fabric-render-client';
|
|
18
18
|
import { isLogoContent } from './model.util';
|
|
19
19
|
|
|
20
|
-
const TEXT_DEFAULT_VALUE = 'Logo Text Here';
|
|
21
|
-
|
|
22
20
|
const REGEX_MATCH_TOKEN_IN_URL = /brand-page\/([^?]*)/;
|
|
23
21
|
const REGEX_MATCH_TEMPLATE_TOKEN_IN_URL = /logo\/([^\/]*)\//;
|
|
24
22
|
const REGEX_MATCH_URL = /(http|https):\/\//;
|
|
@@ -102,7 +100,7 @@ export const safeGetLogoTemplateImageFromLogoTemplateImageUrl = (
|
|
|
102
100
|
const logoTemplateVersion = Number.parseInt(
|
|
103
101
|
url.searchParams.get('logoTemplateVersion') || '0',
|
|
104
102
|
);
|
|
105
|
-
const logoTemplateText = url.searchParams.get('text') ||
|
|
103
|
+
const logoTemplateText = url.searchParams.get('text') || '';
|
|
106
104
|
|
|
107
105
|
return {
|
|
108
106
|
logoTemplateToken,
|
package/src/lib.ts
CHANGED
|
@@ -59,6 +59,7 @@ export * as brandPageUtils from './brand-page/utils';
|
|
|
59
59
|
export type { CriticalResourceURLs } from './brand-page/utils/view-model.util';
|
|
60
60
|
export { getOptimalLogoSize } from './brand-page/utils/logo.util';
|
|
61
61
|
export { sanitizeRTEHtml } from './brand-page-maker/utils';
|
|
62
|
+
export { getPageSlugFromPageTitle } from './brand-page-maker/utils/slug.util';
|
|
62
63
|
|
|
63
64
|
// stores
|
|
64
65
|
export {
|