@egjs/react-flicking
Advanced tools
Comparing version 4.0.0-beta.2 to 4.0.0-beta.3
@@ -1,6 +0,7 @@ | ||
import { SelectEvent, NeedPanelEvent, VisibleChangeEvent, HoldStartEvent, HoldEndEvent, MoveStartEvent, MoveEvent, MoveEndEvent, WillChangeEvent, ChangedEvent, WillRestoreEvent, RestoredEvent, ReadyEvent, BeforeResizeEvent, AfterResizeEvent, ReachEdgeEvent } from "@egjs/flicking"; | ||
import { SelectEvent, NeedPanelEvent, VisibleChangeEvent, HoldStartEvent, HoldEndEvent, MoveStartEvent, MoveEvent, MoveEndEvent, WillChangeEvent, ChangedEvent, WillRestoreEvent, RestoredEvent, ReadyEvent, BeforeResizeEvent, AfterResizeEvent, ReachEdgeEvent, Plugin, Status } from "@egjs/flicking"; | ||
export interface FlickingProps { | ||
viewportTag: keyof JSX.IntrinsicElements; | ||
cameraTag: keyof JSX.IntrinsicElements; | ||
plugins: any[]; | ||
plugins: Plugin[]; | ||
status?: Status; | ||
onReady: (e: ReadyEvent) => any; | ||
@@ -7,0 +8,0 @@ onBeforeResize: (e: BeforeResizeEvent) => any; |
@@ -7,3 +7,3 @@ /* | ||
repository: https://github.com/naver/egjs-flicking | ||
version: 4.0.0-beta.3 | ||
version: 4.0.0-beta.5 | ||
*/ | ||
@@ -171,2 +171,6 @@ 'use strict'; | ||
if (this.props.status) { | ||
this.setStatus(this.props.status); | ||
} | ||
this._nativeFlicking = flicking; | ||
@@ -254,13 +258,15 @@ | ||
__proto._checkPlugins = function () { | ||
var _a = this._pluginsDiffer.update(this.props.plugins), | ||
list = _a.list, | ||
added = _a.added, | ||
removed = _a.removed, | ||
prevList = _a.prevList; | ||
var _a, _b; | ||
this._nativeFlicking.addPlugins(added.map(function (index) { | ||
var _c = this._pluginsDiffer.update(this.props.plugins), | ||
list = _c.list, | ||
added = _c.added, | ||
removed = _c.removed, | ||
prevList = _c.prevList; | ||
(_a = this._nativeFlicking).addPlugins.apply(_a, added.map(function (index) { | ||
return list[index]; | ||
})); | ||
this._nativeFlicking.removePlugins(removed.map(function (index) { | ||
(_b = this._nativeFlicking).removePlugins.apply(_b, removed.map(function (index) { | ||
return prevList[index]; | ||
@@ -267,0 +273,0 @@ })); |
@@ -7,3 +7,3 @@ /* | ||
repository: https://github.com/naver/egjs-flicking | ||
version: 4.0.0-beta.3 | ||
version: 4.0.0-beta.5 | ||
*/ | ||
@@ -169,2 +169,6 @@ import * as React from 'react'; | ||
if (this.props.status) { | ||
this.setStatus(this.props.status); | ||
} | ||
this._nativeFlicking = flicking; | ||
@@ -252,13 +256,15 @@ | ||
__proto._checkPlugins = function () { | ||
var _a = this._pluginsDiffer.update(this.props.plugins), | ||
list = _a.list, | ||
added = _a.added, | ||
removed = _a.removed, | ||
prevList = _a.prevList; | ||
var _a, _b; | ||
this._nativeFlicking.addPlugins(added.map(function (index) { | ||
var _c = this._pluginsDiffer.update(this.props.plugins), | ||
list = _c.list, | ||
added = _c.added, | ||
removed = _c.removed, | ||
prevList = _c.prevList; | ||
(_a = this._nativeFlicking).addPlugins.apply(_a, added.map(function (index) { | ||
return list[index]; | ||
})); | ||
this._nativeFlicking.removePlugins(removed.map(function (index) { | ||
(_b = this._nativeFlicking).removePlugins.apply(_b, removed.map(function (index) { | ||
return prevList[index]; | ||
@@ -265,0 +271,0 @@ })); |
{ | ||
"name": "@egjs/react-flicking", | ||
"version": "4.0.0-beta.2", | ||
"version": "4.0.0-beta.3", | ||
"description": "Everyday 30 million people experience. It's reliable, flexible and extendable carousel.", | ||
@@ -18,3 +18,3 @@ "main": "dist/flicking.cjs.js", | ||
"dependencies": { | ||
"@egjs/flicking": "^4.0.0-beta.3", | ||
"@egjs/flicking": "^4.0.0-beta.5", | ||
"@egjs/list-differ": "^1.0.0" | ||
@@ -21,0 +21,0 @@ }, |
@@ -17,3 +17,5 @@ import { | ||
AfterResizeEvent, | ||
ReachEdgeEvent | ||
ReachEdgeEvent, | ||
Plugin, | ||
Status | ||
} from "@egjs/flicking"; | ||
@@ -24,3 +26,4 @@ | ||
cameraTag: keyof JSX.IntrinsicElements; | ||
plugins: any[]; | ||
plugins: Plugin[]; | ||
status?: Status; | ||
onReady: (e: ReadyEvent) => any; | ||
@@ -27,0 +30,0 @@ onBeforeResize: (e: BeforeResizeEvent) => any; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
96111
2441
Updated@egjs/flicking@^4.0.0-beta.5