@churchapps/content-providers 0.4.1 → 0.5.1
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.
- package/README.md +14 -16
- package/dist/index.cjs +441 -846
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +78 -148
- package/dist/index.d.ts +78 -148
- package/dist/index.js +436 -845
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,34 +41,32 @@ const plan = await provider.getPresentations(serviceId);
|
|
|
41
41
|
|
|
42
42
|
### Built-in Providers
|
|
43
43
|
|
|
44
|
-
- **B1ChurchProvider** - B1.Church
|
|
45
|
-
- **
|
|
46
|
-
- **
|
|
44
|
+
- **B1ChurchProvider** - B1.Church plans (merges plan items with lesson venues and external providers)
|
|
45
|
+
- **LessonsChurchProvider** - Lessons.church curriculum and add-ons
|
|
46
|
+
- **PlanningCenterProvider** - Planning Center Services (browse only)
|
|
47
47
|
- **BibleProjectProvider** - Bible Project videos
|
|
48
48
|
- **APlayProvider** - A.Play media library
|
|
49
|
-
- **SignPresenterProvider** - Sign Presenter
|
|
49
|
+
- **SignPresenterProvider** - Sign Presenter playlists
|
|
50
|
+
- **DropboxProvider** - Media files from a Dropbox account
|
|
51
|
+
- **JesusFilmProvider** - Jesus Film Project (Arclight API)
|
|
52
|
+
- **CbnProvider** - CBN Superbook curriculum
|
|
53
|
+
- **HighVoltageKidsProvider** - High Voltage Kids curriculum (static catalog)
|
|
54
|
+
- **LifeChurchProvider** - Life.Church kids curriculum (static catalog)
|
|
50
55
|
|
|
51
56
|
### Create a Custom Provider
|
|
52
57
|
|
|
53
58
|
```typescript
|
|
54
|
-
import {
|
|
59
|
+
import { BaseProvider, registerProvider } from '@churchapps/content-providers';
|
|
55
60
|
|
|
56
|
-
class MyProvider extends
|
|
57
|
-
//
|
|
61
|
+
class MyProvider extends BaseProvider {
|
|
62
|
+
// Declare id/name/logos/config/requiresAuth/authTypes/capabilities and implement browse().
|
|
63
|
+
// Optionally implement getPlaylist()/getInstructions(); the protected apiRequest() helper
|
|
64
|
+
// performs authenticated JSON fetches against config.apiBase.
|
|
58
65
|
}
|
|
59
66
|
|
|
60
67
|
registerProvider(new MyProvider());
|
|
61
68
|
```
|
|
62
69
|
|
|
63
|
-
### Utilities
|
|
64
|
-
|
|
65
|
-
```typescript
|
|
66
|
-
import { detectMediaType } from '@churchapps/content-providers';
|
|
67
|
-
|
|
68
|
-
detectMediaType('https://example.com/video.mp4'); // 'video'
|
|
69
|
-
detectMediaType('https://example.com/image.png'); // 'image'
|
|
70
|
-
```
|
|
71
|
-
|
|
72
70
|
## Get Involved
|
|
73
71
|
|
|
74
72
|
### 🤝 Help Support Us
|