@youversion/platform-react-hooks 1.14.0 → 1.14.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/.turbo/turbo-build.log +1 -1
- package/AGENTS.md +2 -2
- package/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/dist/useInitData.d.ts +2 -2
- package/dist/useInitData.d.ts.map +1 -1
- package/dist/useInitData.js +3 -2
- package/dist/useInitData.js.map +1 -1
- package/package.json +2 -2
- package/src/useInitData.ts +4 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @youversion/platform-react-hooks@1.14.
|
|
2
|
+
> @youversion/platform-react-hooks@1.14.1 build /home/runner/work/platform-sdk-react/platform-sdk-react/packages/hooks
|
|
3
3
|
> tsc -p tsconfig.build.json
|
|
4
4
|
|
package/AGENTS.md
CHANGED
|
@@ -102,7 +102,7 @@ import { useChapter, useVersion, useVerseOfTheDay } from '@youversion/platform-r
|
|
|
102
102
|
// Fetch a Bible chapter
|
|
103
103
|
function ChapterView() {
|
|
104
104
|
const { chapter, loading, error } = useChapter(
|
|
105
|
-
|
|
105
|
+
3034, // versionId (e.g., 3034 = Berean Standard Bible)
|
|
106
106
|
'JHN', // book (USFM abbreviation)
|
|
107
107
|
3 // chapter number
|
|
108
108
|
);
|
|
@@ -114,7 +114,7 @@ function ChapterView() {
|
|
|
114
114
|
|
|
115
115
|
// Fetch Bible version metadata
|
|
116
116
|
function VersionInfo() {
|
|
117
|
-
const { version, loading } = useVersion(
|
|
117
|
+
const { version, loading } = useVersion(3034);
|
|
118
118
|
if (loading) return <div>Loading...</div>;
|
|
119
119
|
return <div>{version?.name} ({version?.abbreviation})</div>;
|
|
120
120
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @youversion/platform-react-hooks
|
|
2
2
|
|
|
3
|
+
## 1.14.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 51d97e5: Standardized our default Bible Version to one that does not require opt-in license to use, so that our components work out of the box by default
|
|
8
|
+
- Updated dependencies [51d97e5]
|
|
9
|
+
- @youversion/platform-core@1.14.1
|
|
10
|
+
|
|
3
11
|
## 1.14.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ Get your App Key at [platform.youversion.com](https://platform.youversion.com/)
|
|
|
30
30
|
import { YouVersionProvider, usePassage } from '@youversion/platform-react-hooks';
|
|
31
31
|
|
|
32
32
|
function BibleVerse() {
|
|
33
|
-
const { passage, loading } = usePassage({ versionId:
|
|
33
|
+
const { passage, loading } = usePassage({ versionId: 3034, usfm: 'JHN.3.16' });
|
|
34
34
|
if (loading) return <div>Loading...</div>;
|
|
35
35
|
return <div dangerouslySetInnerHTML={{ __html: passage?.content || '' }} />;
|
|
36
36
|
}
|
package/dist/useInitData.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BibleChapter, BibleVersion
|
|
1
|
+
import type { BibleBook, BibleChapter, BibleVersion } from '@youversion/platform-core';
|
|
2
2
|
export declare const DEFAULT: {
|
|
3
|
-
readonly VERSION:
|
|
3
|
+
readonly VERSION: 3034;
|
|
4
4
|
readonly BOOK: "GEN";
|
|
5
5
|
readonly CHAPTER: 1;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInitData.d.ts","sourceRoot":"","sources":["../src/useInitData.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useInitData.d.ts","sourceRoot":"","sources":["../src/useInitData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAMvF,eAAO,MAAM,OAAO;;;;CAIV,CAAC;AAEX,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,QAAQ;IAChB,OAAO,EAAE,YAAY,CAAC;IACtB,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,YAAY,CAAC;CACvB;AAED,wBAAgB,WAAW,CACzB,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAE,KAI3B,GACA;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;CACvB,CAoBA"}
|
package/dist/useInitData.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DEFAULT_LICENSE_FREE_BIBLE_VERSION } from '@youversion/platform-core';
|
|
2
2
|
import { useBook } from './useBook';
|
|
3
3
|
import { useChapter } from './useChapter';
|
|
4
|
+
import { useVersion } from './useVersion';
|
|
4
5
|
export const DEFAULT = {
|
|
5
|
-
VERSION:
|
|
6
|
+
VERSION: DEFAULT_LICENSE_FREE_BIBLE_VERSION,
|
|
6
7
|
BOOK: 'GEN',
|
|
7
8
|
CHAPTER: 1,
|
|
8
9
|
};
|
package/dist/useInitData.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInitData.js","sourceRoot":"","sources":["../src/useInitData.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useInitData.js","sourceRoot":"","sources":["../src/useInitData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kCAAkC,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,OAAO,EAAE,kCAAkC;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|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@youversion/platform-core": "1.14.
|
|
25
|
+
"@youversion/platform-core": "1.14.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=19.1.0 <20.0.0"
|
package/src/useInitData.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { BibleBook, BibleChapter, BibleVersion } from '@youversion/platform-core';
|
|
2
|
+
import { DEFAULT_LICENSE_FREE_BIBLE_VERSION } from '@youversion/platform-core';
|
|
2
3
|
import { useBook } from './useBook';
|
|
3
4
|
import { useChapter } from './useChapter';
|
|
4
|
-
import
|
|
5
|
+
import { useVersion } from './useVersion';
|
|
5
6
|
|
|
6
7
|
export const DEFAULT = {
|
|
7
|
-
VERSION:
|
|
8
|
+
VERSION: DEFAULT_LICENSE_FREE_BIBLE_VERSION,
|
|
8
9
|
BOOK: 'GEN',
|
|
9
10
|
CHAPTER: 1,
|
|
10
11
|
} as const;
|