@egjs/react-flicking
Advanced tools
Comparing version 3.8.1 to 3.8.2
/// <reference types="react" /> | ||
import { ChangeEvent, FlickingEvent, SelectEvent, Plugin, NeedPanelEvent, FlickingStatus, FlickingMethods, VisibleChangeEvent } from "@egjs/flicking"; | ||
import { ChangeEvent, FlickingEvent, SelectEvent, Plugin, NeedPanelEvent, FlickingStatus, FlickingMethods, VisibleChangeEvent, ContentErrorEvent, ContentLoadEvent } from "@egjs/flicking"; | ||
import NativeFlicking from "@egjs/flicking"; | ||
@@ -19,8 +19,10 @@ export declare type ParametersType<T, R> = T extends (...params: infer U) => any ? (...params: U) => R : never; | ||
onMoveEnd: (e: FlickingEvent) => any; | ||
onChange: (e: ChangeEvent) => any; | ||
onRestore: (e: FlickingEvent) => any; | ||
onSelect: (e: SelectEvent) => any; | ||
onChange: (e: ChangeEvent) => any; | ||
onNeedPanel: (e: NeedPanelEvent) => any; | ||
onVisibleChange: (e: VisibleChangeEvent) => any; | ||
onContentLoad: (e: ContentLoadEvent) => any; | ||
onContentError: (e: ContentErrorEvent) => any; | ||
[key: string]: any; | ||
} |
@@ -7,3 +7,3 @@ /* | ||
repository: https://github.com/naver/egjs-flicking/tree/master/packages/react-flicking | ||
version: 3.8.1 | ||
version: 3.8.2 | ||
*/ | ||
@@ -118,2 +118,4 @@ 'use strict'; | ||
onChange: function (e) {}, | ||
onContentLoad: function (e) {}, | ||
onContentError: function (e) {}, | ||
onVisibleChange: function (e) {} | ||
@@ -232,2 +234,10 @@ }; | ||
_this.forceUpdate(); | ||
}, | ||
contentLoad: function (e) { | ||
_this.props.onContentLoad(e); | ||
_this.forceUpdate(); | ||
}, | ||
contentError: function (e) { | ||
return _this.props.onContentError(e); | ||
} | ||
@@ -234,0 +244,0 @@ }); |
@@ -7,3 +7,3 @@ /* | ||
repository: https://github.com/naver/egjs-flicking/tree/master/packages/react-flicking | ||
version: 3.8.1 | ||
version: 3.8.2 | ||
*/ | ||
@@ -116,2 +116,4 @@ import NativeFlicking, { DEFAULT_OPTIONS, withFlickingMethods } from '@egjs/flicking'; | ||
onChange: function (e) {}, | ||
onContentLoad: function (e) {}, | ||
onContentError: function (e) {}, | ||
onVisibleChange: function (e) {} | ||
@@ -230,2 +232,10 @@ }; | ||
_this.forceUpdate(); | ||
}, | ||
contentLoad: function (e) { | ||
_this.props.onContentLoad(e); | ||
_this.forceUpdate(); | ||
}, | ||
contentError: function (e) { | ||
return _this.props.onContentError(e); | ||
} | ||
@@ -232,0 +242,0 @@ }); |
{ | ||
"name": "@egjs/react-flicking", | ||
"version": "3.8.1", | ||
"version": "3.8.2", | ||
"description": "Everyday 30 million people experience. It's reliable, flexible and extendable carousel.", | ||
@@ -12,3 +12,3 @@ "main": "dist/flicking.cjs.js", | ||
"@egjs/children-differ": "^1.0.1", | ||
"@egjs/flicking": "~3.9.1", | ||
"@egjs/flicking": "~3.9.2", | ||
"@egjs/list-differ": "^1.0.0" | ||
@@ -24,6 +24,8 @@ }, | ||
"@types/react-dom": "16.8.4", | ||
"@typescript-eslint/eslint-plugin": "^5.12.0", | ||
"highlight.js": "^9.15.6", | ||
"react": "^16.8.6", | ||
"react-dom": "^16.8.6", | ||
"react-scripts": "3.0.1", | ||
"react-router-dom": "^6.2.1", | ||
"react-scripts": "^5.0.0", | ||
"typescript": "^3.9.7" | ||
@@ -30,0 +32,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
import { ChangeEvent, FlickingEvent, SelectEvent, NeedPanelEvent, VisibleChangeEvent } from "@egjs/flicking"; | ||
import { ChangeEvent, FlickingEvent, SelectEvent, NeedPanelEvent, VisibleChangeEvent, ContentLoadEvent, ContentErrorEvent } from "@egjs/flicking"; | ||
import { FlickingProps } from "./types"; | ||
@@ -19,3 +19,5 @@ | ||
onChange: (e: ChangeEvent) => {}, | ||
onContentLoad: (e: ContentLoadEvent) => {}, | ||
onContentError: (e: ContentErrorEvent) => {}, | ||
onVisibleChange: (e: VisibleChangeEvent) => {}, | ||
}; |
@@ -1,2 +0,13 @@ | ||
import { ChangeEvent, FlickingEvent, SelectEvent, Plugin, NeedPanelEvent, FlickingStatus, FlickingMethods, VisibleChangeEvent } from "@egjs/flicking"; | ||
import { | ||
ChangeEvent, | ||
FlickingEvent, | ||
SelectEvent, | ||
Plugin, | ||
NeedPanelEvent, | ||
FlickingStatus, | ||
FlickingMethods, | ||
VisibleChangeEvent, | ||
ContentErrorEvent, | ||
ContentLoadEvent | ||
} from "@egjs/flicking"; | ||
import NativeFlicking from "@egjs/flicking"; | ||
@@ -22,8 +33,10 @@ | ||
onMoveEnd: (e: FlickingEvent) => any; | ||
onChange: (e: ChangeEvent) => any; | ||
onRestore: (e: FlickingEvent) => any; | ||
onSelect: (e: SelectEvent) => any; | ||
onChange: (e: ChangeEvent) => any; | ||
onNeedPanel: (e: NeedPanelEvent) => any; | ||
onVisibleChange: (e: VisibleChangeEvent) => any; | ||
onContentLoad: (e: ContentLoadEvent) => any; | ||
onContentError: (e: ContentErrorEvent) => any; | ||
[key: string]: 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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131306
56
2591
14
Updated@egjs/flicking@~3.9.2