Socket
Socket
Sign inDemoInstall

react-chrono

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-chrono - npm Package Compare versions

Comparing version 1.1.5 to 1.1.6

4

dist/components/timeline-elements/timeline-card-content/timeline-card-content.d.ts

@@ -1,4 +0,4 @@

import React from "react";
import { TimelineContentModel } from "../../../models/TimelineContentModel";
import React from 'react';
import { TimelineContentModel } from '../../../models/TimelineContentModel';
declare const TimelineItemContent: React.FunctionComponent<TimelineContentModel>;
export default TimelineItemContent;
import { TimelineItemViewModel } from "./TimelineItemModel";
import { TimelineMode } from "./TimelineModel";
import { Theme } from "./TimelineTreeModel";

@@ -8,3 +9,3 @@ export interface TimelineCollectionModel {

items: TimelineItemViewModel[];
mode: "HORIZONTAL" | "VERTICAL" | "TREE";
mode: TimelineMode;
slideShowRunning?: boolean;

@@ -16,7 +17,37 @@ theme?: Theme;

export interface Scroll {
/**
* Height of the Timeline card content
*
* @type {number}
* @memberof Scroll
*/
timelineContentHeight: number;
/**
* Offset of the Content card
*
* @type {number}
* @memberof Scroll
*/
timelineContentOffset: number;
/**
* Height of the timeline point
*
* @type {number}
* @memberof Scroll
*/
timelinePointHeight: number;
/**
* Offset of the timeline point
*
* @type {number}
* @memberof Scroll
*/
timelinePointOffset: number;
/**
* Width of the timeline point
*
* @type {number}
* @memberof Scroll
*/
timelinePointWidth: number;
}
import { Media } from "./TimelineItemMedia";
import { TimelineMode } from "./TimelineModel";
import { Theme } from "./TimelineTreeModel";
export interface TimelineContentModel {
active?: boolean;
cardHeight?: number;
content: string;
detailedText?: string;
id?: string;
media?: Media;
mode?: TimelineMode;
onClick?: (id: string) => void;
onShowMore: () => void;

@@ -11,5 +17,2 @@ slideShowActive?: boolean;

title?: string;
media?: Media;
mode?: "VERTICAL" | "HORIZONTAL" | "TREE";
cardHeight?: number;
}

@@ -49,2 +49,3 @@ /// <reference types="react" />

secondary: string;
textColor?: string;
}
{
"name": "react-chrono",
"version": "1.1.5",
"version": "1.1.6",
"license": "MIT",

@@ -22,3 +22,3 @@ "description": "a modern timeline component for React",

"react": "^17.0.0-rc.3",
"react-chrono": "^1.1.2",
"react-chrono": "^1.1.5",
"react-dom": "^16.13.1",

@@ -65,4 +65,4 @@ "react-responsive": "^8.1.0"

"@types/nanoid": "^2.1.0",
"@types/node": "^14.11.7",
"@types/react": "^16.9.51",
"@types/node": "^14.11.8",
"@types/react": "^16.9.52",
"@types/react-dom": "^16.9.0",

@@ -69,0 +69,0 @@ "@types/react-responsive": "^8.0.2",

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

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

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