@egjs/react-flicking
Advanced tools
Comparing version 4.0.0-beta.4 to 4.0.0-beta.5
import * as React from "react"; | ||
import NativeFlicking, { FlickingOptions } from "@egjs/flicking"; | ||
import VanillaFlicking, { FlickingOptions } from "@egjs/flicking"; | ||
import "@egjs/flicking/dist/flicking.css"; | ||
import { FlickingProps } from "./types"; | ||
import ReactPanelComponent from "./ReactPanelComponent"; | ||
declare class Flicking extends React.Component<Partial<FlickingProps & FlickingOptions>> { | ||
static defaultProps: FlickingProps; | ||
private _nativeFlicking; | ||
private _vanillaFlicking; | ||
private _panels; | ||
@@ -13,3 +14,8 @@ private _pluginsDiffer; | ||
private _diffResult; | ||
constructor(props: Partial<FlickingProps & FlickingOptions>); | ||
private _mounted; | ||
private _renderCallback; | ||
get mounted(): boolean; | ||
get reactPanels(): ReactPanelComponent[]; | ||
constructor(props: any); | ||
setRenderCallback(callback: () => any): void; | ||
componentDidMount(): void; | ||
@@ -23,4 +29,4 @@ componentWillUnmount(): void; | ||
} | ||
interface Flicking extends React.Component<Partial<FlickingProps & FlickingOptions>>, NativeFlicking { | ||
interface Flicking extends React.Component<Partial<FlickingProps & FlickingOptions>>, VanillaFlicking { | ||
} | ||
export default Flicking; |
import Flicking from "./Flicking"; | ||
export * from "@egjs/flicking/src/exports"; | ||
export * from "./types"; | ||
export default Flicking; |
@@ -1,2 +0,2 @@ | ||
import { SelectEvent, NeedPanelEvent, VisibleChangeEvent, HoldStartEvent, HoldEndEvent, MoveStartEvent, MoveEvent, MoveEndEvent, WillChangeEvent, ChangedEvent, WillRestoreEvent, RestoredEvent, ReadyEvent, BeforeResizeEvent, AfterResizeEvent, ReachEdgeEvent, Plugin, Status } from "@egjs/flicking"; | ||
import { SelectEvent, NeedPanelEvent, VisibleChangeEvent, HoldStartEvent, HoldEndEvent, MoveStartEvent, MoveEvent, MoveEndEvent, WillChangeEvent, ChangedEvent, WillRestoreEvent, RestoredEvent, ReadyEvent, BeforeResizeEvent, AfterResizeEvent, ReachEdgeEvent, Plugin } from "@egjs/flicking"; | ||
export interface FlickingProps { | ||
@@ -6,3 +6,3 @@ viewportTag: keyof JSX.IntrinsicElements; | ||
plugins: Plugin[]; | ||
status?: Status; | ||
strict: boolean; | ||
onReady: (e: ReadyEvent) => any; | ||
@@ -9,0 +9,0 @@ onBeforeResize: (e: BeforeResizeEvent) => any; |
{ | ||
"name": "@egjs/react-flicking", | ||
"version": "4.0.0-beta.4", | ||
"version": "4.0.0-beta.5", | ||
"description": "Everyday 30 million people experience. It's reliable, flexible and extendable carousel.", | ||
@@ -11,3 +11,3 @@ "main": "dist/flicking.cjs.js", | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"start": "react-app-rewired start", | ||
"build": "rollup -c && npm run declaration", | ||
@@ -19,3 +19,3 @@ "declaration": "rm -rf declaration && tsc -p tsconfig.declaration.json", | ||
"dependencies": { | ||
"@egjs/flicking": "^4.0.0-beta.8", | ||
"@egjs/flicking": "^4.0.0-beta.10", | ||
"@egjs/list-differ": "^1.0.0" | ||
@@ -33,2 +33,4 @@ }, | ||
"react": "^16.8.6", | ||
"react-app-rewire-alias": "^1.0.3", | ||
"react-app-rewired": "^2.1.8", | ||
"react-dom": "^16.8.6", | ||
@@ -35,0 +37,0 @@ "react-scripts": "^4.0.3", |
@@ -29,4 +29,4 @@ /* | ||
cameraTag: "div", | ||
classPrefix: "eg-flick", | ||
plugins: [], | ||
strict: false, | ||
onReady: (e: ReadyEvent) => {}, | ||
@@ -33,0 +33,0 @@ onBeforeResize: (e: BeforeResizeEvent) => {}, |
@@ -7,5 +7,4 @@ /* | ||
export * from "@egjs/flicking/src/exports"; | ||
export * from "./types"; | ||
export default Flicking; |
@@ -22,4 +22,3 @@ /* | ||
ReachEdgeEvent, | ||
Plugin, | ||
Status | ||
Plugin | ||
} from "@egjs/flicking"; | ||
@@ -31,3 +30,3 @@ | ||
plugins: Plugin[]; | ||
status?: Status; | ||
strict: boolean; | ||
onReady: (e: ReadyEvent) => any; | ||
@@ -34,0 +33,0 @@ onBeforeResize: (e: BeforeResizeEvent) => any; |
{ | ||
"extends": "./tsconfig.paths.json", | ||
"compilerOptions": { | ||
@@ -3,0 +4,0 @@ "target": "es5", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
67
129804
16
3293