@liquidcommercedev/rmn-sdk 1.5.0-beta.23 → 1.5.0-beta.25
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 +116 -32
- package/dist/index.esm.js +116 -32
- package/dist/types/enums.d.ts +2 -0
- package/dist/types/modules/element/template/reservebar/in-text.template.d.ts +3 -0
- package/dist/types/modules/element/template/reservebar/index.d.ts +2 -0
- package/dist/types/modules/element/template/reservebar/video-player.template.d.ts +3 -0
- package/dist/types/modules/selection/selection.interface.d.ts +8 -0
- package/package.json +1 -1
- package/umd/liquidcommerce-rmn-sdk.min.js +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -11,6 +11,8 @@ var RMN_SPOT_TYPE;
|
|
|
11
11
|
RMN_SPOT_TYPE["RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK"] = "rbCollectionBannerWithoutTextBlock";
|
|
12
12
|
RMN_SPOT_TYPE["RB_PRODUCT_UPCS"] = "rbProductUpcs";
|
|
13
13
|
RMN_SPOT_TYPE["RB_NAVIGATION_BANNER"] = "rbNavigationBanner";
|
|
14
|
+
RMN_SPOT_TYPE["RB_VIDEO_PLAYER"] = "rbVideoPlayer";
|
|
15
|
+
RMN_SPOT_TYPE["RB_IN_TEXT"] = "rbInText";
|
|
14
16
|
// IAB Standard Spot Types
|
|
15
17
|
RMN_SPOT_TYPE["BILLBOARD"] = "billboard";
|
|
16
18
|
RMN_SPOT_TYPE["LARGE_RECTANGLE"] = "largeRectangle";
|
|
@@ -6156,6 +6158,8 @@ const extractorConfig = {
|
|
|
6156
6158
|
'item_number',
|
|
6157
6159
|
'article_number',
|
|
6158
6160
|
'reference',
|
|
6161
|
+
'salsifyGrouping',
|
|
6162
|
+
'grouping',
|
|
6159
6163
|
],
|
|
6160
6164
|
price: [
|
|
6161
6165
|
'price',
|
|
@@ -15817,6 +15821,8 @@ const SPOT_DIMENSIONS = {
|
|
|
15817
15821
|
[RMN_SPOT_TYPE.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK]: { width: 887, height: 344 },
|
|
15818
15822
|
[RMN_SPOT_TYPE.RB_PRODUCT_UPCS]: { width: 1, height: 1 },
|
|
15819
15823
|
[RMN_SPOT_TYPE.RB_NAVIGATION_BANNER]: { width: 440, height: 220 },
|
|
15824
|
+
[RMN_SPOT_TYPE.RB_VIDEO_PLAYER]: { width: 1280, height: 720 },
|
|
15825
|
+
[RMN_SPOT_TYPE.RB_IN_TEXT]: { width: 1, height: 1 },
|
|
15820
15826
|
[RMN_SPOT_TYPE.SMALL_RECTANGLE]: { width: 180, height: 150 },
|
|
15821
15827
|
[RMN_SPOT_TYPE.MEDIUM_RECTANGLE]: { width: 300, height: 250 },
|
|
15822
15828
|
[RMN_SPOT_TYPE.LARGE_RECTANGLE]: { width: 336, height: 280 },
|
|
@@ -16666,8 +16672,15 @@ if (typeof window !== 'undefined' && typeof window.customElements !== 'undefined
|
|
|
16666
16672
|
const clonedSlide = this.slides[index].cloneNode(true);
|
|
16667
16673
|
// Map clone to original for event handling
|
|
16668
16674
|
this.cloneToOriginalMap.set(clonedSlide, this.slides[index]);
|
|
16675
|
+
let isDragging = false;
|
|
16676
|
+
slideElement.addEventListener('mousedown', () => isDragging = false);
|
|
16677
|
+
slideElement.addEventListener('mousemove', () => isDragging = true);
|
|
16669
16678
|
// Add event delegation to the slide container
|
|
16670
16679
|
slideElement.addEventListener('click', (e) => {
|
|
16680
|
+
if (isDragging) {
|
|
16681
|
+
e.stopPropagation();
|
|
16682
|
+
return;
|
|
16683
|
+
}
|
|
16671
16684
|
const original = this.slides[index];
|
|
16672
16685
|
// Dispatch a new event on the original element
|
|
16673
16686
|
const cloneEvent = new Event(e.type, { bubbles: true, cancelable: true });
|
|
@@ -17550,7 +17563,7 @@ function spotHtmlStringToElement(htmlString, spotType) {
|
|
|
17550
17563
|
return spot;
|
|
17551
17564
|
}
|
|
17552
17565
|
|
|
17553
|
-
const STYLES$
|
|
17566
|
+
const STYLES$j = ({ primaryImage, secondaryImage }) => `
|
|
17554
17567
|
<style>
|
|
17555
17568
|
.content {
|
|
17556
17569
|
width: 100%;
|
|
@@ -17648,7 +17661,7 @@ function billboardV1Template(spot) {
|
|
|
17648
17661
|
${GFONT_PRECONNECT}
|
|
17649
17662
|
${GFONT_SOURCE_SANS_3}
|
|
17650
17663
|
${GFONT_CORMORANT}
|
|
17651
|
-
${STYLES$
|
|
17664
|
+
${STYLES$j(spot)}
|
|
17652
17665
|
<div class="content">
|
|
17653
17666
|
<div class="big-image"></div>
|
|
17654
17667
|
<div class="main">
|
|
@@ -17663,7 +17676,7 @@ function billboardV1Template(spot) {
|
|
|
17663
17676
|
`;
|
|
17664
17677
|
}
|
|
17665
17678
|
|
|
17666
|
-
const STYLES$
|
|
17679
|
+
const STYLES$i = ({ primaryImage }) => `
|
|
17667
17680
|
<style>
|
|
17668
17681
|
.content {
|
|
17669
17682
|
display: flex;
|
|
@@ -17737,7 +17750,7 @@ function billboardV2Template(spot) {
|
|
|
17737
17750
|
${GFONT_PRECONNECT}
|
|
17738
17751
|
${GFONT_SOURCE_SANS_3}
|
|
17739
17752
|
${GFONT_CORMORANT}
|
|
17740
|
-
${STYLES$
|
|
17753
|
+
${STYLES$i(spot)}
|
|
17741
17754
|
<div class="content">
|
|
17742
17755
|
<div class="text-container">
|
|
17743
17756
|
<h2 class="header">${spot.header}</h2>
|
|
@@ -17748,7 +17761,7 @@ function billboardV2Template(spot) {
|
|
|
17748
17761
|
`;
|
|
17749
17762
|
}
|
|
17750
17763
|
|
|
17751
|
-
const STYLES$
|
|
17764
|
+
const STYLES$h = ({ primaryImage }) => `
|
|
17752
17765
|
<style>
|
|
17753
17766
|
.content {
|
|
17754
17767
|
width: 100%;
|
|
@@ -17838,7 +17851,7 @@ function billboardV3Template(spot) {
|
|
|
17838
17851
|
${GFONT_PRECONNECT}
|
|
17839
17852
|
${GFONT_SOURCE_SANS_3}
|
|
17840
17853
|
${GFONT_CORMORANT}
|
|
17841
|
-
${STYLES$
|
|
17854
|
+
${STYLES$h(spot)}
|
|
17842
17855
|
<div class="content">
|
|
17843
17856
|
<div class="text">
|
|
17844
17857
|
<h2 class="header">${spot.header}</h2>
|
|
@@ -17850,7 +17863,7 @@ function billboardV3Template(spot) {
|
|
|
17850
17863
|
`;
|
|
17851
17864
|
}
|
|
17852
17865
|
|
|
17853
|
-
const STYLES$
|
|
17866
|
+
const STYLES$g = () => `
|
|
17854
17867
|
<style>
|
|
17855
17868
|
.content {
|
|
17856
17869
|
display: inline-block;
|
|
@@ -17882,7 +17895,7 @@ function inTextV1Template(spot) {
|
|
|
17882
17895
|
${GFONT_PRECONNECT}
|
|
17883
17896
|
${GFONT_SOURCE_SANS_3}
|
|
17884
17897
|
${GFONT_CORMORANT}
|
|
17885
|
-
${STYLES$
|
|
17898
|
+
${STYLES$g()}
|
|
17886
17899
|
<div class="content">
|
|
17887
17900
|
<span class="header">${spot.header}</span>
|
|
17888
17901
|
<span class="description">${spot.description}</span>
|
|
@@ -17890,7 +17903,7 @@ function inTextV1Template(spot) {
|
|
|
17890
17903
|
`;
|
|
17891
17904
|
}
|
|
17892
17905
|
|
|
17893
|
-
const STYLES$
|
|
17906
|
+
const STYLES$f = ({ primaryImage }) => `
|
|
17894
17907
|
<style>
|
|
17895
17908
|
.content {
|
|
17896
17909
|
width: 100%;
|
|
@@ -17972,7 +17985,7 @@ function largeLeaderboardV1Template(spot) {
|
|
|
17972
17985
|
${GFONT_PRECONNECT}
|
|
17973
17986
|
${GFONT_SOURCE_SANS_3}
|
|
17974
17987
|
${GFONT_CORMORANT}
|
|
17975
|
-
${STYLES$
|
|
17988
|
+
${STYLES$f(spot)}
|
|
17976
17989
|
<div class="content">
|
|
17977
17990
|
<div class="text">
|
|
17978
17991
|
<h2 class="header">${spot.header}</h2>
|
|
@@ -17983,7 +17996,7 @@ function largeLeaderboardV1Template(spot) {
|
|
|
17983
17996
|
`;
|
|
17984
17997
|
}
|
|
17985
17998
|
|
|
17986
|
-
const STYLES$
|
|
17999
|
+
const STYLES$e = ({ primaryImage }) => `
|
|
17987
18000
|
<style>
|
|
17988
18001
|
.content {
|
|
17989
18002
|
width: 100%;
|
|
@@ -18059,7 +18072,7 @@ function largeLeaderboardV2Template(spot) {
|
|
|
18059
18072
|
${GFONT_PRECONNECT}
|
|
18060
18073
|
${GFONT_SOURCE_SANS_3}
|
|
18061
18074
|
${GFONT_CORMORANT}
|
|
18062
|
-
${STYLES$
|
|
18075
|
+
${STYLES$e(spot)}
|
|
18063
18076
|
<div class="content">
|
|
18064
18077
|
<div class="text">
|
|
18065
18078
|
<h2 class="header">${spot.header}</h2>
|
|
@@ -18070,7 +18083,7 @@ function largeLeaderboardV2Template(spot) {
|
|
|
18070
18083
|
`;
|
|
18071
18084
|
}
|
|
18072
18085
|
|
|
18073
|
-
const STYLES$
|
|
18086
|
+
const STYLES$d = ({ primaryImage }) => `
|
|
18074
18087
|
<style>
|
|
18075
18088
|
.content {
|
|
18076
18089
|
width: 100%;
|
|
@@ -18118,7 +18131,7 @@ function largeRectangleV1Template(spot) {
|
|
|
18118
18131
|
${GFONT_PRECONNECT}
|
|
18119
18132
|
${GFONT_SOURCE_SANS_3}
|
|
18120
18133
|
${GFONT_CORMORANT}
|
|
18121
|
-
${STYLES$
|
|
18134
|
+
${STYLES$d(spot)}
|
|
18122
18135
|
<div class="content">
|
|
18123
18136
|
<div class="image"></div>
|
|
18124
18137
|
<div class="text">
|
|
@@ -18129,7 +18142,7 @@ function largeRectangleV1Template(spot) {
|
|
|
18129
18142
|
`;
|
|
18130
18143
|
}
|
|
18131
18144
|
|
|
18132
|
-
const STYLES$
|
|
18145
|
+
const STYLES$c = ({ primaryImage }) => `
|
|
18133
18146
|
<style>
|
|
18134
18147
|
.content {
|
|
18135
18148
|
width: 100%;
|
|
@@ -18216,7 +18229,7 @@ function squareV1Template(spot) {
|
|
|
18216
18229
|
${GFONT_PRECONNECT}
|
|
18217
18230
|
${GFONT_SOURCE_SANS_3}
|
|
18218
18231
|
${GFONT_CORMORANT}
|
|
18219
|
-
${STYLES$
|
|
18232
|
+
${STYLES$c(spot)}
|
|
18220
18233
|
<div class="content">
|
|
18221
18234
|
<div class="text">
|
|
18222
18235
|
<h2 class="header">${spot.header}</h2>
|
|
@@ -18227,7 +18240,7 @@ function squareV1Template(spot) {
|
|
|
18227
18240
|
`;
|
|
18228
18241
|
}
|
|
18229
18242
|
|
|
18230
|
-
const STYLES$
|
|
18243
|
+
const STYLES$b = ({ primaryImage }) => `
|
|
18231
18244
|
<style>
|
|
18232
18245
|
.content {
|
|
18233
18246
|
width: 100%;
|
|
@@ -18271,14 +18284,14 @@ function squareV2Template(spot) {
|
|
|
18271
18284
|
${GFONT_PRECONNECT}
|
|
18272
18285
|
${GFONT_SOURCE_SANS_3}
|
|
18273
18286
|
${GFONT_CORMORANT}
|
|
18274
|
-
${STYLES$
|
|
18287
|
+
${STYLES$b(spot)}
|
|
18275
18288
|
<div class="content">
|
|
18276
18289
|
<span class="header">${spot.header}</span>
|
|
18277
18290
|
</div>
|
|
18278
18291
|
`;
|
|
18279
18292
|
}
|
|
18280
18293
|
|
|
18281
|
-
const STYLES$
|
|
18294
|
+
const STYLES$a = ({ primaryImage }) => `
|
|
18282
18295
|
<style>
|
|
18283
18296
|
.content {
|
|
18284
18297
|
width: 100%;
|
|
@@ -18336,7 +18349,7 @@ function verticalRectangleV1Template(spot) {
|
|
|
18336
18349
|
${GFONT_PRECONNECT}
|
|
18337
18350
|
${GFONT_SOURCE_SANS_3}
|
|
18338
18351
|
${GFONT_CORMORANT}
|
|
18339
|
-
${STYLES$
|
|
18352
|
+
${STYLES$a(spot)}
|
|
18340
18353
|
<div class="content">
|
|
18341
18354
|
<div class="text">
|
|
18342
18355
|
<h2 class="header">${spot.header}</h2>
|
|
@@ -18347,7 +18360,7 @@ function verticalRectangleV1Template(spot) {
|
|
|
18347
18360
|
`;
|
|
18348
18361
|
}
|
|
18349
18362
|
|
|
18350
|
-
const STYLES$
|
|
18363
|
+
const STYLES$9 = ({ primaryImage }) => `
|
|
18351
18364
|
<style>
|
|
18352
18365
|
.content {
|
|
18353
18366
|
width: 100%;
|
|
@@ -18362,12 +18375,12 @@ const STYLES$8 = ({ primaryImage }) => `
|
|
|
18362
18375
|
`;
|
|
18363
18376
|
function wideSkyscraperV1Template(spot) {
|
|
18364
18377
|
return `
|
|
18365
|
-
${STYLES$
|
|
18378
|
+
${STYLES$9(spot)}
|
|
18366
18379
|
<div class="content"></div>
|
|
18367
18380
|
`;
|
|
18368
18381
|
}
|
|
18369
18382
|
|
|
18370
|
-
const STYLES$
|
|
18383
|
+
const STYLES$8 = ({ primaryImage, mobilePrimaryImage = primaryImage }, { prefix }) => `
|
|
18371
18384
|
<style>
|
|
18372
18385
|
.${prefix} {
|
|
18373
18386
|
display: block;
|
|
@@ -18391,12 +18404,12 @@ const STYLES$7 = ({ primaryImage, mobilePrimaryImage = primaryImage }, { prefix
|
|
|
18391
18404
|
function rbCollectionBannerWithoutTextBlockTemplate(spot, config) {
|
|
18392
18405
|
const { prefix = '' } = config;
|
|
18393
18406
|
return `
|
|
18394
|
-
${STYLES$
|
|
18407
|
+
${STYLES$8(spot, config)}
|
|
18395
18408
|
<div class="${prefix}"></div>
|
|
18396
18409
|
`;
|
|
18397
18410
|
}
|
|
18398
18411
|
|
|
18399
|
-
const STYLES$
|
|
18412
|
+
const STYLES$7 = ({ textColor = '#ffffff', ctaTextColor = textColor, ctaBorderColor = ctaTextColor, primaryImage, mobilePrimaryImage = primaryImage, }, { prefix, overlay }) => {
|
|
18400
18413
|
const linearGradient = generateGradientColor(overlay, 'rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%');
|
|
18401
18414
|
return `
|
|
18402
18415
|
<style>
|
|
@@ -18535,7 +18548,7 @@ function rbHomepageHeroFullImageTemplate(spot, config) {
|
|
|
18535
18548
|
${GFONT_PRECONNECT}
|
|
18536
18549
|
${GFONT_SOURCE_SANS_3}
|
|
18537
18550
|
${GFONT_CORMORANT}
|
|
18538
|
-
${STYLES$
|
|
18551
|
+
${STYLES$7(spot, config)}
|
|
18539
18552
|
<div class="${prefix}">
|
|
18540
18553
|
<div class="${prefix}__text">
|
|
18541
18554
|
${spot.header ? `<h2 class="${prefix}__header">${spot.header}</h2>` : ''}
|
|
@@ -18546,7 +18559,7 @@ function rbHomepageHeroFullImageTemplate(spot, config) {
|
|
|
18546
18559
|
`;
|
|
18547
18560
|
}
|
|
18548
18561
|
|
|
18549
|
-
const STYLES$
|
|
18562
|
+
const STYLES$6 = ({ textColor = '#212121', backgroundColor = '#e8e6de', ctaTextColor = textColor, primaryImage, mobilePrimaryImage = primaryImage, secondaryImage, mobileSecondaryImage = secondaryImage, }, { prefix }) => `
|
|
18550
18563
|
<style>
|
|
18551
18564
|
.${prefix} {
|
|
18552
18565
|
width: 100%;
|
|
@@ -18611,7 +18624,7 @@ const STYLES$5 = ({ textColor = '#212121', backgroundColor = '#e8e6de', ctaTextC
|
|
|
18611
18624
|
color: inherit;
|
|
18612
18625
|
margin: 0;
|
|
18613
18626
|
font-size: 18px;
|
|
18614
|
-
font-family: "Cormorant";
|
|
18627
|
+
font-family: "Cormorant", system-ui;
|
|
18615
18628
|
font-style: normal;
|
|
18616
18629
|
font-weight: 700;
|
|
18617
18630
|
line-height: normal;
|
|
@@ -18723,7 +18736,7 @@ function rbHomepageHeroThreeTileTemplate(spot, config) {
|
|
|
18723
18736
|
${GFONT_PRECONNECT}
|
|
18724
18737
|
${GFONT_SOURCE_SANS_3}
|
|
18725
18738
|
${GFONT_CORMORANT}
|
|
18726
|
-
${STYLES$
|
|
18739
|
+
${STYLES$6(spot, config)}
|
|
18727
18740
|
<div class="${prefix}">
|
|
18728
18741
|
<div class="${prefix}__content">
|
|
18729
18742
|
<div class="${prefix}__primary-image"></div>
|
|
@@ -18740,7 +18753,7 @@ function rbHomepageHeroThreeTileTemplate(spot, config) {
|
|
|
18740
18753
|
`;
|
|
18741
18754
|
}
|
|
18742
18755
|
|
|
18743
|
-
const STYLES$
|
|
18756
|
+
const STYLES$5 = ({ textColor = '#212121', backgroundColor = '#e8e6de', ctaTextColor = textColor, primaryImage, mobilePrimaryImage = primaryImage, }, { prefix }) => `
|
|
18744
18757
|
<style>
|
|
18745
18758
|
.${prefix} {
|
|
18746
18759
|
width: 100%;
|
|
@@ -18882,7 +18895,7 @@ function rbHomepageHeroTwoTileTemplate(spot, config) {
|
|
|
18882
18895
|
${GFONT_PRECONNECT}
|
|
18883
18896
|
${GFONT_SOURCE_SANS_3}
|
|
18884
18897
|
${GFONT_CORMORANT}
|
|
18885
|
-
${STYLES$
|
|
18898
|
+
${STYLES$5(spot, config)}
|
|
18886
18899
|
<div class="${prefix}">
|
|
18887
18900
|
<div class="${prefix}__content">
|
|
18888
18901
|
<div class="${prefix}__text">
|
|
@@ -18896,6 +18909,37 @@ function rbHomepageHeroTwoTileTemplate(spot, config) {
|
|
|
18896
18909
|
`;
|
|
18897
18910
|
}
|
|
18898
18911
|
|
|
18912
|
+
const STYLES$4 = ({ textColor = '#ffffff', backgroundColor = 'transparent' }, { prefix }) => `
|
|
18913
|
+
<style>
|
|
18914
|
+
.${prefix} {
|
|
18915
|
+
display: block;
|
|
18916
|
+
cursor: pointer;
|
|
18917
|
+
max-width: fit-content;
|
|
18918
|
+
padding: 0;
|
|
18919
|
+
background-color: ${backgroundColor};
|
|
18920
|
+
}
|
|
18921
|
+
.${prefix}__header {
|
|
18922
|
+
font-size: 0.875rem;
|
|
18923
|
+
line-height: 1.25rem;
|
|
18924
|
+
font-weight: 500;
|
|
18925
|
+
color: ${textColor};
|
|
18926
|
+
font-family: "Source Sans 3", system-ui;
|
|
18927
|
+
margin: 0;
|
|
18928
|
+
}
|
|
18929
|
+
</style>
|
|
18930
|
+
`;
|
|
18931
|
+
function rbInTextTemplate(spot, config) {
|
|
18932
|
+
const { prefix = '' } = config;
|
|
18933
|
+
return `
|
|
18934
|
+
${GFONT_PRECONNECT}
|
|
18935
|
+
${GFONT_SOURCE_SANS_3}
|
|
18936
|
+
${STYLES$4(spot, config)}
|
|
18937
|
+
<div class="${prefix}">
|
|
18938
|
+
${spot.header ? `<h2 class="${prefix}__header">${spot.header}</h2>` : ''}
|
|
18939
|
+
</div>
|
|
18940
|
+
`;
|
|
18941
|
+
}
|
|
18942
|
+
|
|
18899
18943
|
const STYLES$3 = ({ textColor = '#ffffff', ctaTextColor = textColor, ctaBorderColor = ctaTextColor, primaryImage, mobilePrimaryImage = primaryImage, }, { prefix, overlay }) => {
|
|
18900
18944
|
const linearGradient = generateGradientColor(overlay, 'rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%');
|
|
18901
18945
|
return `
|
|
@@ -19252,6 +19296,13 @@ const SPOT_TEMPLATE_HTML_ELEMENT = (spot, config) => {
|
|
|
19252
19296
|
[RMN_SPOT_TYPE.RB_NAVIGATION_BANNER]: {
|
|
19253
19297
|
rbNavigationBanner: rbNavigationBannerTemplate,
|
|
19254
19298
|
},
|
|
19299
|
+
[RMN_SPOT_TYPE.RB_IN_TEXT]: {
|
|
19300
|
+
rbInText: rbInTextTemplate,
|
|
19301
|
+
},
|
|
19302
|
+
[RMN_SPOT_TYPE.RB_VIDEO_PLAYER]: {
|
|
19303
|
+
// rbVideoPlayer: rbVideoPlayerTemplate,
|
|
19304
|
+
rbVideoPlayer: () => '', // TODO: Implement this template.
|
|
19305
|
+
},
|
|
19255
19306
|
[RMN_SPOT_TYPE.RB_PRODUCT_UPCS]: {
|
|
19256
19307
|
rbProductUpcs: () => '', // No template for this spot type, it will be handled by ReserveBar App.
|
|
19257
19308
|
},
|
|
@@ -20187,6 +20238,39 @@ const SPOT_EVENTS_EXAMPLE = [
|
|
|
20187
20238
|
productIds: [107, 108, 109, 110, 111],
|
|
20188
20239
|
},
|
|
20189
20240
|
],
|
|
20241
|
+
rbInText: [
|
|
20242
|
+
{
|
|
20243
|
+
id: 'mxo259',
|
|
20244
|
+
spot: RMN_SPOT_TYPE.RB_IN_TEXT,
|
|
20245
|
+
variant: RMN_SPOT_TYPE.RB_IN_TEXT,
|
|
20246
|
+
width: 1,
|
|
20247
|
+
height: 1,
|
|
20248
|
+
header: 'Premium Vodka',
|
|
20249
|
+
textColor: '#ffffff',
|
|
20250
|
+
backgroundColor: '#000000',
|
|
20251
|
+
events: SPOT_EVENTS_EXAMPLE,
|
|
20252
|
+
productIds: [107, 108, 109, 110, 111],
|
|
20253
|
+
},
|
|
20254
|
+
],
|
|
20255
|
+
rbVideoPlayer: [
|
|
20256
|
+
{
|
|
20257
|
+
id: 'mxo259',
|
|
20258
|
+
spot: RMN_SPOT_TYPE.RB_VIDEO_PLAYER,
|
|
20259
|
+
variant: RMN_SPOT_TYPE.RB_VIDEO_PLAYER,
|
|
20260
|
+
width: 1280,
|
|
20261
|
+
height: 720,
|
|
20262
|
+
videoUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0',
|
|
20263
|
+
videoOverlayImage: 'https://placehold.co/1280x720/png?text=Video+Overlay',
|
|
20264
|
+
videoOverlayHeader: 'Watch Our Story',
|
|
20265
|
+
videoOverlayDescription: 'Discover the history of our distillery',
|
|
20266
|
+
videoControls: true,
|
|
20267
|
+
videoAutoPlay: true,
|
|
20268
|
+
videoMute: true,
|
|
20269
|
+
videoLoop: true,
|
|
20270
|
+
events: SPOT_EVENTS_EXAMPLE,
|
|
20271
|
+
productIds: [107, 108, 109, 110, 111],
|
|
20272
|
+
},
|
|
20273
|
+
],
|
|
20190
20274
|
});
|
|
20191
20275
|
({
|
|
20192
20276
|
banner: [],
|
|
@@ -20547,7 +20631,7 @@ class LiquidCommerceRmnClient {
|
|
|
20547
20631
|
const spotElement = this.elementService.createSpotElement({
|
|
20548
20632
|
content,
|
|
20549
20633
|
config: {
|
|
20550
|
-
fluid: config === null || config === void 0 ? void 0 : config.fluid,
|
|
20634
|
+
fluid: spot.spot === RMN_SPOT_TYPE.RB_IN_TEXT ? true : config === null || config === void 0 ? void 0 : config.fluid,
|
|
20551
20635
|
spot: spot.spot,
|
|
20552
20636
|
width: spot.width,
|
|
20553
20637
|
height: spot.height,
|
package/dist/types/enums.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export declare enum RMN_SPOT_TYPE {
|
|
|
9
9
|
RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK = "rbCollectionBannerWithoutTextBlock",
|
|
10
10
|
RB_PRODUCT_UPCS = "rbProductUpcs",
|
|
11
11
|
RB_NAVIGATION_BANNER = "rbNavigationBanner",
|
|
12
|
+
RB_VIDEO_PLAYER = "rbVideoPlayer",
|
|
13
|
+
RB_IN_TEXT = "rbInText",
|
|
12
14
|
BILLBOARD = "billboard",
|
|
13
15
|
LARGE_RECTANGLE = "largeRectangle",
|
|
14
16
|
VERTICAL_RECTANGLE = "verticalRectangle",
|
|
@@ -2,7 +2,9 @@ export * from './collection-banner-without-text-block.template';
|
|
|
2
2
|
export * from './homepage-hero-full-image.template';
|
|
3
3
|
export * from './homepage-hero-three-tile.template';
|
|
4
4
|
export * from './homepage-hero-two-tile.template';
|
|
5
|
+
export * from './in-text.template';
|
|
5
6
|
export * from './large-category-image-tout.template';
|
|
6
7
|
export * from './navigation-banner.template';
|
|
7
8
|
export * from './small-category-image-tout.template';
|
|
8
9
|
export * from './small-discover-tout.template';
|
|
10
|
+
export * from './video-player.template';
|
|
@@ -36,6 +36,14 @@ export interface ISpot {
|
|
|
36
36
|
mobilePrimaryImage?: string;
|
|
37
37
|
mobileSecondaryImage?: string;
|
|
38
38
|
productIds?: Array<string | number>;
|
|
39
|
+
videoUrl?: string;
|
|
40
|
+
videoOverlayImage?: string;
|
|
41
|
+
videoOverlayHeader?: string;
|
|
42
|
+
videoOverlayDescription?: string;
|
|
43
|
+
videoControls?: boolean;
|
|
44
|
+
videoAutoPlay?: boolean;
|
|
45
|
+
videoMute?: boolean;
|
|
46
|
+
videoLoop?: boolean;
|
|
39
47
|
rbProductUpcs?: Array<string | number>;
|
|
40
48
|
rbProductSalsifyGroupings?: Array<string | number>;
|
|
41
49
|
rbProductSalsifyPids?: Array<string | number>;
|
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.25",
|
|
6
6
|
"homepage": "https://docs.liquidcommerce.co/rmn-sdk",
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
8
8
|
"module": "./dist/index.esm.js",
|