@liquidcommercedev/rmn-sdk 1.4.6 → 1.5.0-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs +2463 -720
- package/dist/index.esm.js +2463 -721
- package/dist/types/common/helpers/uuid.helper.d.ts +49 -0
- package/dist/types/enums.d.ts +59 -1
- package/dist/types/index.umd.d.ts +2 -2
- package/dist/types/modules/element/component/carousel/carousel.component.d.ts +3 -0
- package/dist/types/modules/element/component/carousel/carousel.interface.d.ts +35 -0
- package/dist/types/modules/element/component/carousel/carousel.style.d.ts +2 -0
- package/dist/types/modules/element/component/carousel/index.d.ts +3 -0
- package/dist/types/modules/element/component/spot/index.d.ts +2 -0
- package/dist/types/modules/element/component/spot/spot.component.d.ts +3 -0
- package/dist/types/modules/element/component/spot/spot.interface.d.ts +10 -0
- package/dist/types/modules/element/component/utils.d.ts +1 -0
- package/dist/types/modules/{spot/html/constants/html.constant.d.ts → element/element.constant.d.ts} +2 -5
- package/dist/types/modules/element/element.interface.d.ts +52 -0
- package/dist/types/modules/element/element.service.d.ts +40 -0
- package/dist/types/modules/element/index.d.ts +3 -0
- package/dist/types/modules/element/template/helper.d.ts +4 -0
- package/dist/types/modules/element/template/index.d.ts +1 -0
- package/dist/types/modules/element/template/reservebar/collection-banner-without-text-block.template.d.ts +3 -0
- package/dist/types/modules/element/template/reservebar/homepage-hero-full-image.template.d.ts +3 -0
- package/dist/types/modules/element/template/reservebar/homepage-hero-three-tile.template.d.ts +3 -0
- package/dist/types/modules/element/template/reservebar/homepage-hero-two-tile.template.d.ts +3 -0
- package/dist/types/modules/element/template/reservebar/large-category-image-tout.template.d.ts +3 -0
- package/dist/types/modules/element/template/reservebar/navigation-banner.template.d.ts +3 -0
- package/dist/types/modules/element/template/reservebar/small-category-image-tout.template.d.ts +3 -0
- package/dist/types/modules/element/template/reservebar/small-discover-tout.template.d.ts +3 -0
- package/dist/types/modules/element/template/template.service.d.ts +11 -0
- package/dist/types/modules/element/template/template.type.d.ts +11 -0
- package/dist/types/modules/event/event.constant.d.ts +1 -0
- package/dist/types/modules/event/event.interface.d.ts +72 -0
- package/dist/types/modules/event/event.service.d.ts +47 -0
- package/dist/types/modules/event/helpers/index.d.ts +3 -0
- package/dist/types/modules/event/helpers/intersection.service.d.ts +8 -0
- package/dist/types/modules/event/helpers/localstorage.service.d.ts +26 -0
- package/dist/types/modules/event/helpers/resize.service.d.ts +30 -0
- package/dist/types/modules/event/index.d.ts +4 -0
- package/dist/types/modules/event/pubsub.d.ts +69 -0
- package/dist/types/modules/selection/index.d.ts +4 -0
- package/dist/types/modules/selection/selection.constant.d.ts +1 -0
- package/dist/types/modules/{spot/spot.interface.d.ts → selection/selection.interface.d.ts} +10 -13
- package/dist/types/modules/selection/selection.service.d.ts +18 -0
- package/dist/types/modules/{spot/spot.type.d.ts → selection/selection.type.d.ts} +4 -3
- package/dist/types/rmn-client.d.ts +66 -23
- package/dist/types/static.constant.d.ts +4 -0
- package/dist/types/types.d.ts +17 -6
- package/package.json +2 -2
- package/umd/liquidcommerce-rmn-sdk.min.js +1 -1
- package/dist/types/modules/spot/html/constants/index.d.ts +0 -1
- package/dist/types/modules/spot/html/index.d.ts +0 -1
- package/dist/types/modules/spot/html/spot.element.service.d.ts +0 -7
- package/dist/types/modules/spot/html/templates/index.d.ts +0 -1
- package/dist/types/modules/spot/html/templates/reservebar/collection-banner-without-text-block.template.d.ts +0 -2
- package/dist/types/modules/spot/html/templates/reservebar/homepage-hero-full-image.template.d.ts +0 -2
- package/dist/types/modules/spot/html/templates/reservebar/homepage-hero-three-tile.template.d.ts +0 -2
- package/dist/types/modules/spot/html/templates/reservebar/homepage-hero-two-tile.template.d.ts +0 -2
- package/dist/types/modules/spot/html/templates/reservebar/large-category-image-tout.template.d.ts +0 -2
- package/dist/types/modules/spot/html/templates/reservebar/navigation-banner.template.d.ts +0 -2
- package/dist/types/modules/spot/html/templates/reservebar/small-category-image-tout.template.d.ts +0 -2
- package/dist/types/modules/spot/html/templates/reservebar/small-discover-tout.template.d.ts +0 -2
- package/dist/types/modules/spot/html/templates/spot.template.d.ts +0 -21
- package/dist/types/modules/spot/index.d.ts +0 -6
- package/dist/types/modules/spot/spot.constant.d.ts +0 -4
- package/dist/types/modules/spot/spot.enum.d.ts +0 -57
- package/dist/types/modules/spot/spot.html.service.d.ts +0 -22
- package/dist/types/modules/spot/spot.selection.service.d.ts +0 -15
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/billboard/billboard-v1.template.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/billboard/billboard-v2.template.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/billboard/billboard-v3.template.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/billboard/index.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/in-text/in-text-v1.template.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/in-text/index.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/index.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/large-leaderboard/index.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/large-leaderboard/large-leaderboard-v1.template.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/large-leaderboard/large-leaderboard-v2.template.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/large-rectangle/index.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/large-rectangle/large-rectangle-v1.template.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/square/index.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/square/square-v1.template.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/square/square-v2.template.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/vertical-rectangle/index.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/vertical-rectangle/vertical-rectangle-v1.template.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/wide-skyscraper/index.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/iab/wide-skyscraper/wide-skyscraper-v1.template.d.ts +0 -0
- /package/dist/types/modules/{spot/html/templates → element/template}/reservebar/index.d.ts +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
export * from './html.constant';
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './spot.element.service';
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './spot.template';
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import type { ISpot } from 'types';
|
2
|
-
export declare enum ENUM_SPOT_ELEMENT_ATTRIBUTE {
|
3
|
-
WIDTH = "width",
|
4
|
-
HEIGHT = "height",
|
5
|
-
FLUID = "fluid",
|
6
|
-
REDIRECT_ON_CLICK = "redirect-on-click"
|
7
|
-
}
|
8
|
-
export interface ISpotHtmlAttribute {
|
9
|
-
[ENUM_SPOT_ELEMENT_ATTRIBUTE.WIDTH]: number;
|
10
|
-
[ENUM_SPOT_ELEMENT_ATTRIBUTE.HEIGHT]: number;
|
11
|
-
[ENUM_SPOT_ELEMENT_ATTRIBUTE.FLUID]: string;
|
12
|
-
[ENUM_SPOT_ELEMENT_ATTRIBUTE.REDIRECT_ON_CLICK]: string;
|
13
|
-
}
|
14
|
-
/**
|
15
|
-
* Creates the spot html string based on the provided spot data.
|
16
|
-
*
|
17
|
-
* @param {ISpot} data - The spot data.
|
18
|
-
*
|
19
|
-
* @return {string} - The spot html string.
|
20
|
-
*/
|
21
|
-
export declare const GET_SPOT_TEMPLATE_HTML_STRING: (data: ISpot) => string;
|
@@ -1,57 +0,0 @@
|
|
1
|
-
export declare enum RMN_SPOT_TYPE {
|
2
|
-
RB_HOMEPAGE_HERO_THREE_TILE = "rbHomepageHeroThreeTile",
|
3
|
-
RB_HOMEPAGE_HERO_TWO_TILE = "rbHomepageHeroTwoTile",
|
4
|
-
RB_HOMEPAGE_HERO_FULL_IMAGE = "rbHomepageHeroFullImage",
|
5
|
-
RB_LARGE_CATEGORY_IMAGE_TOUT = "rbLargeCategoryImageTout",
|
6
|
-
RB_SMALL_DISCOVER_TOUT = "rbSmallDiscoverTout",
|
7
|
-
RB_SMALL_CATEGORY_IMAGE_TOUT = "rbSmallCategoryImageTout",
|
8
|
-
RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK = "rbCollectionBannerWithoutTextBlock",
|
9
|
-
RB_PRODUCT_UPCS = "rbProductUpcs",
|
10
|
-
RB_NAVIGATION_BANNER = "rbNavigationBanner",
|
11
|
-
BILLBOARD = "billboard",
|
12
|
-
LARGE_RECTANGLE = "largeRectangle",
|
13
|
-
VERTICAL_RECTANGLE = "verticalRectangle",
|
14
|
-
SQUARE = "square",
|
15
|
-
LARGE_LEADERBOARD = "largeLeaderboard",
|
16
|
-
WIDE_SKYSCRAPER = "wideSkyscraper",
|
17
|
-
IN_TEXT = "inText",
|
18
|
-
SMALL_RECTANGLE = "smallRectangle",
|
19
|
-
MEDIUM_RECTANGLE = "mediumRectangle",
|
20
|
-
BANNER = "banner",
|
21
|
-
LEADERBOARD = "leaderboard",
|
22
|
-
SKYSCRAPER = "skyscraper",
|
23
|
-
HALF_PAGE = "halfPage",
|
24
|
-
SMALL_SQUARE = "smallSquare",
|
25
|
-
VERTICAL_BANNER = "verticalBanner",
|
26
|
-
BUTTON_2 = "button2",
|
27
|
-
MICRO_BAR = "microBar",
|
28
|
-
POP_UP = "popUp",
|
29
|
-
PORTRAIT = "portrait",
|
30
|
-
SMARTPHONE_BANNER_1 = "smartphoneBanner1",
|
31
|
-
SMARTPHONE_BANNER_2 = "smartphoneBanner2",
|
32
|
-
MOBILE_PHONE_INTERSTITIAL_1 = "mobilePhoneInterstitial1",
|
33
|
-
MOBILE_PHONE_INTERSTITIAL_2 = "mobilePhoneInterstitial2",
|
34
|
-
MOBILE_PHONE_INTERSTITIAL_3 = "mobilePhoneInterstitial3",
|
35
|
-
FEATURE_PHONE_SMALL_BANNER = "featurePhoneSmallBanner",
|
36
|
-
FEATURE_PHONE_MEDIUM_BANNER = "featurePhoneMediumBanner",
|
37
|
-
FEATURE_PHONE_LARGE_BANNER = "featurePhoneLargeBanner"
|
38
|
-
}
|
39
|
-
export declare enum RMN_FILTER_PROPERTIES {
|
40
|
-
KEYWORDS = "keywords",
|
41
|
-
PARENTCO = "parentCo",
|
42
|
-
BRAND = "brand",
|
43
|
-
CATEGORY = "category",
|
44
|
-
TYPE = "type",
|
45
|
-
CLASSIFICATION = "classification",
|
46
|
-
HOLIDAY = "holiday",
|
47
|
-
PUBLISHERS = "publishers",
|
48
|
-
SECTION = "section"
|
49
|
-
}
|
50
|
-
export declare enum RMN_SPOT_EVENT {
|
51
|
-
IMPRESSION = "IMPRESSION",
|
52
|
-
CLICK = "CLICK",
|
53
|
-
PURCHASE = "PURCHASE",
|
54
|
-
ADD_TO_CART = "ADD_TO_CART",
|
55
|
-
ADD_TO_WISHLIST = "ADD_TO_WISHLIST",
|
56
|
-
BUY_NOW = "BUY_NOW"
|
57
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import type { ICreateSpotElementConfig, ISpot, ISpotHtmlService } from './spot.interface';
|
2
|
-
export declare class SpotHtmlService implements ISpotHtmlService {
|
3
|
-
static getInstance(): SpotHtmlService;
|
4
|
-
/**
|
5
|
-
* Creates the html element based on the provided spot data using shadow dom.
|
6
|
-
*
|
7
|
-
* This method is only available in browser environments.
|
8
|
-
*
|
9
|
-
* @param {ISpot} spot - The spot data.
|
10
|
-
* @param {ICreateSpotElementConfig} config - The configuration object.
|
11
|
-
* @param {ICreateSpotElementConfig.fluid} config.fluid - If the spot should be fluid or not.
|
12
|
-
* @param {ICreateSpotElementConfig.customContent} config.customContent - Use a custom html element/string.
|
13
|
-
* @param {ICreateSpotElementConfig.redirectOnClick} config.redirectOnClick - If the spot should redirect on click.
|
14
|
-
*
|
15
|
-
* @return {HTMLElement | null} - The spot html element or null if the browser environment is not available.
|
16
|
-
*/
|
17
|
-
createSpotHtmlElement(spot: ISpot, config?: ICreateSpotElementConfig): HTMLElement | null;
|
18
|
-
/**
|
19
|
-
* @returns {boolean} - True if the browser environment is available and the element is defined.
|
20
|
-
*/
|
21
|
-
private ensureBrowserEnvironmentAndDefineElement;
|
22
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { BaseApi } from '../../common/http';
|
2
|
-
import type { IAuthCredentials } from '../auth';
|
3
|
-
import type { ISpots, ISpotSelectionParams, ISpotSelectionService } from './spot.interface';
|
4
|
-
export declare class SpotSelectionService extends BaseApi implements ISpotSelectionService {
|
5
|
-
private constructor();
|
6
|
-
static getInstance(auth: IAuthCredentials): SpotSelectionService;
|
7
|
-
/**
|
8
|
-
* Makes a selection request on our server based on the provided data.
|
9
|
-
*
|
10
|
-
* @param {ISpotSelectionParams} data - Spots selection parameters.
|
11
|
-
*
|
12
|
-
* @return {Promise<ISpots>} - The spots response object.
|
13
|
-
*/
|
14
|
-
spotSelection(data: ISpotSelectionParams): Promise<ISpots>;
|
15
|
-
}
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/types/modules/{spot/html/templates → element/template}/iab/billboard/index.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/types/modules/{spot/html/templates → element/template}/iab/large-rectangle/index.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/types/modules/{spot/html/templates → element/template}/iab/wide-skyscraper/index.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|