@liquidcommercedev/rmn-sdk 1.5.0-beta.47 → 1.5.0-beta.49
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 +844 -334
- package/dist/index.esm.js +844 -334
- package/dist/types/enums.d.ts +3 -0
- package/dist/types/modules/spot-template/rb-template.interface.d.ts +36 -0
- package/dist/types/modules/spot-template/reservebar/carousel-horizontal-short-info-card.template.d.ts +9 -0
- package/dist/types/modules/spot-template/reservebar/carousel-vertical-small-image-info-card.template.d.ts +9 -0
- package/dist/types/modules/spot-template/reservebar/index.d.ts +2 -0
- package/dist/types/rmn-client.d.ts +6 -6
- package/dist/types/types.d.ts +1 -1
- package/package.json +22 -32
- package/umd/liquidcommerce-rmn-sdk.min.js +1 -1
package/dist/types/enums.d.ts
CHANGED
@@ -14,6 +14,8 @@ export declare enum RMN_SPOT_TYPE {
|
|
14
14
|
RB_VIDEO_PLAYER = "rbVideoPlayer",
|
15
15
|
RB_IN_TEXT = "rbInText",
|
16
16
|
RB_CAROUSEL_HORIZONTAL_INFO_CARD = "rbCarouselHorizontalInfoCard",
|
17
|
+
RB_CAROUSEL_VERTICAL_SMALL_IMAGE_INFO_CARD = "rbCarouselVerticalSmallImageInfoCard",
|
18
|
+
RB_CAROUSEL_HORIZONTAL_SHORT_INFO_CARD = "rbCarouselHorizontalShortInfoCard",
|
17
19
|
BILLBOARD = "billboard",
|
18
20
|
LARGE_RECTANGLE = "largeRectangle",
|
19
21
|
VERTICAL_RECTANGLE = "verticalRectangle",
|
@@ -82,6 +84,7 @@ export declare enum ENUM_TEXT_BLOCK_POSITION {
|
|
82
84
|
TOP = "top",
|
83
85
|
BOTTOM = "bottom",
|
84
86
|
MIDDLE = "middle",
|
87
|
+
CENTER = "center",
|
85
88
|
TOP_LEFT = "top-left",
|
86
89
|
TOP_RIGHT = "top-right",
|
87
90
|
BOTTOM_LEFT = "bottom-left",
|
@@ -13,6 +13,7 @@ export interface IHomepageHeroFullImageRbSpot extends ISpotTemplateBaseData {
|
|
13
13
|
mobileHeader?: string;
|
14
14
|
mobileDescription?: string;
|
15
15
|
mobileCtaText?: string;
|
16
|
+
showContentGradient?: boolean;
|
16
17
|
textColor?: string;
|
17
18
|
ctaTextColor?: string;
|
18
19
|
ctaBorderColor?: string;
|
@@ -58,6 +59,7 @@ export interface IInTextRbSpot extends ISpotTemplateBaseData {
|
|
58
59
|
mobileHeader?: string;
|
59
60
|
textColor?: string;
|
60
61
|
backgroundColor?: string;
|
62
|
+
textBlockPosition?: ENUM_TEXT_BLOCK_POSITION.LEFT | ENUM_TEXT_BLOCK_POSITION.CENTER | ENUM_TEXT_BLOCK_POSITION.RIGHT;
|
61
63
|
}
|
62
64
|
export interface ILargeCategoryImageToutRbSpot extends ISpotTemplateBaseData {
|
63
65
|
header?: string;
|
@@ -170,3 +172,37 @@ export interface ICarouselHorizontalInfoCardRbSpot extends ISpotTemplateBaseData
|
|
170
172
|
textBlockPosition?: ENUM_TEXT_BLOCK_POSITION.MIDDLE_LEFT | ENUM_TEXT_BLOCK_POSITION.MIDDLE_RIGHT;
|
171
173
|
mobileTextBlockPosition?: ENUM_TEXT_BLOCK_POSITION.TOP | ENUM_TEXT_BLOCK_POSITION.BOTTOM;
|
172
174
|
}
|
175
|
+
export interface ICarouselVerticalSmallImageInfoCardRbSpot extends ISpotTemplateBaseData {
|
176
|
+
preHeader?: string;
|
177
|
+
header?: string;
|
178
|
+
description?: string;
|
179
|
+
ctaText?: string;
|
180
|
+
mobilePreHeader?: string;
|
181
|
+
mobileHeader?: string;
|
182
|
+
mobileDescription?: string;
|
183
|
+
mobileCtaText?: string;
|
184
|
+
headerColor?: string;
|
185
|
+
textColor?: string;
|
186
|
+
backgroundColor?: string;
|
187
|
+
ctaTextColor?: string;
|
188
|
+
primaryImage: string;
|
189
|
+
mobilePrimaryImage?: string;
|
190
|
+
textBlockPosition?: ENUM_TEXT_BLOCK_POSITION.TOP | ENUM_TEXT_BLOCK_POSITION.BOTTOM;
|
191
|
+
}
|
192
|
+
export interface ICarouselHorizontalShortInfoCardRbSpot extends ISpotTemplateBaseData {
|
193
|
+
preHeader?: string;
|
194
|
+
header?: string;
|
195
|
+
description?: string;
|
196
|
+
ctaText?: string;
|
197
|
+
mobilePreHeader?: string;
|
198
|
+
mobileHeader?: string;
|
199
|
+
mobileDescription?: string;
|
200
|
+
mobileCtaText?: string;
|
201
|
+
headerColor?: string;
|
202
|
+
textColor?: string;
|
203
|
+
backgroundColor?: string;
|
204
|
+
ctaTextColor?: string;
|
205
|
+
primaryImage: string;
|
206
|
+
mobilePrimaryImage?: string;
|
207
|
+
textBlockPosition?: ENUM_TEXT_BLOCK_POSITION.TOP | ENUM_TEXT_BLOCK_POSITION.BOTTOM;
|
208
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { BaseSpotComponent } from 'modules/element/component/spot';
|
2
|
+
import type { ICarouselHorizontalShortInfoCardRbSpot } from '../rb-template.interface';
|
3
|
+
export declare class RbCarouselHorizontalShortInfoCardSE extends BaseSpotComponent<ICarouselHorizontalShortInfoCardRbSpot> {
|
4
|
+
protected reRenderOnDeviceChange: boolean;
|
5
|
+
constructor();
|
6
|
+
protected template(): string;
|
7
|
+
protected styles(): string;
|
8
|
+
private get hasContent();
|
9
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { BaseSpotComponent } from 'modules/element/component/spot';
|
2
|
+
import type { ICarouselVerticalSmallImageInfoCardRbSpot } from '../rb-template.interface';
|
3
|
+
export declare class RbCarouselVerticalSmallImageInfoCardSE extends BaseSpotComponent<ICarouselVerticalSmallImageInfoCardRbSpot> {
|
4
|
+
protected reRenderOnDeviceChange: boolean;
|
5
|
+
constructor();
|
6
|
+
protected template(): string;
|
7
|
+
protected styles(): string;
|
8
|
+
private get hasContent();
|
9
|
+
}
|
@@ -1,4 +1,6 @@
|
|
1
1
|
export * from './carousel-horizontal-info-card.template';
|
2
|
+
export * from './carousel-horizontal-short-info-card.template';
|
3
|
+
export * from './carousel-vertical-small-image-info-card.template';
|
2
4
|
export * from './collection-banner-without-text-block.template';
|
3
5
|
export * from './homepage-hero-full-image.template';
|
4
6
|
export * from './homepage-hero-three-tile.template';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { IAuthCredentials } from 'modules/auth';
|
2
2
|
import type { IInjectSpotElementParams } from 'modules/element';
|
3
|
-
import type { ISpot,
|
3
|
+
import type { ISpot, ISpotSelectionParams, ISpots } from 'modules/selection';
|
4
4
|
import type { IRmnClient, IRmnConfig, IRmnEventManager } from 'types';
|
5
5
|
/**
|
6
6
|
* The RmnClient for client-side.
|
@@ -103,19 +103,19 @@ export declare class ServerRmnClient implements IRmnClient {
|
|
103
103
|
/**
|
104
104
|
* Publishes the spot data for a given placement ID to the RMN.
|
105
105
|
*
|
106
|
-
* @param {string}
|
107
|
-
* @param {ISpot}
|
106
|
+
* @param {string} _placementId - The unique identifier for the placement.
|
107
|
+
* @param {ISpot} _spot - The spot data.
|
108
108
|
* @return {void} - Does not return any value.
|
109
109
|
*/
|
110
|
-
publishSpotToRmn(
|
110
|
+
publishSpotToRmn(_placementId: string, _spot: ISpot): void;
|
111
111
|
/**
|
112
112
|
* Injects the spot elements into their provided placement.
|
113
113
|
*
|
114
|
-
* @param {IInjectSpotElementParams}
|
114
|
+
* @param {IInjectSpotElementParams} _params - Parameters for injecting spot elements.
|
115
115
|
*
|
116
116
|
* @return {Promise<void>} - A promise that resolves when the spot elements are injected.
|
117
117
|
*/
|
118
|
-
injectSpotElement(
|
118
|
+
injectSpotElement(_params: IInjectSpotElementParams): Promise<void>;
|
119
119
|
}
|
120
120
|
/**
|
121
121
|
* Creates a new instance of the appropriate RmnClient based on the environment.
|
package/dist/types/types.d.ts
CHANGED
@@ -5,7 +5,7 @@ export { ISpot, ISpotEvent, ISpotSelectionParams } from 'modules/selection';
|
|
5
5
|
export type { ILifecycleState, ILSDisplayConfig, ILSDom, ILSIdentifier, ILSState, IRmnEventMap, IRmnSpotEvent, } from 'modules/spot-manager';
|
6
6
|
import type { RMN_ENV, RMN_EVENT } from 'enums';
|
7
7
|
import type { IInjectSpotElementParams } from 'modules/element';
|
8
|
-
import type { ISpot,
|
8
|
+
import type { ISpot, ISpotSelectionParams, ISpots } from 'modules/selection';
|
9
9
|
import type { IRmnEventMap } from 'modules/spot-manager';
|
10
10
|
export interface IRmnClient {
|
11
11
|
spotSelection(params: ISpotSelectionParams): Promise<ISpots | {
|
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.49",
|
6
6
|
"homepage": "https://docs.liquidcommerce.co/rmn-sdk",
|
7
7
|
"main": "./dist/index.cjs",
|
8
8
|
"module": "./dist/index.esm.js",
|
@@ -39,10 +39,12 @@
|
|
39
39
|
"build": "rollup -c",
|
40
40
|
"dev": "rollup -c -w",
|
41
41
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
42
|
-
"lint": "
|
43
|
-
"format": "
|
44
|
-
"
|
45
|
-
"
|
42
|
+
"lint": "pnpm biome lint --write",
|
43
|
+
"format": "biome format --write",
|
44
|
+
"check": "pnpm biome check --write",
|
45
|
+
"fl": "pnpm check && pnpm dev",
|
46
|
+
"clean": "rm -rf dist umd",
|
47
|
+
"clean:hard": "rm -rf dist umd node_modules && pnpm install && pnpm build",
|
46
48
|
"docs": "typedoc --out docs src",
|
47
49
|
"prepublishOnly": "pnpm run build"
|
48
50
|
},
|
@@ -59,52 +61,37 @@
|
|
59
61
|
],
|
60
62
|
"license": "",
|
61
63
|
"dependencies": {
|
62
|
-
"axios": "^1.
|
64
|
+
"axios": "^1.12.2",
|
63
65
|
"buffer": "^6.0.3",
|
64
66
|
"jose": "^5.10.0"
|
65
67
|
},
|
66
68
|
"devDependencies": {
|
67
|
-
"@
|
68
|
-
"@commitlint/
|
69
|
-
"@
|
70
|
-
"@
|
71
|
-
"@rollup/plugin-commonjs": "^28.0.3",
|
69
|
+
"@biomejs/biome": "2.2.4",
|
70
|
+
"@commitlint/cli": "^19.8.1",
|
71
|
+
"@commitlint/config-conventional": "^19.8.1",
|
72
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
72
73
|
"@rollup/plugin-json": "^6.1.0",
|
73
74
|
"@rollup/plugin-node-resolve": "^15.3.1",
|
74
75
|
"@rollup/plugin-replace": "^6.0.2",
|
75
76
|
"@rollup/plugin-terser": "^0.4.4",
|
76
77
|
"@semantic-release/changelog": "^6.0.3",
|
77
78
|
"@semantic-release/git": "^10.0.1",
|
78
|
-
"@semantic-release/github": "^11.0.
|
79
|
-
"@semantic-release/npm": "^12.0.
|
79
|
+
"@semantic-release/github": "^11.0.6",
|
80
|
+
"@semantic-release/npm": "^12.0.2",
|
80
81
|
"@types/core-js": "^2.5.8",
|
81
82
|
"@types/crypto-js": "^4.2.2",
|
82
|
-
"@types/
|
83
|
-
"@types/node": "^22.13.10",
|
84
|
-
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
85
|
-
"@typescript-eslint/parser": "^8.26.1",
|
83
|
+
"@types/node": "^22.18.7",
|
86
84
|
"conventional-changelog-cli": "^5.0.0",
|
87
85
|
"crypto-js": "^4.2.0",
|
88
|
-
"eslint": "^9.22.0",
|
89
|
-
"eslint-config-prettier": "^9.1.0",
|
90
|
-
"eslint-import-resolver-typescript": "^3.9.1",
|
91
|
-
"eslint-plugin-import": "^2.31.0",
|
92
|
-
"eslint-plugin-import-helpers": "^2.0.1",
|
93
|
-
"eslint-plugin-prettier": "^5.2.3",
|
94
|
-
"eslint-plugin-simple-import-sort": "^12.1.1",
|
95
|
-
"eslint-plugin-sonarjs": "^2.0.4",
|
96
|
-
"eslint-plugin-unicorn": "^56.0.1",
|
97
86
|
"events": "^3.3.0",
|
98
|
-
"prettier": "^3.5.3",
|
99
87
|
"process": "^0.11.10",
|
100
|
-
"rollup": "^4.
|
88
|
+
"rollup": "^4.52.3",
|
101
89
|
"rollup-plugin-polyfill-node": "^0.13.0",
|
102
90
|
"rollup-plugin-typescript2": "^0.36.0",
|
103
|
-
"semantic-release": "^24.2.
|
91
|
+
"semantic-release": "^24.2.9",
|
104
92
|
"ts-node": "^10.9.2",
|
105
|
-
"typedoc": "^0.
|
106
|
-
"typescript": "^5.
|
107
|
-
"typescript-eslint": "^8.26.1"
|
93
|
+
"typedoc": "^0.28.13",
|
94
|
+
"typescript": "^5.9.2"
|
108
95
|
},
|
109
96
|
"engines": {
|
110
97
|
"node": ">=20"
|
@@ -112,6 +99,9 @@
|
|
112
99
|
"pnpm": {
|
113
100
|
"peerDependencyRules": {
|
114
101
|
"ignoreMissing": []
|
102
|
+
},
|
103
|
+
"overrides": {
|
104
|
+
"@conventional-changelog/git-client@<2.0.0": ">=2.0.0"
|
115
105
|
}
|
116
106
|
}
|
117
107
|
}
|