@schedule-x/react
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -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') | ||
}) | ||
}) |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
34462
48
815
0