Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@egjs/react-flicking

Package Overview
Dependencies
Maintainers
8
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@egjs/react-flicking - npm Package Compare versions

Comparing version 4.4.1 to 4.4.2

1

declaration/Flicking.d.ts

@@ -35,2 +35,3 @@ import * as React from "react";

private _getPanels;
private _isFragment;
}

@@ -37,0 +38,0 @@ interface Flicking extends React.Component<Partial<FlickingProps & FlickingOptions>>, VanillaFlicking {

4

declaration/ReactElementProvider.d.ts

@@ -1,5 +0,5 @@

import { ExternalElementProvider } from "@egjs/flicking";
import { ElementProvider } from "@egjs/flicking";
import StrictPanel from "./StrictPanel";
import NonStrictPanel from "./NonStrictPanel";
declare class ReactElementProvider implements ExternalElementProvider {
declare class ReactElementProvider implements ElementProvider {
private _el;

@@ -6,0 +6,0 @@ get element(): HTMLElement;

@@ -7,3 +7,3 @@ /*

repository: https://github.com/naver/egjs-flicking/tree/master/packages/react-flicking
version: 4.4.1
version: 4.4.2
*/

@@ -16,3 +16,2 @@ 'use strict';

var VanillaFlicking = require('@egjs/flicking');
var reactIs = require('react-is');
var reactDom = require('react-dom');

@@ -506,12 +505,9 @@

reactFlicking: this,
align: props.align,
strategy: props.virtual && props.panelsPerView > 0 ? new VanillaFlicking.VirtualRenderingStrategy() : new VanillaFlicking.NormalRenderingStrategy({
providerCtor: ReactElementProvider,
panelCtor: VanillaFlicking.ExternalPanel
providerCtor: ReactElementProvider
})
};
var flicking = new VanillaFlicking(this._viewportElement, __assign(__assign({}, props), {
renderExternal: {
renderer: ReactRenderer,
rendererOptions: rendererOptions
}
externalRenderer: new ReactRenderer(rendererOptions)
}));

@@ -697,3 +693,3 @@ this._vanillaFlicking = flicking;

return reactIs.isFragment(child) ? React.Children.toArray(child.props.children).reduce(function (allChilds, fragChild) {
return this._isFragment(child) ? React.Children.toArray(child.props.children).reduce(function (allChilds, fragChild) {
return __spreadArray(__spreadArray([], allChilds, true), _this._unpackFragment(fragChild), true);

@@ -750,2 +746,10 @@ }, []) : [child];

__proto._isFragment = function (child) {
if (child.type) {
return child.type === React.Fragment;
}
return child === React.Fragment;
};
Flicking.defaultProps = DEFAULT_PROPS;

@@ -752,0 +756,0 @@

@@ -7,3 +7,3 @@ /*

repository: https://github.com/naver/egjs-flicking/tree/master/packages/react-flicking
version: 4.4.1
version: 4.4.2
*/

@@ -14,5 +14,4 @@ import * as React from 'react';

import ListDiffer, { diff } from '@egjs/list-differ';
import VanillaFlicking__default, { getFlickingAttached, ExternalRenderer, VirtualRenderingStrategy, NormalRenderingStrategy, ExternalPanel, sync, getDefaultCameraTransform, range, EVENTS, getRenderingPanels, withFlickingMethods } from '@egjs/flicking';
import VanillaFlicking__default, { getFlickingAttached, ExternalRenderer, VirtualRenderingStrategy, NormalRenderingStrategy, sync, getDefaultCameraTransform, range, EVENTS, getRenderingPanels, withFlickingMethods } from '@egjs/flicking';
export * from '@egjs/flicking';
import { isFragment } from 'react-is';
import { findDOMNode } from 'react-dom';

@@ -506,12 +505,9 @@

reactFlicking: this,
align: props.align,
strategy: props.virtual && props.panelsPerView > 0 ? new VirtualRenderingStrategy() : new NormalRenderingStrategy({
providerCtor: ReactElementProvider,
panelCtor: ExternalPanel
providerCtor: ReactElementProvider
})
};
var flicking = new VanillaFlicking__default(this._viewportElement, __assign(__assign({}, props), {
renderExternal: {
renderer: ReactRenderer,
rendererOptions: rendererOptions
}
externalRenderer: new ReactRenderer(rendererOptions)
}));

@@ -697,3 +693,3 @@ this._vanillaFlicking = flicking;

return isFragment(child) ? React.Children.toArray(child.props.children).reduce(function (allChilds, fragChild) {
return this._isFragment(child) ? React.Children.toArray(child.props.children).reduce(function (allChilds, fragChild) {
return __spreadArray(__spreadArray([], allChilds, true), _this._unpackFragment(fragChild), true);

@@ -750,2 +746,10 @@ }, []) : [child];

__proto._isFragment = function (child) {
if (child.type) {
return child.type === React.Fragment;
}
return child === React.Fragment;
};
Flicking.defaultProps = DEFAULT_PROPS;

@@ -752,0 +756,0 @@

{
"name": "@egjs/react-flicking",
"version": "4.4.1",
"version": "4.4.2",
"description": "Everyday 30 million people experience. It's reliable, flexible and extendable carousel.",

@@ -19,5 +19,4 @@ "main": "dist/flicking.cjs.js",

"dependencies": {
"@egjs/flicking": "^4.4.0",
"@egjs/list-differ": "^1.0.0",
"react-is": "^17.0.2"
"@egjs/flicking": "^4.4.1",
"@egjs/list-differ": "^1.0.0"
},

@@ -24,0 +23,0 @@ "devDependencies": {

@@ -5,7 +5,7 @@ /*

*/
import { ExternalElementProvider } from "@egjs/flicking";
import { ElementProvider } from "@egjs/flicking";
import StrictPanel from "./StrictPanel";
import NonStrictPanel from "./NonStrictPanel";
class ReactElementProvider implements ExternalElementProvider {
class ReactElementProvider implements ElementProvider {
private _el: StrictPanel | NonStrictPanel;

@@ -12,0 +12,0 @@

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc