@ebarooni/capacitor-calendar 6.4.1 → 6.6.0

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 (40) hide show
  1. package/README.md +53 -5
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendar.kt +200 -117
  4. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +85 -3
  5. package/assets/images/text-logo.png +0 -0
  6. package/dist/docs.json +467 -70
  7. package/dist/esm/definitions.d.ts +205 -57
  8. package/dist/esm/definitions.js.map +1 -1
  9. package/dist/esm/index.d.ts +18 -14
  10. package/dist/esm/index.js +12 -9
  11. package/dist/esm/index.js.map +1 -1
  12. package/dist/esm/schemas/enums/calendar-source-type.d.ts +38 -0
  13. package/dist/esm/schemas/enums/calendar-source-type.js +40 -0
  14. package/dist/esm/schemas/enums/calendar-source-type.js.map +1 -0
  15. package/dist/esm/schemas/enums/calendar-type.d.ts +28 -0
  16. package/dist/esm/schemas/enums/calendar-type.js +30 -0
  17. package/dist/esm/schemas/enums/calendar-type.js.map +1 -0
  18. package/dist/esm/schemas/enums/event-span.d.ts +16 -0
  19. package/dist/esm/schemas/enums/event-span.js +18 -0
  20. package/dist/esm/schemas/enums/event-span.js.map +1 -0
  21. package/dist/esm/schemas/interfaces/calendar-event.d.ts +14 -3
  22. package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
  23. package/dist/esm/schemas/interfaces/calendar-source.d.ts +15 -0
  24. package/dist/esm/schemas/interfaces/calendar-source.js +2 -0
  25. package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -0
  26. package/dist/esm/schemas/interfaces/calendar.d.ts +43 -2
  27. package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
  28. package/dist/esm/web.d.ts +55 -11
  29. package/dist/esm/web.js +13 -2
  30. package/dist/esm/web.js.map +1 -1
  31. package/dist/plugin.cjs.js +101 -2
  32. package/dist/plugin.cjs.js.map +1 -1
  33. package/dist/plugin.js +101 -2
  34. package/dist/plugin.js.map +1 -1
  35. package/ios/Plugin/CapacitorCalendar.swift +238 -21
  36. package/ios/Plugin/CapacitorCalendarPlugin.m +4 -0
  37. package/ios/Plugin/CapacitorCalendarPlugin.swift +141 -15
  38. package/ios/Plugin/CapacitorReminders.swift +62 -8
  39. package/ios/Plugin/EventCreationParameters.swift +5 -2
  40. package/package.json +28 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebarooni/capacitor-calendar",
3
- "version": "6.4.1",
3
+ "version": "6.6.0",
4
4
  "description": "The Capacitor Calendar Plugin enables full calendar functionality on iOS and Android, with added reminder support for iOS devices.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -11,7 +11,9 @@
11
11
  "android/build.gradle",
12
12
  "dist/",
13
13
  "ios/Plugin/",
14
- "EbarooniCapacitorCalendar.podspec"
14
+ "EbarooniCapacitorCalendar.podspec",
15
+ "LICENSE.txt",
16
+ "assets/images/text-logo.png"
15
17
  ],
16
18
  "author": "Ehsan Barooni",
17
19
  "license": "MIT",
@@ -42,47 +44,54 @@
42
44
  "verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..",
43
45
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
44
46
  "verify:web": "npm run build",
47
+ "prettier:check": "npx prettier . --check",
48
+ "prettier:fix": "npx prettier . --write",
45
49
  "swiftlint": "node-swiftlint",
46
50
  "ktlint": "ktlint 'android/src/main/java/**'",
47
- "lint:ts": "npx eslint . --ext .ts",
48
- "lint:html": "npx eslint . --ext .html",
51
+ "lint:ts-html": "npx eslint",
49
52
  "lint:css": "npx stylelint \"**/*.(css|scss)\"",
50
53
  "lint:swift": "npm run swiftlint -- lint",
51
54
  "lint:kt": "npm run ktlint",
52
- "lint": "npm run lint:ts && npm run lint:html && npm run lint:css && npm run lint:swift && npm run lint:kt",
53
- "fmt:ts": "npx eslint . --ext .ts --fix",
54
- "fmt:html": "npx eslint . --ext .html --fix",
55
+ "lint": "npm run lint:ts-html && npm run lint:css && npm run lint:swift && npm run lint:kt",
56
+ "fmt:ts-html": "npx eslint --fix",
55
57
  "fmt:css": "npx stylelint \"**/*.(css|scss)\" --fix",
56
58
  "fmt:swift": "npm run swiftlint -- --fix --format",
57
59
  "fmt:md": "npx prettier --write \"**/*.md\"",
58
60
  "fmt:kt": "npm run ktlint -- -F",
59
- "fmt": "npm run fmt:ts && npm run fmt:html && npm run fmt:css && npm run fmt:swift && npm run fmt:md && npm run fmt:kt",
61
+ "fmt": "npm run fmt:ts-html && npm run fmt:css && npm run fmt:swift && npm run fmt:md && npm run fmt:kt",
60
62
  "docgen:api": "docgen --api CapacitorCalendarPlugin --output-readme documentation.md --output-json dist/docs.json",
61
63
  "docgen:readme": "docgen --api CapacitorCalendarPlugin --output-readme README.md",
62
64
  "clean": "rm -rf ./dist",
63
65
  "build": "npm run clean && npm run docgen:api && npm run docgen:readme && tsc && rollup -c rollup.config.mjs",
64
- "prepublishOnly": "npm run build"
66
+ "prepublishOnly": "npm run build",
67
+ "serve": "cd example && npx ng serve"
65
68
  },
66
69
  "devDependencies": {
67
- "@angular-eslint/eslint-plugin": "^17.3.0",
68
- "@angular-eslint/eslint-plugin-template": "^17.3.0",
69
- "@angular-eslint/template-parser": "^17.3.0",
70
70
  "@angular/cli": "^17.1.2",
71
71
  "@capacitor/android": "^6.0.0",
72
72
  "@capacitor/cli": "^6.0.0",
73
73
  "@capacitor/core": "^6.0.0",
74
74
  "@capacitor/docgen": "^0.0.18",
75
75
  "@capacitor/ios": "^6.0.0",
76
- "@typescript-eslint/eslint-plugin": "^7.3.0",
77
- "@typescript-eslint/parser": "^7.3.0",
78
- "eslint": "^8.57.0",
76
+ "@ebarooni/eslint-config": "^1.0.0",
77
+ "@ebarooni/prettier-config": "^1.1.0",
78
+ "@ebarooni/stylelint-config": "^1.1.0",
79
+ "@ebarooni/swiftlint-config": "^1.1.0",
80
+ "@eslint/js": "^9.4.0",
81
+ "@types/eslint__js": "^8.42.3",
82
+ "angular-eslint": "^18.0.1",
83
+ "eslint": "^9.4.0",
79
84
  "eslint-config-prettier": "^9.1.0",
80
85
  "eslint-plugin-prettier": "^5.1.3",
81
- "prettier": "~3.2.5",
86
+ "postcss": "^8.4.38",
87
+ "prettier": "^3.3.2",
82
88
  "rollup": "^4.17.0",
89
+ "stylelint": "^16.6.1",
90
+ "stylelint-config-standard-scss": "^13.1.0",
83
91
  "stylelint-prettier": "^5.0.0",
84
- "swiftlint": "^1.0.1",
85
- "typescript": "~5.4.2"
92
+ "swiftlint": "^1.0.2",
93
+ "typescript": "~5.4.2",
94
+ "typescript-eslint": "^8.0.0-alpha.20"
86
95
  },
87
96
  "peerDependencies": {
88
97
  "@capacitor/core": "^6.0.0"
@@ -95,6 +104,7 @@
95
104
  "src": "android"
96
105
  }
97
106
  },
107
+ "prettier": "@ebarooni/prettier-config",
98
108
  "publishConfig": {
99
109
  "access": "public"
100
110
  }