akfatimeline 2.3.2 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -14
  2. package/src/library.js +9 -6
package/package.json CHANGED
@@ -1,22 +1,10 @@
1
1
  {
2
2
  "name": "akfatimeline",
3
- "version": "2.3.2",
3
+ "version": "2.3.4",
4
4
  "description": "A customizable timeline component for React applications with disableDates, custom header buttons, and past date protection features",
5
5
  "main": "./dist/library.js",
6
6
  "module": "./dist/library.js",
7
7
  "types": "./dist/library.js",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/library.js",
11
- "require": "./dist/Timeline.js",
12
- "default": "./dist/library.js"
13
- },
14
- "./AutocompleteSelect": {
15
- "import": "./dist/components/Timeline/AutocompleteSelect.jsx",
16
- "require": "./dist/components/Timeline/AutocompleteSelect.js",
17
- "default": "./dist/components/Timeline/AutocompleteSelect.jsx"
18
- }
19
- },
20
8
  "files": [
21
9
  "dist",
22
10
  "src",
@@ -24,7 +12,7 @@
24
12
  "CHANGELOG.md"
25
13
  ],
26
14
  "dependencies": {
27
- "akfatimeline": "^2.2.1",
15
+ "akfatimeline": "^2.3.3",
28
16
  "react": "^19.2.3",
29
17
  "react-dom": "^19.2.3",
30
18
  "react-scripts": "^5.0.1",
package/src/library.js CHANGED
@@ -7,10 +7,17 @@ import EventBadge from "./components/Timeline/EventBadge.jsx";
7
7
  import LoadingSpinner from "./components/Timeline/LoadingSpinner.jsx";
8
8
  import AutocompleteSelect from "./components/Timeline/AutocompleteSelect.jsx";
9
9
 
10
- // Ana Timeline component'i default export
10
+ // CSS dosyası package.json'da exports altında tanımlı
11
+ // Kullanım: import 'akfatimeline/components/Timeline/Timeline.css'
12
+ import "./components/Timeline/Timeline.css";
13
+
14
+ // Ana Timeline component'i default export (import akfatimeline from 'akfatimeline' için)
11
15
  export default Timeline;
12
16
 
13
- // Named exports - İsteğe bağlı kullanım için
17
+ // Named export (import { akfatimeline } from 'akfatimeline' için)
18
+ export { Timeline as akfatimeline };
19
+
20
+ // Diğer named exports - İsteğe bağlı kullanım için
14
21
  export {
15
22
  DailyView,
16
23
  ContextMenu,
@@ -21,7 +28,3 @@ export {
21
28
  AutocompleteSelect,
22
29
  };
23
30
 
24
- // CSS dosyası package.json'da exports altında tanımlı
25
- // Kullanım: import 'akfatimeline/components/Timeline/Timeline.css'
26
- import "./components/Timeline/Timeline.css";
27
-