@liquidcommercedev/rmn-sdk 1.5.0-beta.24 → 1.5.0-beta.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs +115 -33
- package/dist/index.esm.js +115 -33
- 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";
|
@@ -6157,7 +6159,7 @@ const extractorConfig = {
|
|
6157
6159
|
'article_number',
|
6158
6160
|
'reference',
|
6159
6161
|
'salsifyGrouping',
|
6160
|
-
'grouping'
|
6162
|
+
'grouping',
|
6161
6163
|
],
|
6162
6164
|
price: [
|
6163
6165
|
'price',
|
@@ -15819,6 +15821,8 @@ const SPOT_DIMENSIONS = {
|
|
15819
15821
|
[RMN_SPOT_TYPE.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK]: { width: 887, height: 344 },
|
15820
15822
|
[RMN_SPOT_TYPE.RB_PRODUCT_UPCS]: { width: 1, height: 1 },
|
15821
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 },
|
15822
15826
|
[RMN_SPOT_TYPE.SMALL_RECTANGLE]: { width: 180, height: 150 },
|
15823
15827
|
[RMN_SPOT_TYPE.MEDIUM_RECTANGLE]: { width: 300, height: 250 },
|
15824
15828
|
[RMN_SPOT_TYPE.LARGE_RECTANGLE]: { width: 336, height: 280 },
|
@@ -16668,8 +16672,15 @@ if (typeof window !== 'undefined' && typeof window.customElements !== 'undefined
|
|
16668
16672
|
const clonedSlide = this.slides[index].cloneNode(true);
|
16669
16673
|
// Map clone to original for event handling
|
16670
16674
|
this.cloneToOriginalMap.set(clonedSlide, this.slides[index]);
|
16675
|
+
let isDragging = false;
|
16676
|
+
slideElement.addEventListener('mousedown', () => isDragging = false);
|
16677
|
+
slideElement.addEventListener('mousemove', () => isDragging = true);
|
16671
16678
|
// Add event delegation to the slide container
|
16672
16679
|
slideElement.addEventListener('click', (e) => {
|
16680
|
+
if (isDragging) {
|
16681
|
+
e.stopPropagation();
|
16682
|
+
return;
|
16683
|
+
}
|
16673
16684
|
const original = this.slides[index];
|
16674
16685
|
// Dispatch a new event on the original element
|
16675
16686
|
const cloneEvent = new Event(e.type, { bubbles: true, cancelable: true });
|
@@ -17552,7 +17563,7 @@ function spotHtmlStringToElement(htmlString, spotType) {
|
|
17552
17563
|
return spot;
|
17553
17564
|
}
|
17554
17565
|
|
17555
|
-
const STYLES$
|
17566
|
+
const STYLES$j = ({ primaryImage, secondaryImage }) => `
|
17556
17567
|
<style>
|
17557
17568
|
.content {
|
17558
17569
|
width: 100%;
|
@@ -17650,7 +17661,7 @@ function billboardV1Template(spot) {
|
|
17650
17661
|
${GFONT_PRECONNECT}
|
17651
17662
|
${GFONT_SOURCE_SANS_3}
|
17652
17663
|
${GFONT_CORMORANT}
|
17653
|
-
${STYLES$
|
17664
|
+
${STYLES$j(spot)}
|
17654
17665
|
<div class="content">
|
17655
17666
|
<div class="big-image"></div>
|
17656
17667
|
<div class="main">
|
@@ -17665,7 +17676,7 @@ function billboardV1Template(spot) {
|
|
17665
17676
|
`;
|
17666
17677
|
}
|
17667
17678
|
|
17668
|
-
const STYLES$
|
17679
|
+
const STYLES$i = ({ primaryImage }) => `
|
17669
17680
|
<style>
|
17670
17681
|
.content {
|
17671
17682
|
display: flex;
|
@@ -17739,7 +17750,7 @@ function billboardV2Template(spot) {
|
|
17739
17750
|
${GFONT_PRECONNECT}
|
17740
17751
|
${GFONT_SOURCE_SANS_3}
|
17741
17752
|
${GFONT_CORMORANT}
|
17742
|
-
${STYLES$
|
17753
|
+
${STYLES$i(spot)}
|
17743
17754
|
<div class="content">
|
17744
17755
|
<div class="text-container">
|
17745
17756
|
<h2 class="header">${spot.header}</h2>
|
@@ -17750,7 +17761,7 @@ function billboardV2Template(spot) {
|
|
17750
17761
|
`;
|
17751
17762
|
}
|
17752
17763
|
|
17753
|
-
const STYLES$
|
17764
|
+
const STYLES$h = ({ primaryImage }) => `
|
17754
17765
|
<style>
|
17755
17766
|
.content {
|
17756
17767
|
width: 100%;
|
@@ -17840,7 +17851,7 @@ function billboardV3Template(spot) {
|
|
17840
17851
|
${GFONT_PRECONNECT}
|
17841
17852
|
${GFONT_SOURCE_SANS_3}
|
17842
17853
|
${GFONT_CORMORANT}
|
17843
|
-
${STYLES$
|
17854
|
+
${STYLES$h(spot)}
|
17844
17855
|
<div class="content">
|
17845
17856
|
<div class="text">
|
17846
17857
|
<h2 class="header">${spot.header}</h2>
|
@@ -17852,7 +17863,7 @@ function billboardV3Template(spot) {
|
|
17852
17863
|
`;
|
17853
17864
|
}
|
17854
17865
|
|
17855
|
-
const STYLES$
|
17866
|
+
const STYLES$g = () => `
|
17856
17867
|
<style>
|
17857
17868
|
.content {
|
17858
17869
|
display: inline-block;
|
@@ -17884,7 +17895,7 @@ function inTextV1Template(spot) {
|
|
17884
17895
|
${GFONT_PRECONNECT}
|
17885
17896
|
${GFONT_SOURCE_SANS_3}
|
17886
17897
|
${GFONT_CORMORANT}
|
17887
|
-
${STYLES$
|
17898
|
+
${STYLES$g()}
|
17888
17899
|
<div class="content">
|
17889
17900
|
<span class="header">${spot.header}</span>
|
17890
17901
|
<span class="description">${spot.description}</span>
|
@@ -17892,7 +17903,7 @@ function inTextV1Template(spot) {
|
|
17892
17903
|
`;
|
17893
17904
|
}
|
17894
17905
|
|
17895
|
-
const STYLES$
|
17906
|
+
const STYLES$f = ({ primaryImage }) => `
|
17896
17907
|
<style>
|
17897
17908
|
.content {
|
17898
17909
|
width: 100%;
|
@@ -17974,7 +17985,7 @@ function largeLeaderboardV1Template(spot) {
|
|
17974
17985
|
${GFONT_PRECONNECT}
|
17975
17986
|
${GFONT_SOURCE_SANS_3}
|
17976
17987
|
${GFONT_CORMORANT}
|
17977
|
-
${STYLES$
|
17988
|
+
${STYLES$f(spot)}
|
17978
17989
|
<div class="content">
|
17979
17990
|
<div class="text">
|
17980
17991
|
<h2 class="header">${spot.header}</h2>
|
@@ -17985,7 +17996,7 @@ function largeLeaderboardV1Template(spot) {
|
|
17985
17996
|
`;
|
17986
17997
|
}
|
17987
17998
|
|
17988
|
-
const STYLES$
|
17999
|
+
const STYLES$e = ({ primaryImage }) => `
|
17989
18000
|
<style>
|
17990
18001
|
.content {
|
17991
18002
|
width: 100%;
|
@@ -18061,7 +18072,7 @@ function largeLeaderboardV2Template(spot) {
|
|
18061
18072
|
${GFONT_PRECONNECT}
|
18062
18073
|
${GFONT_SOURCE_SANS_3}
|
18063
18074
|
${GFONT_CORMORANT}
|
18064
|
-
${STYLES$
|
18075
|
+
${STYLES$e(spot)}
|
18065
18076
|
<div class="content">
|
18066
18077
|
<div class="text">
|
18067
18078
|
<h2 class="header">${spot.header}</h2>
|
@@ -18072,7 +18083,7 @@ function largeLeaderboardV2Template(spot) {
|
|
18072
18083
|
`;
|
18073
18084
|
}
|
18074
18085
|
|
18075
|
-
const STYLES$
|
18086
|
+
const STYLES$d = ({ primaryImage }) => `
|
18076
18087
|
<style>
|
18077
18088
|
.content {
|
18078
18089
|
width: 100%;
|
@@ -18120,7 +18131,7 @@ function largeRectangleV1Template(spot) {
|
|
18120
18131
|
${GFONT_PRECONNECT}
|
18121
18132
|
${GFONT_SOURCE_SANS_3}
|
18122
18133
|
${GFONT_CORMORANT}
|
18123
|
-
${STYLES$
|
18134
|
+
${STYLES$d(spot)}
|
18124
18135
|
<div class="content">
|
18125
18136
|
<div class="image"></div>
|
18126
18137
|
<div class="text">
|
@@ -18131,7 +18142,7 @@ function largeRectangleV1Template(spot) {
|
|
18131
18142
|
`;
|
18132
18143
|
}
|
18133
18144
|
|
18134
|
-
const STYLES$
|
18145
|
+
const STYLES$c = ({ primaryImage }) => `
|
18135
18146
|
<style>
|
18136
18147
|
.content {
|
18137
18148
|
width: 100%;
|
@@ -18218,7 +18229,7 @@ function squareV1Template(spot) {
|
|
18218
18229
|
${GFONT_PRECONNECT}
|
18219
18230
|
${GFONT_SOURCE_SANS_3}
|
18220
18231
|
${GFONT_CORMORANT}
|
18221
|
-
${STYLES$
|
18232
|
+
${STYLES$c(spot)}
|
18222
18233
|
<div class="content">
|
18223
18234
|
<div class="text">
|
18224
18235
|
<h2 class="header">${spot.header}</h2>
|
@@ -18229,7 +18240,7 @@ function squareV1Template(spot) {
|
|
18229
18240
|
`;
|
18230
18241
|
}
|
18231
18242
|
|
18232
|
-
const STYLES$
|
18243
|
+
const STYLES$b = ({ primaryImage }) => `
|
18233
18244
|
<style>
|
18234
18245
|
.content {
|
18235
18246
|
width: 100%;
|
@@ -18273,14 +18284,14 @@ function squareV2Template(spot) {
|
|
18273
18284
|
${GFONT_PRECONNECT}
|
18274
18285
|
${GFONT_SOURCE_SANS_3}
|
18275
18286
|
${GFONT_CORMORANT}
|
18276
|
-
${STYLES$
|
18287
|
+
${STYLES$b(spot)}
|
18277
18288
|
<div class="content">
|
18278
18289
|
<span class="header">${spot.header}</span>
|
18279
18290
|
</div>
|
18280
18291
|
`;
|
18281
18292
|
}
|
18282
18293
|
|
18283
|
-
const STYLES$
|
18294
|
+
const STYLES$a = ({ primaryImage }) => `
|
18284
18295
|
<style>
|
18285
18296
|
.content {
|
18286
18297
|
width: 100%;
|
@@ -18338,7 +18349,7 @@ function verticalRectangleV1Template(spot) {
|
|
18338
18349
|
${GFONT_PRECONNECT}
|
18339
18350
|
${GFONT_SOURCE_SANS_3}
|
18340
18351
|
${GFONT_CORMORANT}
|
18341
|
-
${STYLES$
|
18352
|
+
${STYLES$a(spot)}
|
18342
18353
|
<div class="content">
|
18343
18354
|
<div class="text">
|
18344
18355
|
<h2 class="header">${spot.header}</h2>
|
@@ -18349,7 +18360,7 @@ function verticalRectangleV1Template(spot) {
|
|
18349
18360
|
`;
|
18350
18361
|
}
|
18351
18362
|
|
18352
|
-
const STYLES$
|
18363
|
+
const STYLES$9 = ({ primaryImage }) => `
|
18353
18364
|
<style>
|
18354
18365
|
.content {
|
18355
18366
|
width: 100%;
|
@@ -18364,12 +18375,12 @@ const STYLES$8 = ({ primaryImage }) => `
|
|
18364
18375
|
`;
|
18365
18376
|
function wideSkyscraperV1Template(spot) {
|
18366
18377
|
return `
|
18367
|
-
${STYLES$
|
18378
|
+
${STYLES$9(spot)}
|
18368
18379
|
<div class="content"></div>
|
18369
18380
|
`;
|
18370
18381
|
}
|
18371
18382
|
|
18372
|
-
const STYLES$
|
18383
|
+
const STYLES$8 = ({ primaryImage, mobilePrimaryImage = primaryImage }, { prefix }) => `
|
18373
18384
|
<style>
|
18374
18385
|
.${prefix} {
|
18375
18386
|
display: block;
|
@@ -18393,12 +18404,12 @@ const STYLES$7 = ({ primaryImage, mobilePrimaryImage = primaryImage }, { prefix
|
|
18393
18404
|
function rbCollectionBannerWithoutTextBlockTemplate(spot, config) {
|
18394
18405
|
const { prefix = '' } = config;
|
18395
18406
|
return `
|
18396
|
-
${STYLES$
|
18407
|
+
${STYLES$8(spot, config)}
|
18397
18408
|
<div class="${prefix}"></div>
|
18398
18409
|
`;
|
18399
18410
|
}
|
18400
18411
|
|
18401
|
-
const STYLES$
|
18412
|
+
const STYLES$7 = ({ textColor = '#ffffff', ctaTextColor = textColor, ctaBorderColor = ctaTextColor, primaryImage, mobilePrimaryImage = primaryImage, }, { prefix, overlay }) => {
|
18402
18413
|
const linearGradient = generateGradientColor(overlay, 'rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%');
|
18403
18414
|
return `
|
18404
18415
|
<style>
|
@@ -18537,7 +18548,7 @@ function rbHomepageHeroFullImageTemplate(spot, config) {
|
|
18537
18548
|
${GFONT_PRECONNECT}
|
18538
18549
|
${GFONT_SOURCE_SANS_3}
|
18539
18550
|
${GFONT_CORMORANT}
|
18540
|
-
${STYLES$
|
18551
|
+
${STYLES$7(spot, config)}
|
18541
18552
|
<div class="${prefix}">
|
18542
18553
|
<div class="${prefix}__text">
|
18543
18554
|
${spot.header ? `<h2 class="${prefix}__header">${spot.header}</h2>` : ''}
|
@@ -18548,7 +18559,7 @@ function rbHomepageHeroFullImageTemplate(spot, config) {
|
|
18548
18559
|
`;
|
18549
18560
|
}
|
18550
18561
|
|
18551
|
-
const STYLES$
|
18562
|
+
const STYLES$6 = ({ textColor = '#212121', backgroundColor = '#e8e6de', ctaTextColor = textColor, primaryImage, mobilePrimaryImage = primaryImage, secondaryImage, mobileSecondaryImage = secondaryImage, }, { prefix }) => `
|
18552
18563
|
<style>
|
18553
18564
|
.${prefix} {
|
18554
18565
|
width: 100%;
|
@@ -18613,7 +18624,7 @@ const STYLES$5 = ({ textColor = '#212121', backgroundColor = '#e8e6de', ctaTextC
|
|
18613
18624
|
color: inherit;
|
18614
18625
|
margin: 0;
|
18615
18626
|
font-size: 18px;
|
18616
|
-
font-family: "Cormorant";
|
18627
|
+
font-family: "Cormorant", system-ui;
|
18617
18628
|
font-style: normal;
|
18618
18629
|
font-weight: 700;
|
18619
18630
|
line-height: normal;
|
@@ -18725,7 +18736,7 @@ function rbHomepageHeroThreeTileTemplate(spot, config) {
|
|
18725
18736
|
${GFONT_PRECONNECT}
|
18726
18737
|
${GFONT_SOURCE_SANS_3}
|
18727
18738
|
${GFONT_CORMORANT}
|
18728
|
-
${STYLES$
|
18739
|
+
${STYLES$6(spot, config)}
|
18729
18740
|
<div class="${prefix}">
|
18730
18741
|
<div class="${prefix}__content">
|
18731
18742
|
<div class="${prefix}__primary-image"></div>
|
@@ -18742,7 +18753,7 @@ function rbHomepageHeroThreeTileTemplate(spot, config) {
|
|
18742
18753
|
`;
|
18743
18754
|
}
|
18744
18755
|
|
18745
|
-
const STYLES$
|
18756
|
+
const STYLES$5 = ({ textColor = '#212121', backgroundColor = '#e8e6de', ctaTextColor = textColor, primaryImage, mobilePrimaryImage = primaryImage, }, { prefix }) => `
|
18746
18757
|
<style>
|
18747
18758
|
.${prefix} {
|
18748
18759
|
width: 100%;
|
@@ -18884,7 +18895,7 @@ function rbHomepageHeroTwoTileTemplate(spot, config) {
|
|
18884
18895
|
${GFONT_PRECONNECT}
|
18885
18896
|
${GFONT_SOURCE_SANS_3}
|
18886
18897
|
${GFONT_CORMORANT}
|
18887
|
-
${STYLES$
|
18898
|
+
${STYLES$5(spot, config)}
|
18888
18899
|
<div class="${prefix}">
|
18889
18900
|
<div class="${prefix}__content">
|
18890
18901
|
<div class="${prefix}__text">
|
@@ -18898,6 +18909,37 @@ function rbHomepageHeroTwoTileTemplate(spot, config) {
|
|
18898
18909
|
`;
|
18899
18910
|
}
|
18900
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
|
+
|
18901
18943
|
const STYLES$3 = ({ textColor = '#ffffff', ctaTextColor = textColor, ctaBorderColor = ctaTextColor, primaryImage, mobilePrimaryImage = primaryImage, }, { prefix, overlay }) => {
|
18902
18944
|
const linearGradient = generateGradientColor(overlay, 'rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%');
|
18903
18945
|
return `
|
@@ -19254,6 +19296,13 @@ const SPOT_TEMPLATE_HTML_ELEMENT = (spot, config) => {
|
|
19254
19296
|
[RMN_SPOT_TYPE.RB_NAVIGATION_BANNER]: {
|
19255
19297
|
rbNavigationBanner: rbNavigationBannerTemplate,
|
19256
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
|
+
},
|
19257
19306
|
[RMN_SPOT_TYPE.RB_PRODUCT_UPCS]: {
|
19258
19307
|
rbProductUpcs: () => '', // No template for this spot type, it will be handled by ReserveBar App.
|
19259
19308
|
},
|
@@ -20189,6 +20238,39 @@ const SPOT_EVENTS_EXAMPLE = [
|
|
20189
20238
|
productIds: [107, 108, 109, 110, 111],
|
20190
20239
|
},
|
20191
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
|
+
],
|
20192
20274
|
});
|
20193
20275
|
({
|
20194
20276
|
banner: [],
|
@@ -20549,7 +20631,7 @@ class LiquidCommerceRmnClient {
|
|
20549
20631
|
const spotElement = this.elementService.createSpotElement({
|
20550
20632
|
content,
|
20551
20633
|
config: {
|
20552
|
-
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,
|
20553
20635
|
spot: spot.spot,
|
20554
20636
|
width: spot.width,
|
20555
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",
|