@youversion/platform-react-ui 1.0.1 → 1.2.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.
package/dist/index.cjs CHANGED
@@ -12808,7 +12808,9 @@ var BibleClient = class {
12808
12808
  * Fetches all books for a given Bible version.
12809
12809
  * @param versionId The version ID.
12810
12810
  * @param canon Optional canon filter ("old_testament", 'new_testament', 'deuterocanon').
12811
- * @returns An array of BibleBook objects.
12811
+ * @returns An array of BibleBook objects. Each book may include an optional `intro` field
12812
+ * containing metadata (id, passage_id, title) for the book's introduction when
12813
+ * available in the Bible version.
12812
12814
  */
12813
12815
  async getBooks(versionId, canon) {
12814
12816
  this.versionIdSchema.parse(versionId);
@@ -12820,7 +12822,9 @@ var BibleClient = class {
12820
12822
  * Fetches a specific book by USFM code for a given version.
12821
12823
  * @param versionId The version ID.
12822
12824
  * @param book The Book Identifier code of the book.
12823
- * @returns The requested BibleBook object.
12825
+ * @returns The requested BibleBook object, which may include an optional `intro` field
12826
+ * containing metadata (id, passage_id, title) for the book's introduction when
12827
+ * available. Use the `passage_id` with `getPassage()` to fetch intro content.
12824
12828
  */
12825
12829
  async getBook(versionId, book) {
12826
12830
  this.versionIdSchema.parse(versionId);
package/dist/index.js CHANGED
@@ -12763,7 +12763,9 @@ var BibleClient = class {
12763
12763
  * Fetches all books for a given Bible version.
12764
12764
  * @param versionId The version ID.
12765
12765
  * @param canon Optional canon filter ("old_testament", 'new_testament', 'deuterocanon').
12766
- * @returns An array of BibleBook objects.
12766
+ * @returns An array of BibleBook objects. Each book may include an optional `intro` field
12767
+ * containing metadata (id, passage_id, title) for the book's introduction when
12768
+ * available in the Bible version.
12767
12769
  */
12768
12770
  async getBooks(versionId, canon) {
12769
12771
  this.versionIdSchema.parse(versionId);
@@ -12775,7 +12777,9 @@ var BibleClient = class {
12775
12777
  * Fetches a specific book by USFM code for a given version.
12776
12778
  * @param versionId The version ID.
12777
12779
  * @param book The Book Identifier code of the book.
12778
- * @returns The requested BibleBook object.
12780
+ * @returns The requested BibleBook object, which may include an optional `intro` field
12781
+ * containing metadata (id, passage_id, title) for the book's introduction when
12782
+ * available. Use the `passage_id` with `getPassage()` to fetch intro content.
12779
12783
  */
12780
12784
  async getBook(versionId, book) {
12781
12785
  this.versionIdSchema.parse(versionId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youversion/platform-react-ui",
3
- "version": "1.0.1",
3
+ "version": "1.2.0",
4
4
  "description": "React SDK for YouVersion Platform",
5
5
  "license": "TBD",
6
6
  "type": "module",
@@ -39,8 +39,8 @@
39
39
  "lucide-react": "0.546.0",
40
40
  "tailwind-merge": "3.3.1",
41
41
  "tw-animate-css": "1.4.0",
42
- "@youversion/platform-core": "1.0.1",
43
- "@youversion/platform-react-hooks": "1.0.1"
42
+ "@youversion/platform-core": "1.2.0",
43
+ "@youversion/platform-react-hooks": "1.2.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=19.1.0 <20.0.0",
@@ -73,8 +73,8 @@
73
73
  "vite": "7.1.11",
74
74
  "vitest": "4.0.4",
75
75
  "vitest-browser-react": "2.0.2",
76
- "@internal/tsconfig": "0.0.0",
77
- "@internal/eslint-config": "0.0.0"
76
+ "@internal/eslint-config": "0.0.0",
77
+ "@internal/tsconfig": "0.0.0"
78
78
  },
79
79
  "publishConfig": {
80
80
  "access": "public",