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

bear-react-carousel

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bear-react-carousel - npm Package Compare versions

Comparing version 5.0.0-alpha.0 to 5.0.0-alpha.1

7

dist/BearCarousel.d.ts

@@ -23,2 +23,3 @@ import * as React from 'react';

state: IState;
_isError: boolean;
_elementor: Elementor;

@@ -74,2 +75,6 @@ _stater: Stater;

/**
* set OnAnimationEnd emit
*/
private _onAnimationEnd;
/**
* set OnDragMove emit

@@ -96,4 +101,4 @@ * @param percentage

private _renderPagination;
render(): import("react/jsx-runtime").JSX.Element;
render(): import("react/jsx-runtime").JSX.Element | undefined;
}
export default BearCarousel;
import Configurator from '../Configurator';
import Stater from '../Stater';
import Elementor from './Elementor';
import { TEventMap } from './types';
declare class ElState {

@@ -9,2 +10,3 @@ _elementor: Elementor;

private _isAnimation;
private _eventor;
constructor(manager: {

@@ -17,2 +19,3 @@ configurator: Configurator;

get isAnimation(): boolean;
onAnimationEnd: (callBack?: TEventMap['animationEnd']) => void;
onSlideAnimation: () => void;

@@ -19,0 +22,0 @@ offSlideAnimation: () => void;

@@ -0,3 +1,8 @@

import Stater from '../Stater';
import Elementor from './Elementor';
export interface IMultiRefObject<T> {
current: T | null;
}
export type TEventMap = {
animationEnd?: (starer: Stater, elementor: Elementor) => void;
};

@@ -16,2 +16,3 @@ import { TEventMap, InitData } from './types';

activeIndex: number;
prevActiveIndex: number;
lastIndex: number;

@@ -27,2 +28,3 @@ total: number;

activeIndex: number;
prevActiveIndex: number;
lastIndex: number;

@@ -29,0 +31,0 @@ total: number;

@@ -5,2 +5,3 @@ import { RefObject, CSSProperties, ReactNode } from 'react';

import Controller from './manager/Controller';
import Elementor from './manager/Elementor';
export type TSlidesPerView = number | 'auto';

@@ -16,2 +17,3 @@ export type TSlidesPerViewActual = number;

export type TOnSlideChange = (carouselState: ICarouselState) => void;
export type TOnAnimationEnd = (carouselState: ICarouselState, elementor: Elementor) => void;
export type TOnMount = () => void;

@@ -35,2 +37,3 @@ export type GlobalWindow = Window & typeof globalThis;

onSlideChange?: TOnSlideChange;
onAnimationEnd?: TOnAnimationEnd;
onMount?: TOnMount;

@@ -41,2 +44,3 @@ }

activeIndex: number;
prevActiveIndex: number;
lastIndex: number;

@@ -47,2 +51,3 @@ total: number;

activeIndex: number;
prevActiveIndex: number;
lastIndex: number;

@@ -49,0 +54,0 @@ total: number;

import { IBearCarouselProps } from './types';
import { ReactNode } from 'react';
/**

@@ -55,1 +56,6 @@ * 判斷是否為手機裝置

export declare function getPrevIndexByPercentage(percentage: number, checkMovePercentage: number): number;
/**
* 檢查是否為正確的資料格式
* @param data
*/
export declare function checkDataFormat(data?: ReactNode[]): boolean;

2

package.json
{
"name": "bear-react-carousel",
"version": "5.0.0-alpha.0",
"version": "5.0.0-alpha.1",
"description": "Most modern mobile touch slider with hardware accelerated transitions for ReactJS",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

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