@egjs/react-flicking 4.15.0 → 4.17.0-beta.2

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.
Files changed (36) hide show
  1. package/.env +1 -0
  2. package/{declaration → dist}/CrossFlicking.d.ts +3 -5
  3. package/{declaration → dist}/CrossGroup.d.ts +1 -1
  4. package/{declaration → dist}/Flicking.d.ts +8 -8
  5. package/{declaration → dist}/NonStrictPanel.d.ts +1 -1
  6. package/{declaration → dist}/ReactRenderer.d.ts +1 -1
  7. package/{declaration → dist}/StrictPanel.d.ts +1 -1
  8. package/{declaration → dist}/ViewportSlot.d.ts +1 -1
  9. package/dist/flicking.cjs.js +1514 -579
  10. package/dist/flicking.cjs.js.map +1 -1
  11. package/dist/flicking.esm.js +1573 -651
  12. package/dist/flicking.esm.js.map +1 -1
  13. package/dist/flicking.js +1634 -0
  14. package/dist/flicking.js.map +1 -0
  15. package/{declaration → dist}/index.d.ts +3 -3
  16. package/{declaration → dist}/types.d.ts +1 -2
  17. package/package.json +18 -33
  18. package/src/react-flicking/CrossFlicking.tsx +28 -37
  19. package/src/react-flicking/CrossGroup.tsx +6 -8
  20. package/src/react-flicking/Flicking.tsx +81 -69
  21. package/src/react-flicking/NonStrictPanel.tsx +15 -7
  22. package/src/react-flicking/ReactElementProvider.ts +6 -4
  23. package/src/react-flicking/ReactRenderer.ts +1 -2
  24. package/src/react-flicking/StrictPanel.tsx +10 -6
  25. package/src/react-flicking/consts.ts +14 -14
  26. package/src/react-flicking/index.ts +4 -7
  27. package/src/react-flicking/index.umd.ts +1 -1
  28. package/src/react-flicking/reactive.ts +3 -3
  29. package/src/react-flicking/types.ts +17 -17
  30. package/dist/flicking.umd.js +0 -699
  31. package/dist/flicking.umd.js.map +0 -1
  32. package/tsconfig.json +0 -30
  33. /package/{declaration → dist}/ReactElementProvider.d.ts +0 -0
  34. /package/{declaration → dist}/consts.d.ts +0 -0
  35. /package/{declaration → dist}/index.umd.d.ts +0 -0
  36. /package/{declaration → dist}/reactive.d.ts +0 -0
package/.env ADDED
@@ -0,0 +1 @@
1
+ SKIP_PREFLIGHT_CHECK=true
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
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,4 +1,4 @@
1
- import React, { ReactNode, HTMLAttributes } from "react";
1
+ import React, { HTMLAttributes, ReactNode } from "react";
2
2
  interface CrossGroupProps extends HTMLAttributes<HTMLDivElement> {
3
3
  children?: ReactNode;
4
4
  }
@@ -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 VanillaFlicking, { FlickingOptions, FlickingEvents } from "@egjs/flicking";
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(): (StrictPanel | NonStrictPanel | HTMLDivElement)[];
18
+ get reactPanels(): (NonStrictPanel | StrictPanel | HTMLDivElement)[];
19
19
  get renderEmitter(): Component<{
20
- render: void;
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/declaration/core/panel/Panel").default;
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;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from "react";
2
2
  declare const ViewportSlot: React.MemoExoticComponent<(props: {
3
3
  children?: ReactNode;
4
- }) => JSX.Element>;
4
+ }) => import("react/jsx-runtime").JSX.Element>;
5
5
  export default ViewportSlot;