@egjs/react-flicking 4.15.0 → 4.16.0-beta.10
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/.env +1 -0
- package/{declaration → dist}/CrossFlicking.d.ts +3 -5
- package/{declaration → dist}/CrossGroup.d.ts +1 -1
- package/{declaration → dist}/Flicking.d.ts +8 -8
- package/{declaration → dist}/NonStrictPanel.d.ts +1 -1
- package/{declaration → dist}/ReactRenderer.d.ts +1 -1
- package/{declaration → dist}/StrictPanel.d.ts +1 -1
- package/{declaration → dist}/ViewportSlot.d.ts +1 -1
- package/dist/flicking.cjs.js +1514 -579
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +1573 -651
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +1634 -0
- package/dist/flicking.js.map +1 -0
- package/{declaration → dist}/index.d.ts +3 -3
- package/{declaration → dist}/types.d.ts +1 -2
- package/package.json +18 -33
- package/src/react-flicking/CrossFlicking.tsx +28 -37
- package/src/react-flicking/CrossGroup.tsx +6 -8
- package/src/react-flicking/Flicking.tsx +81 -69
- package/src/react-flicking/NonStrictPanel.tsx +15 -7
- package/src/react-flicking/ReactElementProvider.ts +6 -4
- package/src/react-flicking/ReactRenderer.ts +1 -2
- package/src/react-flicking/StrictPanel.tsx +10 -6
- package/src/react-flicking/consts.ts +14 -14
- package/src/react-flicking/index.ts +4 -7
- package/src/react-flicking/index.umd.ts +1 -1
- package/src/react-flicking/reactive.ts +3 -3
- package/src/react-flicking/types.ts +17 -17
- package/dist/flicking.umd.js +0 -699
- package/dist/flicking.umd.js.map +0 -1
- package/tsconfig.json +0 -30
- /package/{declaration → dist}/ReactElementProvider.d.ts +0 -0
- /package/{declaration → dist}/consts.d.ts +0 -0
- /package/{declaration → dist}/index.umd.d.ts +0 -0
- /package/{declaration → dist}/reactive.d.ts +0 -0
package/.env
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
SKIP_PREFLIGHT_CHECK=true
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import { CrossFlickingEvent, HoldStartEvent, HoldEndEvent, MoveStartEvent, MoveEvent, MoveEndEvent, WillChangeEvent, ChangedEvent, CrossFlickingOptions, FlickingOptions } from "@egjs/flicking";
|
|
3
|
-
import { FlickingProps } from "./types";
|
|
1
|
+
import { ChangedEvent, CrossFlickingEvent, HoldEndEvent, HoldStartEvent, MoveEndEvent, MoveEvent, MoveStartEvent, WillChangeEvent } from "@egjs/flicking";
|
|
4
2
|
import Flicking from "./Flicking";
|
|
3
|
+
import { FlickingProps } from "./types";
|
|
5
4
|
export interface CrossFlickingProps extends FlickingProps {
|
|
6
5
|
onSideHoldStart: (e: CrossFlickingEvent<HoldStartEvent<Flicking>>) => any;
|
|
7
6
|
onSideHoldEnd: (e: CrossFlickingEvent<HoldEndEvent<Flicking>>) => any;
|
|
@@ -16,9 +15,8 @@ export interface CrossFlickingProps extends FlickingProps {
|
|
|
16
15
|
export declare const CROSSFLICKING_DEFAULT_PROPS: CrossFlickingProps;
|
|
17
16
|
declare class CrossFlicking extends Flicking {
|
|
18
17
|
static defaultProps: CrossFlickingProps;
|
|
19
|
-
constructor(props: Partial<FlickingProps & FlickingOptions & CrossFlickingOptions & CrossFlickingProps>);
|
|
20
18
|
componentDidMount(): void;
|
|
21
|
-
render(): JSX.Element;
|
|
19
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
22
20
|
protected _bindEvents(): void;
|
|
23
21
|
}
|
|
24
22
|
interface CrossFlicking extends Flicking {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import Component from "@egjs/component";
|
|
2
|
+
import VanillaFlicking, { FlickingEvents, FlickingOptions } from "@egjs/flicking";
|
|
3
3
|
import ListDiffer from "@egjs/list-differ";
|
|
4
|
-
import
|
|
5
|
-
import { FlickingProps } from "./types";
|
|
6
|
-
import StrictPanel from "./StrictPanel";
|
|
4
|
+
import * as React from "react";
|
|
7
5
|
import NonStrictPanel from "./NonStrictPanel";
|
|
6
|
+
import StrictPanel from "./StrictPanel";
|
|
7
|
+
import { FlickingProps } from "./types";
|
|
8
8
|
declare class Flicking extends React.Component<Partial<FlickingProps & FlickingOptions>> {
|
|
9
9
|
static defaultProps: FlickingProps;
|
|
10
10
|
protected _vanillaFlicking: VanillaFlicking;
|
|
@@ -15,9 +15,9 @@ declare class Flicking extends React.Component<Partial<FlickingProps & FlickingO
|
|
|
15
15
|
private _diffResult;
|
|
16
16
|
private _renderEmitter;
|
|
17
17
|
protected _prevChildren: React.ReactElement[];
|
|
18
|
-
get reactPanels(): (
|
|
18
|
+
get reactPanels(): (NonStrictPanel | StrictPanel | HTMLDivElement)[];
|
|
19
19
|
get renderEmitter(): Component<{
|
|
20
|
-
render:
|
|
20
|
+
render: undefined;
|
|
21
21
|
}>;
|
|
22
22
|
constructor(props: Partial<FlickingProps & FlickingOptions>);
|
|
23
23
|
componentDidMount(): void;
|
|
@@ -25,7 +25,7 @@ declare class Flicking extends React.Component<Partial<FlickingProps & FlickingO
|
|
|
25
25
|
shouldComponentUpdate(nextProps: Readonly<Partial<FlickingProps & FlickingOptions>>): boolean;
|
|
26
26
|
beforeRender(): void;
|
|
27
27
|
componentDidUpdate(): void;
|
|
28
|
-
render(): JSX.Element;
|
|
28
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
private _createPanelRefs;
|
|
30
30
|
protected _bindEvents(): void;
|
|
31
31
|
protected _bindEvent(eventName: keyof FlickingEvents): void;
|
|
@@ -48,7 +48,7 @@ declare class Flicking extends React.Component<Partial<FlickingProps & FlickingO
|
|
|
48
48
|
protected _getViewportSlot(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
49
49
|
private _unpackFragment;
|
|
50
50
|
private _getVirtualPanels;
|
|
51
|
-
protected _getPanels(): JSX.Element[];
|
|
51
|
+
protected _getPanels(): import("react/jsx-runtime").JSX.Element[];
|
|
52
52
|
private _isFragment;
|
|
53
53
|
}
|
|
54
54
|
interface Flicking extends React.Component<Partial<FlickingProps & FlickingOptions>>, VanillaFlicking {
|
|
@@ -7,7 +7,7 @@ declare class NonStrictPanel extends React.Component<{
|
|
|
7
7
|
get nativeElement(): HTMLElement;
|
|
8
8
|
get rendered(): boolean;
|
|
9
9
|
get elRef(): React.RefObject<HTMLElement>;
|
|
10
|
-
render(): JSX.Element;
|
|
10
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
show(): void;
|
|
12
12
|
hide(): void;
|
|
13
13
|
}
|
|
@@ -11,6 +11,6 @@ declare class ReactRenderer extends ExternalRenderer {
|
|
|
11
11
|
forceRenderAllPanels(): Promise<void>;
|
|
12
12
|
destroy(): void;
|
|
13
13
|
protected _collectPanels(): void;
|
|
14
|
-
protected _createPanel(externalComponent: StrictPanel, options: PanelOptions): import("@egjs/flicking/
|
|
14
|
+
protected _createPanel(externalComponent: StrictPanel, options: PanelOptions): import("@egjs/flicking/dist/core/panel/Panel").default;
|
|
15
15
|
}
|
|
16
16
|
export default ReactRenderer;
|
|
@@ -7,7 +7,7 @@ declare class StrictPanel extends React.Component<{
|
|
|
7
7
|
get nativeElement(): HTMLElement;
|
|
8
8
|
get rendered(): boolean;
|
|
9
9
|
get elRef(): React.RefObject<HTMLElement>;
|
|
10
|
-
render(): JSX.Element;
|
|
10
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
show(): void;
|
|
12
12
|
hide(): void;
|
|
13
13
|
private _getElement;
|