@cleartrip/ct-design-story-end-slide 1.8.0-SNAPSHOT-testTypographyStyles.0 → 1.8.0-SNAPSHOT-e2eComponentsTest.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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("@cleartrip/ct-design-story"),o=require("@cleartrip/ct-design-container"),i=n.forwardRef(function(i,s){var a=i.loop,u=i.storyNodes,c=i.lastNode,l=i.preloadStoryCount,d=void 0===l?1:l,y=i.prevTapPercent,f=i.handleStoryEnd,p=i.handleStoryStart,S=i.handleNext,h=i.handlePrevious,g=i.storyEndSlideContainerStyles,v=i.storyContainerStyles,x=n.useState(!1),C=x[0],_=x[1],j=n.useState(0),q=j[0],N=j[1],m=function(){_(!0),N(0)},E=function(e){e!==u.length||a||m(),N(e)};n.useImperativeHandle(s,function(){return{handleReplayClick:function(){m(),_(!1)}}});return t.jsxs(o.Container,e.__assign({css:e.__assign({display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden"},g)},{children:[C?c:!!u.length&&t.jsx(r.Story,e.__assign({stories:function(e){return null==e?void 0:e.map(function(e,t){return{content:function(){return e}}})}(u),prevTapPercent:y,currentIndex:q,loop:a,keyboardNavigation:!0,storyContainerStyles:v,onStoryEnd:function(e,t){E(e+1),f&&f(e,t)},onStoryStart:p,onNext:function(){E(q+1),S&&S()},onPrevious:function(){E(q-1),h&&h()}},i)),t.jsx(o.Container,e.__assign({css:{height:"1px",width:"1px",position:"absolute",opacity:0}},{children:u.filter(function(e,t){return t>q+d-1})[0]}))]}))});exports.StoryEndSlide=i;
|
|
1
|
+
"use strict";var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("@cleartrip/ct-design-story"),o=require("@cleartrip/ct-design-container"),i=n.forwardRef((function(i,s){var a=i.loop,u=i.storyNodes,c=i.lastNode,l=i.preloadStoryCount,d=void 0===l?1:l,y=i.prevTapPercent,f=i.handleStoryEnd,p=i.handleStoryStart,S=i.handleNext,h=i.handlePrevious,g=i.storyEndSlideContainerStyles,v=i.storyContainerStyles,x=n.useState(!1),C=x[0],_=x[1],j=n.useState(0),q=j[0],N=j[1],m=function(){_(!0),N(0)},E=function(e){e!==u.length||a||m(),N(e)};n.useImperativeHandle(s,(function(){return{handleReplayClick:function(){m(),_(!1)}}}));return t.jsxs(o.Container,e.__assign({css:e.__assign({display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden"},g)},{children:[C?c:!!u.length&&t.jsx(r.Story,e.__assign({stories:function(e){return null==e?void 0:e.map((function(e,t){return{content:function(){return e}}}))}(u),prevTapPercent:y,currentIndex:q,loop:a,keyboardNavigation:!0,storyContainerStyles:v,onStoryEnd:function(e,t){E(e+1),f&&f(e,t)},onStoryStart:p,onNext:function(){E(q+1),S&&S()},onPrevious:function(){E(q-1),h&&h()}},i)),t.jsx(o.Container,e.__assign({css:{height:"1px",width:"1px",position:"absolute",opacity:0}},{children:u.filter((function(e,t){return t>q+d-1}))[0]}))]}))}));exports.StoryEndSlide=i;
|
|
2
2
|
//# sourceMappingURL=ct-design-story-end-slide.browser.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-story-end-slide.browser.cjs.js","sources":["../packages/components/StoryEndSlide/src/StoryEndSlide.tsx"],"sourcesContent":[null],"names":["StoryEndSlide","forwardRef","props","ref","loop","storyNodes","lastNode","_a","preloadStoryCount","prevTapPercent","handleStoryEnd","handleStoryStart","handleNext","handlePrevious","storyEndSlideContainerStyles","storyContainerStyles","_b","useState","showLastNode","setShowLastNode","_c","currentStoryIndex","setCurrentStoryIndex","displayLastNode","handleStoryIndexChange","updatedIndex","length","useImperativeHandle","handleReplayClick","_jsxs","jsxs","Container","__assign","css","display","justifyContent","alignItems","overflow","children","_jsx","jsx","Story","stories","map","node","i","content","processsStoryNodes","currentIndex","keyboardNavigation","onStoryEnd","s","st","onStoryStart","onNext","onPrevious","height","width","position","opacity","filter","_","index"],"mappings":"0KAMMA,EAAgBC,EAAUA,
|
|
1
|
+
{"version":3,"file":"ct-design-story-end-slide.browser.cjs.js","sources":["../packages/components/StoryEndSlide/src/StoryEndSlide.tsx"],"sourcesContent":[null],"names":["StoryEndSlide","forwardRef","props","ref","loop","storyNodes","lastNode","_a","preloadStoryCount","prevTapPercent","handleStoryEnd","handleStoryStart","handleNext","handlePrevious","storyEndSlideContainerStyles","storyContainerStyles","_b","useState","showLastNode","setShowLastNode","_c","currentStoryIndex","setCurrentStoryIndex","displayLastNode","handleStoryIndexChange","updatedIndex","length","useImperativeHandle","handleReplayClick","_jsxs","jsxs","Container","__assign","css","display","justifyContent","alignItems","overflow","children","_jsx","jsx","Story","stories","map","node","i","content","processsStoryNodes","currentIndex","keyboardNavigation","onStoryEnd","s","st","onStoryStart","onNext","onPrevious","height","width","position","opacity","filter","_","index"],"mappings":"0KAMMA,EAAgBC,EAAUA,YAAC,SAACC,EAA2BC,GAEzD,IAAAC,EAWEF,EAXEE,KACJC,EAUEH,EAAKG,WATPC,EASEJ,EATMI,SACRC,EAQEL,EARmBM,kBAArBA,OAAiB,IAAAD,EAAG,EAACA,EACrBE,EAOEP,EAPYO,eACdC,EAMER,EANYQ,eACdC,EAKET,EAAKS,iBAJPC,EAIEV,EAJQU,WACVC,EAGEX,EAAKW,eAFPC,EAEEZ,EAF0BY,6BAC5BC,EACEb,EAAKa,qBAEHC,EAAkCC,EAAAA,UAAS,GAA1CC,EAAYF,EAAA,GAAEG,EAAeH,EAAA,GAC9BI,EAA4CH,EAAAA,SAAS,GAApDI,EAAiBD,EAAA,GAAEE,EAAoBF,EAAA,GAYxCG,EAAkB,WACtBJ,GAAgB,GAChBG,EAAqB,EACvB,EAEME,EAAyB,SAACC,GAC1BA,IAAiBpB,EAAWqB,QAAWtB,GACzCmB,IAEFD,EAAqBG,EACvB,EAEAE,sBAAoBxB,GAAK,WAAM,MAAC,CAC9ByB,kBAAiB,WACfL,IACAJ,GAAgB,EACjB,EACD,IAiBF,OACEU,EAACC,KAAAC,EAASA,UACRC,WAAA,CAAAC,gBACEC,QAAS,OACTC,eAAgB,SAChBC,WAAY,SACZC,SAAU,UACPvB,IAA4B,CAAAwB,SAAA,CAGhCpB,EACGZ,IACED,EAAWqB,QACXa,EAAAC,IAACC,EAAKA,MAAAT,EAAAA,SAAA,CACJU,QA1De,SAACrC,GAC1B,OAAOA,aAAA,EAAAA,EAAYsC,KAAI,SAACC,EAAMC,GAC5B,MAAO,CACLC,QAAS,WACP,OAAOF,CACR,EAEL,GACF,CAkDqBG,CAAmB1C,GAC5BI,eAAgBA,EAChBuC,aAAc3B,EACdjB,KAAMA,EACN6C,sBACAlC,qBAAsBA,EACtBmC,WAnCa,SAACC,EAAGC,GAC3B5B,EAAuB2B,EAAI,GAC3BzC,GAAkBA,EAAeyC,EAAGC,EACtC,EAiCYC,aAAc1C,EACd2C,OAhCQ,WAClB9B,EAAuBH,EAAoB,GAC3CT,GAAcA,GAChB,EA8BY2C,WA5BQ,WAClB/B,EAAuBH,EAAoB,GAC3CR,GAAkBA,GACpB,GA0BgBX,IAKZqC,EAACC,IAAAT,EAASA,sBAACE,IAAK,CAAEuB,OAAQ,MAAOC,MAAO,MAAOC,SAAU,WAAYC,QAAS,IAAG,CAAArB,SAC9EjC,EAAWuD,QAAO,SAACC,EAAGC,GAAU,OAAAA,EAAQzC,EAAoBb,EAAoB,CAAC,IAAE,SAI5F"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsxs as n,jsx as r}from"react/jsx-runtime";import{forwardRef as o,useState as e,useImperativeHandle as i}from"react";import{Story as c}from"@cleartrip/ct-design-story";import{Container as a}from"@cleartrip/ct-design-container";var l=o(function(o,l){var s=o.loop,u=o.storyNodes,d=o.lastNode,p=o.preloadStoryCount,f=void 0===p?1:p,y=o.prevTapPercent,h=o.handleStoryEnd,m=o.handleStoryStart,S=o.handleNext,v=o.handlePrevious,x=o.storyEndSlideContainerStyles,g=o.storyContainerStyles,C=e(!1),N=C[0],P=C[1],b=e(0),E=b[0],j=b[1],k=function(){P(!0),j(0)},w=function(t){t!==u.length||s||k(),j(t)};i(l,function(){return{handleReplayClick:function(){k(),P(!1)}}});return n(a,t({css:t({display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden"},x)},{children:[N?d:!!u.length&&r(c,t({stories:function(t){return null==t?void 0:t.map(function(t,n){return{content:function(){return t}}})}(u),prevTapPercent:y,currentIndex:E,loop:s,keyboardNavigation:!0,storyContainerStyles:g,onStoryEnd:function(t,n){w(t+1),h&&h(t,n)},onStoryStart:m,onNext:function(){w(E+1),S&&S()},onPrevious:function(){w(E-1),v&&v()}},o)),r(a,t({css:{height:"1px",width:"1px",position:"absolute",opacity:0}},{children:u.filter(function(t,n){return n>E+f-1})[0]}))]}))});export{l as StoryEndSlide};
|
|
1
|
+
import{__assign as t}from"tslib";import{jsxs as n,jsx as r}from"react/jsx-runtime";import{forwardRef as o,useState as e,useImperativeHandle as i}from"react";import{Story as c}from"@cleartrip/ct-design-story";import{Container as a}from"@cleartrip/ct-design-container";var l=o((function(o,l){var s=o.loop,u=o.storyNodes,d=o.lastNode,p=o.preloadStoryCount,f=void 0===p?1:p,y=o.prevTapPercent,h=o.handleStoryEnd,m=o.handleStoryStart,S=o.handleNext,v=o.handlePrevious,x=o.storyEndSlideContainerStyles,g=o.storyContainerStyles,C=e(!1),N=C[0],P=C[1],b=e(0),E=b[0],j=b[1],k=function(){P(!0),j(0)},w=function(t){t!==u.length||s||k(),j(t)};i(l,(function(){return{handleReplayClick:function(){k(),P(!1)}}}));return n(a,t({css:t({display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden"},x)},{children:[N?d:!!u.length&&r(c,t({stories:function(t){return null==t?void 0:t.map((function(t,n){return{content:function(){return t}}}))}(u),prevTapPercent:y,currentIndex:E,loop:s,keyboardNavigation:!0,storyContainerStyles:g,onStoryEnd:function(t,n){w(t+1),h&&h(t,n)},onStoryStart:m,onNext:function(){w(E+1),S&&S()},onPrevious:function(){w(E-1),v&&v()}},o)),r(a,t({css:{height:"1px",width:"1px",position:"absolute",opacity:0}},{children:u.filter((function(t,n){return n>E+f-1}))[0]}))]}))}));export{l as StoryEndSlide};
|
|
2
2
|
//# sourceMappingURL=ct-design-story-end-slide.browser.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-story-end-slide.browser.esm.js","sources":["../packages/components/StoryEndSlide/src/StoryEndSlide.tsx"],"sourcesContent":[null],"names":["StoryEndSlide","forwardRef","props","ref","loop","storyNodes","lastNode","_a","preloadStoryCount","prevTapPercent","handleStoryEnd","handleStoryStart","handleNext","handlePrevious","storyEndSlideContainerStyles","storyContainerStyles","_b","useState","showLastNode","setShowLastNode","_c","currentStoryIndex","setCurrentStoryIndex","displayLastNode","handleStoryIndexChange","updatedIndex","length","useImperativeHandle","handleReplayClick","_jsxs","Container","__assign","css","display","justifyContent","alignItems","overflow","children","_jsx","Story","stories","map","node","i","content","processsStoryNodes","currentIndex","keyboardNavigation","onStoryEnd","s","st","onStoryStart","onNext","onPrevious","height","width","position","opacity","filter","_","index"],"mappings":"2QAMA,IAAMA,EAAgBC,
|
|
1
|
+
{"version":3,"file":"ct-design-story-end-slide.browser.esm.js","sources":["../packages/components/StoryEndSlide/src/StoryEndSlide.tsx"],"sourcesContent":[null],"names":["StoryEndSlide","forwardRef","props","ref","loop","storyNodes","lastNode","_a","preloadStoryCount","prevTapPercent","handleStoryEnd","handleStoryStart","handleNext","handlePrevious","storyEndSlideContainerStyles","storyContainerStyles","_b","useState","showLastNode","setShowLastNode","_c","currentStoryIndex","setCurrentStoryIndex","displayLastNode","handleStoryIndexChange","updatedIndex","length","useImperativeHandle","handleReplayClick","_jsxs","Container","__assign","css","display","justifyContent","alignItems","overflow","children","_jsx","Story","stories","map","node","i","content","processsStoryNodes","currentIndex","keyboardNavigation","onStoryEnd","s","st","onStoryStart","onNext","onPrevious","height","width","position","opacity","filter","_","index"],"mappings":"2QAMA,IAAMA,EAAgBC,GAAW,SAACC,EAA2BC,GAEzD,IAAAC,EAWEF,EAXEE,KACJC,EAUEH,EAAKG,WATPC,EASEJ,EATMI,SACRC,EAQEL,EARmBM,kBAArBA,OAAiB,IAAAD,EAAG,EAACA,EACrBE,EAOEP,EAPYO,eACdC,EAMER,EANYQ,eACdC,EAKET,EAAKS,iBAJPC,EAIEV,EAJQU,WACVC,EAGEX,EAAKW,eAFPC,EAEEZ,EAF0BY,6BAC5BC,EACEb,EAAKa,qBAEHC,EAAkCC,GAAS,GAA1CC,EAAYF,EAAA,GAAEG,EAAeH,EAAA,GAC9BI,EAA4CH,EAAS,GAApDI,EAAiBD,EAAA,GAAEE,EAAoBF,EAAA,GAYxCG,EAAkB,WACtBJ,GAAgB,GAChBG,EAAqB,EACvB,EAEME,EAAyB,SAACC,GAC1BA,IAAiBpB,EAAWqB,QAAWtB,GACzCmB,IAEFD,EAAqBG,EACvB,EAEAE,EAAoBxB,GAAK,WAAM,MAAC,CAC9ByB,kBAAiB,WACfL,IACAJ,GAAgB,EACjB,EACD,IAiBF,OACEU,EAACC,EACCC,EAAA,CAAAC,OACEC,QAAS,OACTC,eAAgB,SAChBC,WAAY,SACZC,SAAU,UACPtB,IAA4B,CAAAuB,SAAA,CAGhCnB,EACGZ,IACED,EAAWqB,QACXY,EAACC,EAAKR,EAAA,CACJS,QA1De,SAACnC,GAC1B,OAAOA,aAAA,EAAAA,EAAYoC,KAAI,SAACC,EAAMC,GAC5B,MAAO,CACLC,QAAS,WACP,OAAOF,CACR,EAEL,GACF,CAkDqBG,CAAmBxC,GAC5BI,eAAgBA,EAChBqC,aAAczB,EACdjB,KAAMA,EACN2C,sBACAhC,qBAAsBA,EACtBiC,WAnCa,SAACC,EAAGC,GAC3B1B,EAAuByB,EAAI,GAC3BvC,GAAkBA,EAAeuC,EAAGC,EACtC,EAiCYC,aAAcxC,EACdyC,OAhCQ,WAClB5B,EAAuBH,EAAoB,GAC3CT,GAAcA,GAChB,EA8BYyC,WA5BQ,WAClB7B,EAAuBH,EAAoB,GAC3CR,GAAkBA,GACpB,GA0BgBX,IAKZoC,EAACR,KAAUE,IAAK,CAAEsB,OAAQ,MAAOC,MAAO,MAAOC,SAAU,WAAYC,QAAS,IAAG,CAAApB,SAC9EhC,EAAWqD,QAAO,SAACC,EAAGC,GAAU,OAAAA,EAAQvC,EAAoBb,EAAoB,CAAC,IAAE,SAI5F"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-design-story-end-slide",
|
|
3
|
-
"version": "1.8.0-SNAPSHOT-
|
|
3
|
+
"version": "1.8.0-SNAPSHOT-e2eComponentsTest.0",
|
|
4
4
|
"description": "story wrapped with a component having end slide",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/ct-design-story-end-slide.cjs.js",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@emotion/react": "^11.14.0",
|
|
19
19
|
"@emotion/styled": "^11.14.0",
|
|
20
|
-
"@cleartrip/ct-design-story": "1.8.0-SNAPSHOT-
|
|
21
|
-
"@cleartrip/ct-design-
|
|
22
|
-
"@cleartrip/ct-design-
|
|
20
|
+
"@cleartrip/ct-design-story": "1.8.0-SNAPSHOT-e2eComponentsTest.0",
|
|
21
|
+
"@cleartrip/ct-design-typography": "3.23.0-SNAPSHOT-e2eComponentsTest.0",
|
|
22
|
+
"@cleartrip/ct-design-container": "3.21.0-SNAPSHOT-e2eComponentsTest.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@emotion/babel-plugin": "^11.12.0",
|
|
26
|
-
"@cleartrip/ct-design-theme": "3.21.0-SNAPSHOT-
|
|
26
|
+
"@cleartrip/ct-design-theme": "3.21.0-SNAPSHOT-e2eComponentsTest.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"react": ">=16.8.0",
|