@liquidcommercedev/rmn-sdk 1.5.0-beta.35 → 1.5.0-beta.37
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/dist/index.cjs +21705 -1
- package/dist/index.esm.js +21700 -1
- package/dist/types/enums.d.ts +10 -0
- package/dist/types/modules/selection/selection.interface.d.ts +2 -1
- package/dist/types/modules/spot-template/rb-template.interface.d.ts +6 -0
- package/dist/types/modules/spot-template/reservebar/homepage-hero-full-image.template.d.ts +1 -0
- package/dist/types/modules/spot-template/reservebar/long-tout-tall.template.d.ts +1 -0
- package/package.json +1 -1
- package/umd/liquidcommerce-rmn-sdk.min.js +1 -1
package/dist/types/enums.d.ts
CHANGED
@@ -74,3 +74,13 @@ export declare enum RMN_ENV {
|
|
74
74
|
STAGING = "staging",
|
75
75
|
PRODUCTION = "production"
|
76
76
|
}
|
77
|
+
export declare enum ENUM_TEXT_BLOCK_POSITION {
|
78
|
+
LEFT = "left",
|
79
|
+
RIGHT = "right",
|
80
|
+
TOP_LEFT = "top-left",
|
81
|
+
TOP_RIGHT = "top-right",
|
82
|
+
BOTTOM_LEFT = "bottom-left",
|
83
|
+
BOTTOM_RIGHT = "bottom-right",
|
84
|
+
MIDDLE_LEFT = "middle-left",
|
85
|
+
MIDDLE_RIGHT = "middle-right"
|
86
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { RMN_SPOT_EVENT, RMN_SPOT_TYPE } from 'enums';
|
1
|
+
import type { ENUM_TEXT_BLOCK_POSITION, RMN_SPOT_EVENT, RMN_SPOT_TYPE } from 'enums';
|
2
2
|
import type { PlacementIdType, SpotVariantType } from 'modules/selection';
|
3
3
|
import type { RmnFilterType, RmnSpotType } from 'types';
|
4
4
|
export interface ISpotSelectionParams {
|
@@ -27,6 +27,7 @@ export interface ISpot {
|
|
27
27
|
header?: string;
|
28
28
|
description?: string;
|
29
29
|
ctaText?: string;
|
30
|
+
textBlockPosition?: ENUM_TEXT_BLOCK_POSITION;
|
30
31
|
textColor?: string;
|
31
32
|
backgroundColor?: string;
|
32
33
|
ctaTextColor?: string;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { ENUM_TEXT_BLOCK_POSITION } from 'enums';
|
1
2
|
import type { ISpotTemplateBaseData } from './spot-template.interface';
|
2
3
|
export interface ICollectionBannerWithoutTextBlockRbSpot extends ISpotTemplateBaseData {
|
3
4
|
primaryImage: string;
|
@@ -13,6 +14,7 @@ export interface IHomepageHeroFullImageRbSpot extends ISpotTemplateBaseData {
|
|
13
14
|
ctaBorderColor: string;
|
14
15
|
primaryImage: string;
|
15
16
|
mobilePrimaryImage?: string;
|
17
|
+
textBlockPosition?: ENUM_TEXT_BLOCK_POSITION.TOP_LEFT | ENUM_TEXT_BLOCK_POSITION.TOP_RIGHT | ENUM_TEXT_BLOCK_POSITION.BOTTOM_LEFT | ENUM_TEXT_BLOCK_POSITION.BOTTOM_RIGHT | ENUM_TEXT_BLOCK_POSITION.MIDDLE_LEFT | ENUM_TEXT_BLOCK_POSITION.MIDDLE_RIGHT;
|
16
18
|
}
|
17
19
|
export interface IHomepageHeroThreeTileRbSpot extends ISpotTemplateBaseData {
|
18
20
|
header: string;
|
@@ -25,6 +27,7 @@ export interface IHomepageHeroThreeTileRbSpot extends ISpotTemplateBaseData {
|
|
25
27
|
mobilePrimaryImage?: string;
|
26
28
|
secondaryImage: string;
|
27
29
|
mobileSecondaryImage?: string;
|
30
|
+
textBlockPosition?: ENUM_TEXT_BLOCK_POSITION.LEFT | ENUM_TEXT_BLOCK_POSITION.RIGHT;
|
28
31
|
}
|
29
32
|
export interface IHomepageHeroTwoTileRbSpot extends ISpotTemplateBaseData {
|
30
33
|
header: string;
|
@@ -35,6 +38,7 @@ export interface IHomepageHeroTwoTileRbSpot extends ISpotTemplateBaseData {
|
|
35
38
|
ctaTextColor: string;
|
36
39
|
primaryImage: string;
|
37
40
|
mobilePrimaryImage?: string;
|
41
|
+
textBlockPosition?: ENUM_TEXT_BLOCK_POSITION.LEFT | ENUM_TEXT_BLOCK_POSITION.RIGHT;
|
38
42
|
}
|
39
43
|
export interface IInTextRbSpot extends ISpotTemplateBaseData {
|
40
44
|
header: string;
|
@@ -50,6 +54,7 @@ export interface ILargeCategoryImageToutRbSpot extends ISpotTemplateBaseData {
|
|
50
54
|
ctaBorderColor: string;
|
51
55
|
primaryImage: string;
|
52
56
|
mobilePrimaryImage?: string;
|
57
|
+
textBlockPosition?: ENUM_TEXT_BLOCK_POSITION.LEFT | ENUM_TEXT_BLOCK_POSITION.RIGHT;
|
53
58
|
}
|
54
59
|
export interface INavigationBannerRbSpot extends ISpotTemplateBaseData {
|
55
60
|
header: string;
|
@@ -91,6 +96,7 @@ export interface ILongToutTallRbSpot extends ISpotTemplateBaseData {
|
|
91
96
|
ctaBorderColor: string;
|
92
97
|
primaryImage: string;
|
93
98
|
mobilePrimaryImage?: string;
|
99
|
+
textBlockPosition?: ENUM_TEXT_BLOCK_POSITION.TOP_LEFT | ENUM_TEXT_BLOCK_POSITION.TOP_RIGHT | ENUM_TEXT_BLOCK_POSITION.BOTTOM_LEFT | ENUM_TEXT_BLOCK_POSITION.BOTTOM_RIGHT | ENUM_TEXT_BLOCK_POSITION.MIDDLE_LEFT | ENUM_TEXT_BLOCK_POSITION.MIDDLE_RIGHT;
|
94
100
|
}
|
95
101
|
export interface IVideoPlayerRbSpot extends ISpotTemplateBaseData {
|
96
102
|
video: {
|
@@ -2,6 +2,7 @@ import { BaseSpotComponent } from 'modules/element/component/spot';
|
|
2
2
|
import type { IHomepageHeroFullImageRbSpot } from '../rb-template.interface';
|
3
3
|
export declare class RbHomepageHeroFullImageSE extends BaseSpotComponent<IHomepageHeroFullImageRbSpot> {
|
4
4
|
constructor();
|
5
|
+
private getGradientDirection;
|
5
6
|
protected template(): string;
|
6
7
|
protected styles(): string;
|
7
8
|
}
|
@@ -2,6 +2,7 @@ import { BaseSpotComponent } from 'modules/element/component/spot';
|
|
2
2
|
import type { ILongToutTallRbSpot } from '../rb-template.interface';
|
3
3
|
export declare class RbLongToutTallSE extends BaseSpotComponent<ILongToutTallRbSpot> {
|
4
4
|
constructor();
|
5
|
+
private getGradientDirection;
|
5
6
|
protected template(): string;
|
6
7
|
protected styles(): string;
|
7
8
|
}
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@liquidcommercedev/rmn-sdk",
|
3
3
|
"description": "LiquidCommerce RMN SDK",
|
4
4
|
"author": "LiquidCommerce Tech",
|
5
|
-
"version": "1.5.0-beta.
|
5
|
+
"version": "1.5.0-beta.37",
|
6
6
|
"homepage": "https://docs.liquidcommerce.co/rmn-sdk",
|
7
7
|
"main": "./dist/index.cjs",
|
8
8
|
"module": "./dist/index.esm.js",
|