@egjs/react-flicking 4.11.3-beta.0 → 4.11.3-beta.1
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/declaration/Flicking.d.ts +41 -41
- package/declaration/NonStrictPanel.d.ts +12 -12
- package/declaration/ReactElementProvider.d.ts +12 -12
- package/declaration/ReactRenderer.d.ts +17 -17
- package/declaration/StrictPanel.d.ts +14 -14
- package/declaration/ViewportSlot.d.ts +5 -5
- package/declaration/consts.d.ts +2 -2
- package/declaration/index.d.ts +6 -6
- package/declaration/index.umd.d.ts +2 -2
- package/declaration/types.d.ts +32 -32
- package/dist/flicking.cjs.js +193 -45
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +193 -45
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +9221 -0
- package/dist/flicking.js.map +1 -0
- package/dist/flicking.min.js +10 -0
- package/dist/flicking.min.js.map +1 -0
- package/dist/flicking.pkgd.js +14483 -0
- package/dist/flicking.pkgd.js.map +1 -0
- package/dist/flicking.pkgd.min.js +10 -0
- package/dist/flicking.pkgd.min.js.map +1 -0
- package/dist/flicking.umd.js +193 -45
- package/dist/flicking.umd.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import Component from "@egjs/component";
|
|
3
|
-
import VanillaFlicking, { FlickingOptions } from "@egjs/flicking";
|
|
4
|
-
import { FlickingProps } from "./types";
|
|
5
|
-
import StrictPanel from "./StrictPanel";
|
|
6
|
-
import NonStrictPanel from "./NonStrictPanel";
|
|
7
|
-
declare class Flicking extends React.Component<Partial<FlickingProps & FlickingOptions>> {
|
|
8
|
-
static defaultProps: FlickingProps;
|
|
9
|
-
private _vanillaFlicking;
|
|
10
|
-
private _panels;
|
|
11
|
-
private _pluginsDiffer;
|
|
12
|
-
private _jsxDiffer;
|
|
13
|
-
private _viewportElement;
|
|
14
|
-
private _diffResult;
|
|
15
|
-
private _renderEmitter;
|
|
16
|
-
private _prevChildren;
|
|
17
|
-
get reactPanels(): (StrictPanel | NonStrictPanel | HTMLDivElement)[];
|
|
18
|
-
get renderEmitter(): Component<{
|
|
19
|
-
render: void;
|
|
20
|
-
}>;
|
|
21
|
-
constructor(props: Partial<FlickingProps & FlickingOptions>);
|
|
22
|
-
componentDidMount(): void;
|
|
23
|
-
componentWillUnmount(): void;
|
|
24
|
-
shouldComponentUpdate(nextProps: Readonly<Partial<FlickingProps & FlickingOptions>>): boolean;
|
|
25
|
-
beforeRender(): void;
|
|
26
|
-
componentDidUpdate(): void;
|
|
27
|
-
render(): JSX.Element;
|
|
28
|
-
private _createPanelRefs;
|
|
29
|
-
private _bindEvents;
|
|
30
|
-
private _checkPlugins;
|
|
31
|
-
private _hasSameChildren;
|
|
32
|
-
private _getChildren;
|
|
33
|
-
private _getViewportSlot;
|
|
34
|
-
private _unpackFragment;
|
|
35
|
-
private _getVirtualPanels;
|
|
36
|
-
private _getPanels;
|
|
37
|
-
private _isFragment;
|
|
38
|
-
}
|
|
39
|
-
interface Flicking extends React.Component<Partial<FlickingProps & FlickingOptions>>, VanillaFlicking {
|
|
40
|
-
}
|
|
41
|
-
export default Flicking;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import Component from "@egjs/component";
|
|
3
|
+
import VanillaFlicking, { FlickingOptions } from "@egjs/flicking";
|
|
4
|
+
import { FlickingProps } from "./types";
|
|
5
|
+
import StrictPanel from "./StrictPanel";
|
|
6
|
+
import NonStrictPanel from "./NonStrictPanel";
|
|
7
|
+
declare class Flicking extends React.Component<Partial<FlickingProps & FlickingOptions>> {
|
|
8
|
+
static defaultProps: FlickingProps;
|
|
9
|
+
private _vanillaFlicking;
|
|
10
|
+
private _panels;
|
|
11
|
+
private _pluginsDiffer;
|
|
12
|
+
private _jsxDiffer;
|
|
13
|
+
private _viewportElement;
|
|
14
|
+
private _diffResult;
|
|
15
|
+
private _renderEmitter;
|
|
16
|
+
private _prevChildren;
|
|
17
|
+
get reactPanels(): (StrictPanel | NonStrictPanel | HTMLDivElement)[];
|
|
18
|
+
get renderEmitter(): Component<{
|
|
19
|
+
render: void;
|
|
20
|
+
}>;
|
|
21
|
+
constructor(props: Partial<FlickingProps & FlickingOptions>);
|
|
22
|
+
componentDidMount(): void;
|
|
23
|
+
componentWillUnmount(): void;
|
|
24
|
+
shouldComponentUpdate(nextProps: Readonly<Partial<FlickingProps & FlickingOptions>>): boolean;
|
|
25
|
+
beforeRender(): void;
|
|
26
|
+
componentDidUpdate(): void;
|
|
27
|
+
render(): JSX.Element;
|
|
28
|
+
private _createPanelRefs;
|
|
29
|
+
private _bindEvents;
|
|
30
|
+
private _checkPlugins;
|
|
31
|
+
private _hasSameChildren;
|
|
32
|
+
private _getChildren;
|
|
33
|
+
private _getViewportSlot;
|
|
34
|
+
private _unpackFragment;
|
|
35
|
+
private _getVirtualPanels;
|
|
36
|
+
private _getPanels;
|
|
37
|
+
private _isFragment;
|
|
38
|
+
}
|
|
39
|
+
interface Flicking extends React.Component<Partial<FlickingProps & FlickingOptions>>, VanillaFlicking {
|
|
40
|
+
}
|
|
41
|
+
export default Flicking;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare class NonStrictPanel extends React.Component<{
|
|
3
|
-
children?: React.ReactElement;
|
|
4
|
-
}> {
|
|
5
|
-
private _hide;
|
|
6
|
-
get nativeElement(): HTMLElement;
|
|
7
|
-
get rendered(): boolean;
|
|
8
|
-
render(): JSX.Element | undefined;
|
|
9
|
-
show(): void;
|
|
10
|
-
hide(): void;
|
|
11
|
-
}
|
|
12
|
-
export default NonStrictPanel;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare class NonStrictPanel extends React.Component<{
|
|
3
|
+
children?: React.ReactElement;
|
|
4
|
+
}> {
|
|
5
|
+
private _hide;
|
|
6
|
+
get nativeElement(): HTMLElement;
|
|
7
|
+
get rendered(): boolean;
|
|
8
|
+
render(): JSX.Element | undefined;
|
|
9
|
+
show(): void;
|
|
10
|
+
hide(): void;
|
|
11
|
+
}
|
|
12
|
+
export default NonStrictPanel;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ElementProvider } from "@egjs/flicking";
|
|
2
|
-
import StrictPanel from "./StrictPanel";
|
|
3
|
-
import NonStrictPanel from "./NonStrictPanel";
|
|
4
|
-
declare class ReactElementProvider implements ElementProvider {
|
|
5
|
-
private _el;
|
|
6
|
-
get element(): HTMLElement;
|
|
7
|
-
get rendered(): boolean;
|
|
8
|
-
constructor(el: StrictPanel | NonStrictPanel);
|
|
9
|
-
show(): void;
|
|
10
|
-
hide(): void;
|
|
11
|
-
}
|
|
12
|
-
export default ReactElementProvider;
|
|
1
|
+
import { ElementProvider } from "@egjs/flicking";
|
|
2
|
+
import StrictPanel from "./StrictPanel";
|
|
3
|
+
import NonStrictPanel from "./NonStrictPanel";
|
|
4
|
+
declare class ReactElementProvider implements ElementProvider {
|
|
5
|
+
private _el;
|
|
6
|
+
get element(): HTMLElement;
|
|
7
|
+
get rendered(): boolean;
|
|
8
|
+
constructor(el: StrictPanel | NonStrictPanel);
|
|
9
|
+
show(): void;
|
|
10
|
+
hide(): void;
|
|
11
|
+
}
|
|
12
|
+
export default ReactElementProvider;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ExternalRenderer, PanelOptions, RendererOptions } from "@egjs/flicking";
|
|
2
|
-
import ReactFlicking from "./Flicking";
|
|
3
|
-
import StrictPanel from "./StrictPanel";
|
|
4
|
-
import NonStrictPanel from "./NonStrictPanel";
|
|
5
|
-
export interface ReactRendererOptions extends RendererOptions {
|
|
6
|
-
reactFlicking: ReactFlicking;
|
|
7
|
-
}
|
|
8
|
-
declare class ReactRenderer extends ExternalRenderer {
|
|
9
|
-
protected _reactFlicking: ReactFlicking;
|
|
10
|
-
constructor(options: ReactRendererOptions);
|
|
11
|
-
render(): Promise<void>;
|
|
12
|
-
forceRenderAllPanels(): Promise<void>;
|
|
13
|
-
destroy(): void;
|
|
14
|
-
protected _collectPanels(): void;
|
|
15
|
-
protected _createPanel(externalComponent: StrictPanel | NonStrictPanel | HTMLDivElement, options: PanelOptions): import("@egjs/flicking/declaration/core/panel/Panel").default;
|
|
16
|
-
}
|
|
17
|
-
export default ReactRenderer;
|
|
1
|
+
import { ExternalRenderer, PanelOptions, RendererOptions } from "@egjs/flicking";
|
|
2
|
+
import ReactFlicking from "./Flicking";
|
|
3
|
+
import StrictPanel from "./StrictPanel";
|
|
4
|
+
import NonStrictPanel from "./NonStrictPanel";
|
|
5
|
+
export interface ReactRendererOptions extends RendererOptions {
|
|
6
|
+
reactFlicking: ReactFlicking;
|
|
7
|
+
}
|
|
8
|
+
declare class ReactRenderer extends ExternalRenderer {
|
|
9
|
+
protected _reactFlicking: ReactFlicking;
|
|
10
|
+
constructor(options: ReactRendererOptions);
|
|
11
|
+
render(): Promise<void>;
|
|
12
|
+
forceRenderAllPanels(): Promise<void>;
|
|
13
|
+
destroy(): void;
|
|
14
|
+
protected _collectPanels(): void;
|
|
15
|
+
protected _createPanel(externalComponent: StrictPanel | NonStrictPanel | HTMLDivElement, options: PanelOptions): import("@egjs/flicking/declaration/core/panel/Panel").default;
|
|
16
|
+
}
|
|
17
|
+
export default ReactRenderer;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare class StrictPanel extends React.Component<{
|
|
3
|
-
children?: React.ReactElement;
|
|
4
|
-
}> {
|
|
5
|
-
private _hide;
|
|
6
|
-
private _elRef;
|
|
7
|
-
get nativeElement(): HTMLElement;
|
|
8
|
-
get rendered(): boolean;
|
|
9
|
-
render(): JSX.Element;
|
|
10
|
-
show(): void;
|
|
11
|
-
hide(): void;
|
|
12
|
-
private _getElement;
|
|
13
|
-
}
|
|
14
|
-
export default StrictPanel;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare class StrictPanel extends React.Component<{
|
|
3
|
+
children?: React.ReactElement;
|
|
4
|
+
}> {
|
|
5
|
+
private _hide;
|
|
6
|
+
private _elRef;
|
|
7
|
+
get nativeElement(): HTMLElement;
|
|
8
|
+
get rendered(): boolean;
|
|
9
|
+
render(): JSX.Element;
|
|
10
|
+
show(): void;
|
|
11
|
+
hide(): void;
|
|
12
|
+
private _getElement;
|
|
13
|
+
}
|
|
14
|
+
export default StrictPanel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
declare const ViewportSlot: React.MemoExoticComponent<(props: {
|
|
3
|
-
children?: ReactNode;
|
|
4
|
-
}) => JSX.Element>;
|
|
5
|
-
export default ViewportSlot;
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
declare const ViewportSlot: React.MemoExoticComponent<(props: {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
}) => JSX.Element>;
|
|
5
|
+
export default ViewportSlot;
|
package/declaration/consts.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FlickingProps } from "./types";
|
|
2
|
-
export declare const DEFAULT_PROPS: FlickingProps;
|
|
1
|
+
import { FlickingProps } from "./types";
|
|
2
|
+
export declare const DEFAULT_PROPS: FlickingProps;
|
package/declaration/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Flicking from "./Flicking";
|
|
2
|
-
import ViewportSlot from "./ViewportSlot";
|
|
3
|
-
export * from "@egjs/flicking";
|
|
4
|
-
export * from "./types";
|
|
5
|
-
export { ViewportSlot };
|
|
6
|
-
export default Flicking;
|
|
1
|
+
import Flicking from "./Flicking";
|
|
2
|
+
import ViewportSlot from "./ViewportSlot";
|
|
3
|
+
export * from "@egjs/flicking";
|
|
4
|
+
export * from "./types";
|
|
5
|
+
export { ViewportSlot };
|
|
6
|
+
export default Flicking;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Flicking from "./Flicking";
|
|
2
|
-
export default Flicking;
|
|
1
|
+
import Flicking from "./Flicking";
|
|
2
|
+
export default Flicking;
|
package/declaration/types.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import ReactFlicking from "./Flicking";
|
|
3
|
-
import { SelectEvent, NeedPanelEvent, VisibleChangeEvent, HoldStartEvent, HoldEndEvent, MoveStartEvent, MoveEvent, MoveEndEvent, WillChangeEvent, ChangedEvent, WillRestoreEvent, RestoredEvent, ReadyEvent, BeforeResizeEvent, AfterResizeEvent, ReachEdgeEvent, PanelChangeEvent, Plugin, Status } from "@egjs/flicking";
|
|
4
|
-
export interface FlickingProps {
|
|
5
|
-
viewportTag: keyof JSX.IntrinsicElements;
|
|
6
|
-
cameraTag: keyof JSX.IntrinsicElements;
|
|
7
|
-
cameraClass: string;
|
|
8
|
-
renderOnSameKey: boolean;
|
|
9
|
-
plugins: Plugin[];
|
|
10
|
-
status?: Status;
|
|
11
|
-
useFindDOMNode: boolean;
|
|
12
|
-
hideBeforeInit: boolean;
|
|
13
|
-
firstPanelSize?: string;
|
|
14
|
-
onReady: (e: ReadyEvent<ReactFlicking>) => any;
|
|
15
|
-
onBeforeResize: (e: BeforeResizeEvent<ReactFlicking>) => any;
|
|
16
|
-
onAfterResize: (e: AfterResizeEvent<ReactFlicking>) => any;
|
|
17
|
-
onHoldStart: (e: HoldStartEvent<ReactFlicking>) => any;
|
|
18
|
-
onHoldEnd: (e: HoldEndEvent<ReactFlicking>) => any;
|
|
19
|
-
onMoveStart: (e: MoveStartEvent<ReactFlicking>) => any;
|
|
20
|
-
onMove: (e: MoveEvent<ReactFlicking>) => any;
|
|
21
|
-
onMoveEnd: (e: MoveEndEvent<ReactFlicking>) => any;
|
|
22
|
-
onWillChange: (e: WillChangeEvent<ReactFlicking>) => any;
|
|
23
|
-
onChanged: (e: ChangedEvent<ReactFlicking>) => any;
|
|
24
|
-
onWillRestore: (e: WillRestoreEvent<ReactFlicking>) => any;
|
|
25
|
-
onRestored: (e: RestoredEvent<ReactFlicking>) => any;
|
|
26
|
-
onSelect: (e: SelectEvent<ReactFlicking>) => any;
|
|
27
|
-
onNeedPanel: (e: NeedPanelEvent<ReactFlicking>) => any;
|
|
28
|
-
onVisibleChange: (e: VisibleChangeEvent<ReactFlicking>) => any;
|
|
29
|
-
onReachEdge: (e: ReachEdgeEvent<ReactFlicking>) => any;
|
|
30
|
-
onPanelChange: (e: PanelChangeEvent<ReactFlicking>) => any;
|
|
31
|
-
[key: string]: any;
|
|
32
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import ReactFlicking from "./Flicking";
|
|
3
|
+
import { SelectEvent, NeedPanelEvent, VisibleChangeEvent, HoldStartEvent, HoldEndEvent, MoveStartEvent, MoveEvent, MoveEndEvent, WillChangeEvent, ChangedEvent, WillRestoreEvent, RestoredEvent, ReadyEvent, BeforeResizeEvent, AfterResizeEvent, ReachEdgeEvent, PanelChangeEvent, Plugin, Status } from "@egjs/flicking";
|
|
4
|
+
export interface FlickingProps {
|
|
5
|
+
viewportTag: keyof JSX.IntrinsicElements;
|
|
6
|
+
cameraTag: keyof JSX.IntrinsicElements;
|
|
7
|
+
cameraClass: string;
|
|
8
|
+
renderOnSameKey: boolean;
|
|
9
|
+
plugins: Plugin[];
|
|
10
|
+
status?: Status;
|
|
11
|
+
useFindDOMNode: boolean;
|
|
12
|
+
hideBeforeInit: boolean;
|
|
13
|
+
firstPanelSize?: string;
|
|
14
|
+
onReady: (e: ReadyEvent<ReactFlicking>) => any;
|
|
15
|
+
onBeforeResize: (e: BeforeResizeEvent<ReactFlicking>) => any;
|
|
16
|
+
onAfterResize: (e: AfterResizeEvent<ReactFlicking>) => any;
|
|
17
|
+
onHoldStart: (e: HoldStartEvent<ReactFlicking>) => any;
|
|
18
|
+
onHoldEnd: (e: HoldEndEvent<ReactFlicking>) => any;
|
|
19
|
+
onMoveStart: (e: MoveStartEvent<ReactFlicking>) => any;
|
|
20
|
+
onMove: (e: MoveEvent<ReactFlicking>) => any;
|
|
21
|
+
onMoveEnd: (e: MoveEndEvent<ReactFlicking>) => any;
|
|
22
|
+
onWillChange: (e: WillChangeEvent<ReactFlicking>) => any;
|
|
23
|
+
onChanged: (e: ChangedEvent<ReactFlicking>) => any;
|
|
24
|
+
onWillRestore: (e: WillRestoreEvent<ReactFlicking>) => any;
|
|
25
|
+
onRestored: (e: RestoredEvent<ReactFlicking>) => any;
|
|
26
|
+
onSelect: (e: SelectEvent<ReactFlicking>) => any;
|
|
27
|
+
onNeedPanel: (e: NeedPanelEvent<ReactFlicking>) => any;
|
|
28
|
+
onVisibleChange: (e: VisibleChangeEvent<ReactFlicking>) => any;
|
|
29
|
+
onReachEdge: (e: ReachEdgeEvent<ReactFlicking>) => any;
|
|
30
|
+
onPanelChange: (e: PanelChangeEvent<ReactFlicking>) => any;
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}
|