@liquidcommercedev/rmn-sdk 1.1.7 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [1.2.0](https://github.com/liquidcommerce/rmn-sdk/compare/v1.1.8...v1.2.0) (2024-09-27)
2
+
3
+
4
+ ### Features
5
+
6
+ * fixed fluid ([#31](https://github.com/liquidcommerce/rmn-sdk/issues/31)) ([c72433a](https://github.com/liquidcommerce/rmn-sdk/commit/c72433a97b3d53f1c30fb2a50b48badbe93b0658))
7
+
8
+ ## [1.1.8](https://github.com/liquidcommerce/rmn-sdk/compare/v1.1.7...v1.1.8) (2024-09-27)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * new rb templates ([#30](https://github.com/liquidcommerce/rmn-sdk/issues/30)) ([7137d13](https://github.com/liquidcommerce/rmn-sdk/commit/7137d13513a0f9fa0175ec1e96331852e372aa94))
14
+
1
15
  ## [1.1.7](https://github.com/liquidcommerce/rmn-sdk/compare/v1.1.6...v1.1.7) (2024-09-24)
2
16
 
3
17
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,12 @@
1
1
  declare enum RMN_SPOT_TYPE {
2
+ RB_HOMEPAGE_HERO_THREE_TILE = "rbHomepageHeroThreeTile",
3
+ RB_HOMEPAGE_HERO_FULL_IMAGE = "rbHomepageHeroFullImage",
4
+ RB_LARGE_CATEGORY_IMAGE_TOUT = "rbLargeCategoryImageTout",
5
+ RB_SMALL_DISCOVER_TOUT = "rbSmallDiscoverTout",
6
+ RB_SMALL_CATEGORY_IMAGE_TOUT = "rbSmallCategoryImageTout",
7
+ RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK = "rbCollectionBannerWithoutTextBlock",
8
+ RB_PRODUCT_UPCS = "rbProductUpcs",
9
+ RB_NAVIGATION_BANNER = "rbNavigationBanner",
2
10
  BILLBOARD = "billboard",
3
11
  LARGE_RECTANGLE = "largeRectangle",
4
12
  VERTICAL_RECTANGLE = "verticalRectangle",
@@ -6,9 +14,6 @@ declare enum RMN_SPOT_TYPE {
6
14
  LARGE_LEADERBOARD = "largeLeaderboard",
7
15
  WIDE_SKYSCRAPER = "wideSkyscraper",
8
16
  IN_TEXT = "inText",
9
- /**
10
- * CURRENTLY NOT SUPPORTED YET
11
- * */
12
17
  SMALL_RECTANGLE = "smallRectangle",
13
18
  MEDIUM_RECTANGLE = "mediumRectangle",
14
19
  BANNER = "banner",
@@ -38,10 +43,7 @@ declare enum RMN_FILTER_PROPERTIES {
38
43
  TYPE = "type",
39
44
  CLASSIFICATION = "classification",
40
45
  HOLIDAY = "holiday",
41
- PUBLISHERS = "publishers",
42
- DEVICE_TYPE = "deviceType",
43
- BROWSER_TYPE = "browserType",
44
- LOCATION = "location"
46
+ PUBLISHERS = "publishers"
45
47
  }
46
48
 
47
49
  declare enum RMN_ENV {
@@ -68,7 +70,15 @@ type SpotFilterType = {
68
70
  } & Omit<RmnFilterType, RMN_FILTER_PROPERTIES.KEYWORDS>;
69
71
  type SpotIdentifierType = RMN_SPOT_TYPE | `${RMN_SPOT_TYPE}${number}`;
70
72
  type RmnSpotType = RMN_SPOT_TYPE | string | SpotFilterType;
71
- type SpotVariantType = `${RMN_SPOT_TYPE}V${number}`;
73
+ type RBSpotTypeKeys = keyof {
74
+ [K in keyof typeof RMN_SPOT_TYPE as K extends `RB_${string}` ? K : never]: (typeof RMN_SPOT_TYPE)[K];
75
+ };
76
+ type IABSpotTypeKeys = keyof {
77
+ [K in keyof typeof RMN_SPOT_TYPE as K extends `RB_${string}` ? never : K]: (typeof RMN_SPOT_TYPE)[K];
78
+ };
79
+ type RBSpotTypeValues = (typeof RMN_SPOT_TYPE)[RBSpotTypeKeys];
80
+ type IABSpotTypeValues = (typeof RMN_SPOT_TYPE)[IABSpotTypeKeys];
81
+ type SpotVariantType = RBSpotTypeValues | `${IABSpotTypeValues}V${number}`;
72
82
  type SpotEventType = Record<number, string>;
73
83
 
74
84
  interface ISpotSelectionParams {
@@ -83,12 +93,15 @@ interface ISpot {
83
93
  variant: SpotVariantType;
84
94
  width: number;
85
95
  height: number;
86
- headline?: string;
87
- body?: string;
88
- image?: string;
89
- image2?: string;
90
- buttonText?: string;
91
- upc?: string;
96
+ preHeader?: string;
97
+ header?: string;
98
+ description?: string;
99
+ primaryImage?: string;
100
+ secondaryImage?: string;
101
+ mobilePrimaryImage?: string;
102
+ mobileSecondaryImage?: string;
103
+ ctaText?: string;
104
+ productUpcs?: string[];
92
105
  customData?: Record<string, any>;
93
106
  }
94
107
  type ISpots = Record<SpotIdentifierType, ISpot[]>;