@cleartrip/ct-platform-rtbs 1.0.1-beta.0
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/Card/index.d.ts +5 -0
- package/dist/Card/index.d.ts.map +1 -0
- package/dist/RTBs.d.ts +5 -0
- package/dist/RTBs.d.ts.map +1 -0
- package/dist/RTBs.types.d.ts +16 -0
- package/dist/RTBs.types.d.ts.map +1 -0
- package/dist/constants.d.ts +13 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/ct-platform-rtbs.cjs.js +2 -0
- package/dist/ct-platform-rtbs.cjs.js.map +1 -0
- package/dist/ct-platform-rtbs.esm.js +2 -0
- package/dist/ct-platform-rtbs.esm.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/package.json +31 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/RTBs/src/Card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAMhC,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA0ChC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
package/dist/RTBs.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RTBs.d.ts","sourceRoot":"","sources":["../packages/components/RTBs/src/RTBs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAerD,OAAO,EAAa,QAAQ,EAAE,MAAM,cAAc,CAAC;AAInD,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CA4C5B,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MerchCarouselProps } from '@cleartrip/ct-platform-merch-carousel';
|
|
2
|
+
export interface CardProps {
|
|
3
|
+
title: string;
|
|
4
|
+
bgColor: string;
|
|
5
|
+
sideImage: string;
|
|
6
|
+
subtitles: string[];
|
|
7
|
+
bottomImage: string;
|
|
8
|
+
sideImgAltText: string;
|
|
9
|
+
bottomImageAltText: string;
|
|
10
|
+
}
|
|
11
|
+
export interface RTBProps {
|
|
12
|
+
title?: string;
|
|
13
|
+
cards?: CardProps[];
|
|
14
|
+
carouselProps?: MerchCarouselProps<CardProps>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=RTBs.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RTBs.types.d.ts","sourceRoot":"","sources":["../packages/components/RTBs/src/RTBs.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAE3E,MAAM,WAAW,SAAS;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,QAAQ;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IAEpB,aAAa,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;CACjD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const DefaultProps: {
|
|
2
|
+
title: string;
|
|
3
|
+
cardsData: {
|
|
4
|
+
title: string;
|
|
5
|
+
bgColor: string;
|
|
6
|
+
subtitles: string[];
|
|
7
|
+
sideImage: string;
|
|
8
|
+
bottomImage: string;
|
|
9
|
+
sideImgAltText: string;
|
|
10
|
+
bottomImageAltText: string;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../packages/components/RTBs/src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;CAyDxB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("tslib"),t=require("react/jsx-runtime"),a=require("react"),i=require("@cleartrip/ct-platform-merch-carousel"),o=require("@cleartrip/ct-design-theme"),r=require("@cleartrip/ct-design-typography"),s=require("@cleartrip/ct-platform-widget-manager");function l(e,t){void 0===t&&(t={});var a=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===a&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var n="index-module_container__R8KqS",m="index-module_leftContainer__NzVff",d="index-module_bottomImage__zP7vx";l(".index-module_container__R8KqS{border-radius:12px;display:flex;height:144px;width:292px}.index-module_leftContainer__NzVff{display:flex;flex-direction:column;justify-content:space-between;padding:20px 0 16px 16px}.index-module_sideImgContainer__Cd5dS{height:144px;width:154px}.index-module_bottomImage__zP7vx{height:auto!important;object-fit:none!important;width:auto!important}");var g=function(a){var i=a.title,o=a.bgColor,s=a.subtitles,l=a.sideImage,g=a.bottomImage,c=a.sideImgAltText,u=a.bottomImageAltText;return t.jsxs("div",e.__assign({className:n,style:{backgroundColor:o}},{children:[t.jsxs("div",e.__assign({className:m},{children:[t.jsxs("div",{children:[t.jsx(r.Typography,e.__assign({variant:r.TypographyVariant.HM3},{children:i})),s.map((function(a){return t.jsx(r.Typography,e.__assign({variant:r.TypographyVariant.B3},{children:a}),a)}))]}),t.jsx("img",{src:g,fetchPriority:"low",alt:u,className:d})]})),t.jsx("img",{width:154,height:144,src:l,alt:c})]}))},c={title:"Booking on Cleartrip is Thala’s choice!",cardsData:[{title:"Flights",bgColor:"#42B359",subtitles:["Free cancellation","& rescheduling","Starting ₹99"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Dhoni%201.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20white.png",sideImgAltText:"RTB Side Image 1",bottomImageAltText:"RTB Bottom Image 1"},{title:"Hotels",bgColor:"#0f6bff",subtitles:["Fully refundable*","till check-in time.","Starting ₹49"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Dhoni%202.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20white.png",sideImgAltText:"RTB Side Image 2",bottomImageAltText:"RTB Bottom Image 2"},{title:"Buses",bgColor:"#FFDC5F",subtitles:["Fully refundable*","till 6hrs before","departure"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Frame%201410121086.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20purple.png",sideImgAltText:"RTB Side Image 3",bottomImageAltText:"RTB Bottom Image 3"},{title:"Medicancel",bgColor:"#FF4F17",subtitles:["Get full refund","when you cancel","for medical","reasons, for free!"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/dhoni%204.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_115,h_20/offermgmt/images/banner/medicancel%20logo%20white.png",sideImgAltText:"RTB Side Image 4",bottomImageAltText:"RTB Bottom Image 4"}]},u="index-module_title__SB457";l(".index-module_title__SB457{padding-bottom:16px}");exports.RTBWidget=function(l){var n=l.cards,m=l.title,d=l.carouselProps,p=a.useState(null!=m?m:c.title)[0],_=a.useState(null!=n?n:c.cardsData)[0],h=a.useCallback((function(a){return(null==a?void 0:a.slideData)?t.jsx(g,e.__assign({},a.slideData),a.slideData.title):t.jsx(t.Fragment,{})}),[]),f=a.useCallback((function(){return{width:"292px",height:"144px"}}),[]);return t.jsxs(o.ThemeProvider,{children:[t.jsx(r.Typography,e.__assign({variant:r.TypographyVariant.HM3,className:"c-neutral-900 ".concat(u)},{children:p})),t.jsx(i.MerchCarousel,e.__assign({},s.MerchCarouselPeekingProps,{slides:_,lazyWidget:!0,isAutoplay:!1,spacingBetween:12,slidesToDisplay:"auto"},d,{getSlideStyles:f,renderSlideItem:h}))]})};
|
|
2
|
+
//# sourceMappingURL=ct-platform-rtbs.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ct-platform-rtbs.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/RTBs/src/Card/index.tsx","../packages/components/RTBs/src/constants.ts","../packages/components/RTBs/src/RTBs.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null,null],"names":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","RTBCard","_a","title","bgColor","subtitles","sideImage","bottomImage","sideImgAltText","bottomImageAltText","_jsxs","className","styles","backgroundColor","children","__assign","_jsx","Typography","variant","TypographyVariant","HM3","map","subtitle","B3","jsx","src","fetchPriority","alt","width","height","DefaultProps","cardsData","cards","carouselProps","_title","useState","_cards","renderSlideItem","useCallback","data","slideData","_Fragment","getSlideStyles","jsxs","ThemeProvider","concat","MerchCarousel","MerchCarouselPeekingProps","slides","lazyWidget","isAutoplay","spacingBetween","slidesToDisplay"],"mappings":"iRAAA,SAASA,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,ifCjBA,IAAMe,EAA+B,SAACC,GAClC,IAAAC,UACAC,YACAC,cACAC,EAASJ,EAAAI,UACTC,EAAWL,EAAAK,YACXC,EAAcN,EAAAM,eACdC,EAAkBP,EAAAO,mBAElB,OACIC,yBAAKC,UAAWC,EAAkBpB,MAAO,CAAEqB,gBAAiBT,IAAS,CAAAU,SAAA,CACjEJ,OAAK,MAAAK,EAAAA,SAAA,CAAAJ,UAAWC,GAAoB,CAAAE,SAAA,CAChCJ,EAAAA,KACI,MAAA,CAAAI,SAAA,CAAAE,MAACC,EAAAA,WAAWF,EAAAA,SAAA,CAAAG,QAASC,EAAiBA,kBAACC,KAClC,CAAAN,SAAAX,KAEJE,EAAUgB,KAAI,SAACC,GAAa,OACzBN,MAACC,aAAUF,EAAAA,SAAA,CAEPG,QAASC,EAAAA,kBAAkBI,IAE1B,CAAAT,SAAAQ,IAHIA,EAKZ,OAGLN,EAAAQ,IAAA,MAAA,CACIC,IAAKlB,EACLm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,SAAAoB,KAGLlB,MAAC8B,EAAAA,cACO/B,EAAAA,SAAA,CAAA,EAAAgC,4BACJ,CAAAC,OAAQZ,EACRa,YAAY,EACZC,YAAY,EACZC,eAAgB,GAChBC,gBAAgB,QACZnB,EACJ,CAAAS,eAAgBA,EAChBL,gBAAiBA,OAIjC","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as t}from"tslib";import{jsxs as e,jsx as a,Fragment as i}from"react/jsx-runtime";import{useState as o,useCallback as l}from"react";import{MerchCarousel as m}from"@cleartrip/ct-platform-merch-carousel";import{ThemeProvider as r}from"@cleartrip/ct-design-theme";import{Typography as n,TypographyVariant as d}from"@cleartrip/ct-design-typography";import{MerchCarouselPeekingProps as s}from"@cleartrip/ct-platform-widget-manager";function c(t,e){void 0===e&&(e={});var a=e.insertAt;if(t&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===a&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}var g="index-module_container__R8KqS",u="index-module_leftContainer__NzVff",p="index-module_bottomImage__zP7vx";c(".index-module_container__R8KqS{border-radius:12px;display:flex;height:144px;width:292px}.index-module_leftContainer__NzVff{display:flex;flex-direction:column;justify-content:space-between;padding:20px 0 16px 16px}.index-module_sideImgContainer__Cd5dS{height:144px;width:154px}.index-module_bottomImage__zP7vx{height:auto!important;object-fit:none!important;width:auto!important}");var f=function(i){var o=i.title,l=i.bgColor,m=i.subtitles,r=i.sideImage,s=i.bottomImage,c=i.sideImgAltText,f=i.bottomImageAltText;return e("div",t({className:g,style:{backgroundColor:l}},{children:[e("div",t({className:u},{children:[e("div",{children:[a(n,t({variant:d.HM3},{children:o})),m.map((function(e){return a(n,t({variant:d.B3},{children:e}),e)}))]}),a("img",{src:s,fetchPriority:"low",alt:f,className:p})]})),a("img",{width:154,height:144,src:r,alt:c})]}))},h={title:"Booking on Cleartrip is Thala’s choice!",cardsData:[{title:"Flights",bgColor:"#42B359",subtitles:["Free cancellation","& rescheduling","Starting ₹99"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Dhoni%201.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20white.png",sideImgAltText:"RTB Side Image 1",bottomImageAltText:"RTB Bottom Image 1"},{title:"Hotels",bgColor:"#0f6bff",subtitles:["Fully refundable*","till check-in time.","Starting ₹49"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Dhoni%202.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20white.png",sideImgAltText:"RTB Side Image 2",bottomImageAltText:"RTB Bottom Image 2"},{title:"Buses",bgColor:"#FFDC5F",subtitles:["Fully refundable*","till 6hrs before","departure"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/Frame%201410121086.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_118,h_20/offermgmt/images/banner/clearchoice%20purple.png",sideImgAltText:"RTB Side Image 3",bottomImageAltText:"RTB Bottom Image 3"},{title:"Medicancel",bgColor:"#FF4F17",subtitles:["Get full refund","when you cancel","for medical","reasons, for free!"],sideImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_154,h_144,dpr_2/offermgmt/images/banner/dhoni%204.png",bottomImage:"https://fastui.cltpstatic.com/image/upload/f_auto,q_auto,w_115,h_20/offermgmt/images/banner/medicancel%20logo%20white.png",sideImgAltText:"RTB Side Image 4",bottomImageAltText:"RTB Bottom Image 4"}]},_="index-module_title__SB457";c(".index-module_title__SB457{padding-bottom:16px}");var b=function(c){var g=c.cards,u=c.title,p=c.carouselProps,b=o(null!=u?u:h.title)[0],x=o(null!=g?g:h.cardsData)[0],I=l((function(e){return(null==e?void 0:e.slideData)?a(f,t({},e.slideData),e.slideData.title):a(i,{})}),[]),T=l((function(){return{width:"292px",height:"144px"}}),[]);return e(r,{children:[a(n,t({variant:d.HM3,className:"c-neutral-900 ".concat(_)},{children:b})),a(m,t({},s,{slides:x,lazyWidget:!0,isAutoplay:!1,spacingBetween:12,slidesToDisplay:"auto"},p,{getSlideStyles:T,renderSlideItem:I}))]})};export{b as RTBWidget};
|
|
2
|
+
//# sourceMappingURL=ct-platform-rtbs.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ct-platform-rtbs.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/RTBs/src/Card/index.tsx","../packages/components/RTBs/src/constants.ts","../packages/components/RTBs/src/RTBs.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null,null],"names":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","RTBCard","_a","title","bgColor","subtitles","sideImage","bottomImage","sideImgAltText","bottomImageAltText","_jsxs","className","styles","backgroundColor","children","__assign","_jsx","Typography","variant","TypographyVariant","HM3","map","subtitle","B3","src","fetchPriority","alt","width","height","DefaultProps","cardsData","RTBs","cards","carouselProps","_title","useState","_cards","renderSlideItem","useCallback","data","slideData","_Fragment","getSlideStyles","ThemeProvider","concat","MerchCarousel","MerchCarouselPeekingProps","slides","lazyWidget","isAutoplay","spacingBetween","slidesToDisplay"],"mappings":"0bAAA,SAASA,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,ifCjBA,IAAMe,EAA+B,SAACC,GAClC,IAAAC,UACAC,YACAC,cACAC,EAASJ,EAAAI,UACTC,EAAWL,EAAAK,YACXC,EAAcN,EAAAM,eACdC,EAAkBP,EAAAO,mBAElB,OACIC,WAAKC,UAAWC,EAAkBpB,MAAO,CAAEqB,gBAAiBT,IAAS,CAAAU,SAAA,CACjEJ,EAAK,MAAAK,EAAA,CAAAJ,UAAWC,GAAoB,CAAAE,SAAA,CAChCJ,EACI,MAAA,CAAAI,SAAA,CAAAE,EAACC,EAAWF,EAAA,CAAAG,QAASC,EAAkBC,KAClC,CAAAN,SAAAX,KAEJE,EAAUgB,KAAI,SAACC,GAAa,OACzBN,EAACC,EAAUF,EAAA,CAEPG,QAASC,EAAkBI,IAE1B,CAAAT,SAAAQ,IAHIA,EAKZ,OAGLN,EAAA,MAAA,CACIQ,IAAKjB,EACLkB,cAAc,MACdC,IAAKjB,EACLE,UAAWC,QAInBI,SACIW,MAAO,IACPC,OAAQ,IACRJ,IAAKlB,EACLoB,IAAKlB,OAIrB,EClDaqB,EAAe,CACxB1B,MAAO,0CACP2B,UAAW,CACP,CACI3B,M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dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/RTBs/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9C,cAAc,cAAc,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cleartrip/ct-platform-rtbs",
|
|
3
|
+
"version": "1.0.1-beta.0",
|
|
4
|
+
"description": "RTB Component",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"main": "dist/ct-platform-rtbs.cjs.js",
|
|
7
|
+
"module": "dist/ct-platform-rtbs.esm.js",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@cleartrip/ct-design-theme": "3.7.0",
|
|
14
|
+
"@cleartrip/ct-design-typography": "3.7.0",
|
|
15
|
+
"classnames": "^2.5.1",
|
|
16
|
+
"@cleartrip/ct-platform-merch-carousel": "3.1.1-beta.3",
|
|
17
|
+
"@cleartrip/ct-platform-widget-manager": "3.1.1-beta.3"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"react": ">=16.8.0",
|
|
21
|
+
"react-dom": ">=16.8.0"
|
|
22
|
+
},
|
|
23
|
+
"author": "Cleartrip",
|
|
24
|
+
"license": "ISC",
|
|
25
|
+
"scripts": {
|
|
26
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
27
|
+
"watch-package": "rollup -c -w",
|
|
28
|
+
"build-package": "rollup -c",
|
|
29
|
+
"build-package:clean": "rm -rf dist && rollup -c"
|
|
30
|
+
}
|
|
31
|
+
}
|