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

@schedule-x/react

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@schedule-x/react - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

cypress/pages/002-custom-events/components/CustomMonthAgendaEvent.tsx

24

cypress/e2e/002-custom-events.cy.ts

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

import { createCalendarHeaderPageObject } from '@schedule-x/e2e-testing'
const calendarHeader = createCalendarHeaderPageObject()
describe('Custom events', () => {

@@ -6,3 +10,3 @@ beforeEach(() => {

it('should render custom events', () => {
it('should render custom events in week view', () => {
cy.contains('Event 1')

@@ -12,2 +16,20 @@ cy.contains('ID: 1')

})
it('should render custom events in month view', () => {
calendarHeader.openViewByLabel('Month')
cy.contains('Event 1|ID1').should('exist')
cy.contains('Event 2|ID2').should('exist')
})
})
describe('Custom events test on mobile', () => {
beforeEach(() => {
cy.visit('/cypress/pages/002-custom-events/002-custom-events.html')
cy.viewport('iphone-6')
})
it('should render custom events in month agenda view', () => {
calendarHeader.openViewByLabel('Month')
cy.contains('Event 1|ID1').should('exist')
})
})

5

dist/index.cjs.js

@@ -14,3 +14,3 @@ 'use strict';

};
function Calendar({ calendarApp, customComponents }) {
function ScheduleXCalendar({ calendarApp, customComponents }) {
const randomId = 'sx' + Math.random().toString(36).substring(2, 11);

@@ -45,3 +45,4 @@ const [customComponentsMeta, setCustomComponentsMeta] = react.useState([]);

exports.Calendar = Calendar;
exports.Calendar = ScheduleXCalendar;
exports.ScheduleXCalendar = ScheduleXCalendar;
exports.useCalendarApp = useCalendarApp;

@@ -12,3 +12,3 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';

};
function Calendar({ calendarApp, customComponents }) {
function ScheduleXCalendar({ calendarApp, customComponents }) {
const randomId = 'sx' + Math.random().toString(36).substring(2, 11);

@@ -43,2 +43,2 @@ const [customComponentsMeta, setCustomComponentsMeta] = useState([]);

export { Calendar, useCalendarApp };
export { ScheduleXCalendar as Calendar, ScheduleXCalendar, useCalendarApp };

@@ -1,2 +0,3 @@

export { Calendar } from './calendar';
export { ScheduleXCalendar as Calendar } from './schedule-x-calendar.tsx';
export { ScheduleXCalendar } from './schedule-x-calendar.tsx';
export { useCalendarApp } from './use-calendar-app.tsx';

@@ -17,3 +17,3 @@ {

"types": "dist/types/index.d.ts",
"version": "0.5.0",
"version": "0.6.0",
"type": "module",

@@ -30,3 +30,3 @@ "scripts": {

"peerDependencies": {
"@schedule-x/calendar": "^0.5.0",
"@schedule-x/calendar": "^0.6.0",
"react": "^16.7.0 || ^17 || ^18",

@@ -40,8 +40,8 @@ "react-dom": "^16.7.0 || ^17 || ^18"

"@rollup/plugin-typescript": "^11.1.5",
"@schedule-x/drag-and-drop": "^0.5.0",
"@schedule-x/e2e-testing": "^0.5.0",
"@schedule-x/eslint-config": "^0.5.0",
"@schedule-x/event-modal": "^0.5.0",
"@schedule-x/prettier-config": "^0.5.0",
"@schedule-x/theme-default": "^0.5.0",
"@schedule-x/drag-and-drop": "^0.6.0",
"@schedule-x/e2e-testing": "^0.6.0",
"@schedule-x/eslint-config": "^0.6.0",
"@schedule-x/event-modal": "^0.6.0",
"@schedule-x/prettier-config": "^0.6.0",
"@schedule-x/theme-default": "^0.6.0",
"@types/react": "^18.2.43",

@@ -48,0 +48,0 @@ "@types/react-dom": "^18.2.17",

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