Skip to content

Commit 48d63e6

Browse files
authored
feat: use plugin hook (#229)
1 parent b0f882a commit 48d63e6

File tree

5 files changed

+93
-102
lines changed

5 files changed

+93
-102
lines changed

CHANGELOG.md

Lines changed: 20 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,143 +4,123 @@ All notable changes to this project will be documented in this file. See [Conven
44

55
## [2.13.3](https://github.com/schedule-x/react/compare/v2.13.2...v2.13.3) (2025-01-17)
66

7-
87
### Bug Fixes
98

10-
* **deps:** update schedule-x monorepo packages to v2.14.3 ([#225](https://github.com/schedule-x/react/issues/225)) ([a237786](https://github.com/schedule-x/react/commit/a23778621ac98790815ec426bca0444b9fd317b8))
9+
- **deps:** update schedule-x monorepo packages to v2.14.3 ([#225](https://github.com/schedule-x/react/issues/225)) ([a237786](https://github.com/schedule-x/react/commit/a23778621ac98790815ec426bca0444b9fd317b8))
1110

1211
## [2.13.2](https://github.com/schedule-x/react/compare/v2.13.1...v2.13.2) (2025-01-16)
1312

14-
1513
### Bug Fixes
1614

17-
* **deps:** update schedule-x monorepo packages to v2.14.2 ([#222](https://github.com/schedule-x/react/issues/222)) ([6afa6f7](https://github.com/schedule-x/react/commit/6afa6f73a6fb772b31c95a46ac6c16012a0042d0))
15+
- **deps:** update schedule-x monorepo packages to v2.14.2 ([#222](https://github.com/schedule-x/react/issues/222)) ([6afa6f7](https://github.com/schedule-x/react/commit/6afa6f73a6fb772b31c95a46ac6c16012a0042d0))
1816

1917
## [2.13.1](https://github.com/schedule-x/react/compare/v2.13.0...v2.13.1) (2025-01-15)
2018

21-
2219
### Bug Fixes
2320

24-
* use destroy method ([#223](https://github.com/schedule-x/react/issues/223)) ([38cf182](https://github.com/schedule-x/react/commit/38cf182aab253cf9ef1397e40c50a58120980ece))
21+
- use destroy method ([#223](https://github.com/schedule-x/react/issues/223)) ([38cf182](https://github.com/schedule-x/react/commit/38cf182aab253cf9ef1397e40c50a58120980ece))
2522

2623
# [2.13.0](https://github.com/schedule-x/react/compare/v2.12.1...v2.13.0) (2025-01-06)
2724

28-
2925
### Features
3026

31-
* update schedule-x monorepo packages to v2.13.0 ([#220](https://github.com/schedule-x/react/issues/220)) ([cf7ccbd](https://github.com/schedule-x/react/commit/cf7ccbd3b30e81b8e8c0aa42681de2f175bb974c))
27+
- update schedule-x monorepo packages to v2.13.0 ([#220](https://github.com/schedule-x/react/issues/220)) ([cf7ccbd](https://github.com/schedule-x/react/commit/cf7ccbd3b30e81b8e8c0aa42681de2f175bb974c))
3228

3329
## [2.12.1](https://github.com/schedule-x/react/compare/v2.12.0...v2.12.1) (2024-12-23)
3430

35-
3631
### Bug Fixes
3732

38-
* **deps:** update schedule-x monorepo packages to v2.12.1 ([#218](https://github.com/schedule-x/react/issues/218)) ([5f84855](https://github.com/schedule-x/react/commit/5f848556b207b3f5b72a6fdc664d1a37da712ec5))
33+
- **deps:** update schedule-x monorepo packages to v2.12.1 ([#218](https://github.com/schedule-x/react/issues/218)) ([5f84855](https://github.com/schedule-x/react/commit/5f848556b207b3f5b72a6fdc664d1a37da712ec5))
3934

4035
# [2.12.0](https://github.com/schedule-x/react/compare/v2.11.0...v2.12.0) (2024-12-20)
4136

42-
4337
### Features
4438

45-
* update schedule-x monorepo packages to v2.12.0 ([#217](https://github.com/schedule-x/react/issues/217)) ([8d6f8f6](https://github.com/schedule-x/react/commit/8d6f8f62200bcaaa89809d36df84a7d34fd7ffb3))
39+
- update schedule-x monorepo packages to v2.12.0 ([#217](https://github.com/schedule-x/react/issues/217)) ([8d6f8f6](https://github.com/schedule-x/react/commit/8d6f8f62200bcaaa89809d36df84a7d34fd7ffb3))
4640

4741
# [2.11.0](https://github.com/schedule-x/react/compare/v2.10.0...v2.11.0) (2024-12-12)
4842

49-
5043
### Features
5144

52-
* offer compat with react 19 ([#215](https://github.com/schedule-x/react/issues/215)) ([8eccb4a](https://github.com/schedule-x/react/commit/8eccb4a165178aad8291687f8ab560f63819037f))
45+
- offer compat with react 19 ([#215](https://github.com/schedule-x/react/issues/215)) ([8eccb4a](https://github.com/schedule-x/react/commit/8eccb4a165178aad8291687f8ab560f63819037f))
5346

5447
# [2.10.0](https://github.com/schedule-x/react/compare/v2.9.0...v2.10.0) (2024-12-10)
5548

56-
5749
### Features
5850

59-
* update schedule-x monorepo packages to v2.11.0 ([#214](https://github.com/schedule-x/react/issues/214)) ([7b382f9](https://github.com/schedule-x/react/commit/7b382f9dba6ef7e8ea5bf634fa6572bd790f168c))
51+
- update schedule-x monorepo packages to v2.11.0 ([#214](https://github.com/schedule-x/react/issues/214)) ([7b382f9](https://github.com/schedule-x/react/commit/7b382f9dba6ef7e8ea5bf634fa6572bd790f168c))
6052

6153
# [2.9.0](https://github.com/schedule-x/react/compare/v2.8.0...v2.9.0) (2024-12-03)
6254

63-
6455
### Features
6556

66-
* update schedule-x monorepo packages to v2.10.0 ([#209](https://github.com/schedule-x/react/issues/209)) ([cace2ef](https://github.com/schedule-x/react/commit/cace2efbdbc30c0924aa0c595f1306f259da5ba1))
57+
- update schedule-x monorepo packages to v2.10.0 ([#209](https://github.com/schedule-x/react/issues/209)) ([cace2ef](https://github.com/schedule-x/react/commit/cace2efbdbc30c0924aa0c595f1306f259da5ba1))
6758

6859
# [2.8.0](https://github.com/schedule-x/react/compare/v2.7.1...v2.8.0) (2024-11-30)
6960

70-
7161
### Features
7262

73-
* update schedule-x monorepo packages to v2.9.0 ([#208](https://github.com/schedule-x/react/issues/208)) ([d1827c7](https://github.com/schedule-x/react/commit/d1827c7a35c0d051b6a159d20975daac1d56e7c2))
63+
- update schedule-x monorepo packages to v2.9.0 ([#208](https://github.com/schedule-x/react/issues/208)) ([d1827c7](https://github.com/schedule-x/react/commit/d1827c7a35c0d051b6a159d20975daac1d56e7c2))
7464

7565
## [2.7.1](https://github.com/schedule-x/react/compare/v2.7.0...v2.7.1) (2024-11-29)
7666

77-
7867
### Bug Fixes
7968

80-
* update schedule-x monorepo packages to v2.8.1 ([#207](https://github.com/schedule-x/react/issues/207)) ([cd7cf5a](https://github.com/schedule-x/react/commit/cd7cf5a11c0554af9ce714336f9b5d64a6f955da))
69+
- update schedule-x monorepo packages to v2.8.1 ([#207](https://github.com/schedule-x/react/issues/207)) ([cd7cf5a](https://github.com/schedule-x/react/commit/cd7cf5a11c0554af9ce714336f9b5d64a6f955da))
8170

8271
# [2.7.0](https://github.com/schedule-x/react/compare/v2.6.0...v2.7.0) (2024-11-28)
8372

84-
8573
### Features
8674

87-
* update schedule-x monorepo packages to v2.8.0 ([#205](https://github.com/schedule-x/react/issues/205)) ([c5f5abc](https://github.com/schedule-x/react/commit/c5f5abc216a7cf0aef0478639aff5fa4b74ac4f2))
75+
- update schedule-x monorepo packages to v2.8.0 ([#205](https://github.com/schedule-x/react/issues/205)) ([c5f5abc](https://github.com/schedule-x/react/commit/c5f5abc216a7cf0aef0478639aff5fa4b74ac4f2))
8876

8977
# [2.6.0](https://github.com/schedule-x/react/compare/v2.5.0...v2.6.0) (2024-11-25)
9078

91-
9279
### Features
9380

94-
* update schedule-x monorepo packages to v2.7.0 ([#204](https://github.com/schedule-x/react/issues/204)) ([36804f2](https://github.com/schedule-x/react/commit/36804f29eee3d95c1ecd2fee0738ae5c916b0241))
81+
- update schedule-x monorepo packages to v2.7.0 ([#204](https://github.com/schedule-x/react/issues/204)) ([36804f2](https://github.com/schedule-x/react/commit/36804f29eee3d95c1ecd2fee0738ae5c916b0241))
9582

9683
# [2.5.0](https://github.com/schedule-x/react/compare/v2.4.2...v2.5.0) (2024-11-15)
9784

98-
9985
### Features
10086

101-
* update schedule-x monorepo packages to v2.6.0 ([#203](https://github.com/schedule-x/react/issues/203)) ([a779bea](https://github.com/schedule-x/react/commit/a779bea5be2d70576528dcd092fd50d2825756b8))
87+
- update schedule-x monorepo packages to v2.6.0 ([#203](https://github.com/schedule-x/react/issues/203)) ([a779bea](https://github.com/schedule-x/react/commit/a779bea5be2d70576528dcd092fd50d2825756b8))
10288

10389
## [2.4.2](https://github.com/schedule-x/react/compare/v2.4.1...v2.4.2) (2024-11-08)
10490

105-
10691
### Bug Fixes
10792

108-
* update schedule-x monorepo packages to v2.4.3 ([#202](https://github.com/schedule-x/react/issues/202)) ([e265972](https://github.com/schedule-x/react/commit/e2659724cdc78f798b492b75bfcf0f49a84ac38e))
93+
- update schedule-x monorepo packages to v2.4.3 ([#202](https://github.com/schedule-x/react/issues/202)) ([e265972](https://github.com/schedule-x/react/commit/e2659724cdc78f798b492b75bfcf0f49a84ac38e))
10994

11095
## [2.4.1](https://github.com/schedule-x/react/compare/v2.4.0...v2.4.1) (2024-10-10)
11196

112-
11397
### Bug Fixes
11498

115-
* update schedule-x monorepo packages to v2.4.1 ([#196](https://github.com/schedule-x/react/issues/196)) ([d251282](https://github.com/schedule-x/react/commit/d251282fab2c6d7b6d1656f06ad164c9f60fa28f))
99+
- update schedule-x monorepo packages to v2.4.1 ([#196](https://github.com/schedule-x/react/issues/196)) ([d251282](https://github.com/schedule-x/react/commit/d251282fab2c6d7b6d1656f06ad164c9f60fa28f))
116100

117101
# [2.4.0](https://github.com/schedule-x/react/compare/v2.3.0...v2.4.0) (2024-10-05)
118102

119-
120103
### Features
121104

122-
* update schedule-x monorepo packages to v2.4.0 ([#195](https://github.com/schedule-x/react/issues/195)) ([22c8675](https://github.com/schedule-x/react/commit/22c86750326c6ef7041ecefb90b1866773f8b630))
105+
- update schedule-x monorepo packages to v2.4.0 ([#195](https://github.com/schedule-x/react/issues/195)) ([22c8675](https://github.com/schedule-x/react/commit/22c86750326c6ef7041ecefb90b1866773f8b630))
123106

124107
# [2.3.0](https://github.com/schedule-x/react/compare/v2.2.0...v2.3.0) (2024-10-04)
125108

126-
127109
### Features
128110

129-
* update schedule-x monorepo packages to v2.3.0 ([#191](https://github.com/schedule-x/react/issues/191)) ([31bf94a](https://github.com/schedule-x/react/commit/31bf94a717ffa0ac62000c23fc58a53ed6a172f4))
111+
- update schedule-x monorepo packages to v2.3.0 ([#191](https://github.com/schedule-x/react/issues/191)) ([31bf94a](https://github.com/schedule-x/react/commit/31bf94a717ffa0ac62000c23fc58a53ed6a172f4))
130112

131113
# [2.2.0](https://github.com/schedule-x/react/compare/v2.1.2...v2.2.0) (2024-10-01)
132114

133-
134115
### Features
135116

136-
* bump to 2.3.0 and add custom component ([#194](https://github.com/schedule-x/react/issues/194)) ([8fd7208](https://github.com/schedule-x/react/commit/8fd72088613a2fea3efd2b2eab2983fab432c7a2))
117+
- bump to 2.3.0 and add custom component ([#194](https://github.com/schedule-x/react/issues/194)) ([8fd7208](https://github.com/schedule-x/react/commit/8fd72088613a2fea3efd2b2eab2983fab432c7a2))
137118

138119
## [2.1.2](https://github.com/schedule-x/react/compare/v2.1.1...v2.1.2) (2024-09-27)
139120

140-
141121
### Bug Fixes
142122

143-
* remove default param for plugins ([#193](https://github.com/schedule-x/react/issues/193)) ([ea4877c](https://github.com/schedule-x/react/commit/ea4877cb15ddb71a79b265ebbd64aacacf3ca750))
123+
- remove default param for plugins ([#193](https://github.com/schedule-x/react/issues/193)) ([ea4877c](https://github.com/schedule-x/react/commit/ea4877cb15ddb71a79b265ebbd64aacacf3ca750))
144124

145125
## [2.1.1](https://github.com/schedule-x/react/compare/v2.1.0...v2.1.1) (2024-09-27)
146126

package-lock.json

Lines changed: 45 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
"build": "rollup -c && npm run build:dts",
2626
"build:dts": "node scripts/build-declarations.mjs",
2727
"test": "./node_modules/.bin/cypress run",
28-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 5",
28+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 10",
2929
"preview": "vite preview",
3030
"format": "prettier --write .",
3131
"build:publish": "npm run build && npm publish"
3232
},
3333
"peerDependencies": {
34-
"@schedule-x/calendar": "^2.14.1",
34+
"@schedule-x/calendar": "^2.15.1",
3535
"react": "^16.7.0 || ^17 || ^18 || ^19",
3636
"react-dom": "^16.7.0 || ^17 || ^18 || ^19"
3737
},
@@ -40,15 +40,15 @@
4040
"@rollup/plugin-commonjs": "^28.0.0",
4141
"@rollup/plugin-node-resolve": "^16.0.0",
4242
"@rollup/plugin-typescript": "^11.1.5",
43-
"@schedule-x/calendar-controls": "^2.14.1",
44-
"@schedule-x/drag-and-drop": "^2.14.1",
45-
"@schedule-x/e2e-testing": "^2.14.1",
46-
"@schedule-x/eslint-config": "^2.14.1",
47-
"@schedule-x/event-modal": "^2.14.1",
48-
"@schedule-x/events-service": "^2.14.1",
49-
"@schedule-x/prettier-config": "^2.14.1",
50-
"@schedule-x/shared": "^2.14.1",
51-
"@schedule-x/theme-default": "^2.0.0",
43+
"@schedule-x/calendar-controls": "^2.15.1",
44+
"@schedule-x/drag-and-drop": "^2.15.1",
45+
"@schedule-x/e2e-testing": "^2.15.1",
46+
"@schedule-x/eslint-config": "^2.15.1",
47+
"@schedule-x/event-modal": "^2.15.1",
48+
"@schedule-x/events-service": "^2.15.1",
49+
"@schedule-x/prettier-config": "^2.15.1",
50+
"@schedule-x/shared": "^2.15.1",
51+
"@schedule-x/theme-default": "^2.15.1",
5252
"@semantic-release/changelog": "^6.0.3",
5353
"@semantic-release/git": "^10.0.1",
5454
"@types/react": "^18.2.43",

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export { ScheduleXCalendar } from './schedule-x-calendar.tsx'
22
export { useCalendarApp, useNextCalendarApp } from './use-calendar-app.tsx'
3+
export { usePlugin } from './use-plugin.ts'

0 commit comments

Comments
 (0)