@youversion/platform-react-ui 0.8.1 → 0.8.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"YouVersionAuthButton.d.ts","sourceRoot":"","sources":["../../src/components/YouVersionAuthButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,oCAAoC,EAAE,MAAM,2BAA2B,CAAC;AAMtF,UAAU,eAAe;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,oCAAoC,EAAE,CAAC;IACrD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,yBACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,eAAe;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;IACnC;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;IACpC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;;;;;;;SASK;IACL,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;CACtC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,eAAO,MAAM,oBAAoB,qGAmIhC,CAAC"}
1
+ {"version":3,"file":"YouVersionAuthButton.d.ts","sourceRoot":"","sources":["../../src/components/YouVersionAuthButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,oCAAoC,EAAE,MAAM,2BAA2B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B,eAAe,CAAC,EAC9B,SAAS,EACT,SAAS,EACT,UAAoB,GACrB,EAAE,oBAAoB,GAAG,KAAK,CAAC,SAAS,CAuCxC"}
1
+ {"version":3,"file":"bible-widget-view.d.ts","sourceRoot":"","sources":["../../src/components/bible-widget-view.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC/B,CAAC;AACF,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,SAAS,EACT,UAAoB,GACrB,EAAE,oBAAoB,GAAG,KAAK,CAAC,SAAS,CAsCxC"}
package/dist/index.cjs CHANGED
@@ -14362,7 +14362,7 @@ function Root3({
14362
14362
  children: [
14363
14363
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AccordionTrigger, { className: "yv:rounded-none", children: bookItem.title }),
14364
14364
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AccordionContent, { children: bookItem.chapters && bookItem.chapters.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "yv:grid yv:grid-cols-5 yv:gap-2", children: bookItem.chapters.map((chapterRef) => {
14365
- const chapterId = chapterRef.split(".").pop() || "";
14365
+ const chapterId = chapterRef.passage_id.split(".").pop() || "";
14366
14366
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14367
14367
  Button,
14368
14368
  {
@@ -14376,7 +14376,7 @@ function Root3({
14376
14376
  },
14377
14377
  children: !chapterId.toLowerCase().includes("intro") ? chapterId : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.Info, {})
14378
14378
  }
14379
- ) }, `${bookItem.id}-${chapterRef}`);
14379
+ ) }, `${bookItem.id}-${chapterRef.passage_id}`);
14380
14380
  }) }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "yv:w-full yv:flex yv:items-center yv:justify-center yv:py-4 yv:text-muted-foreground yv:text-sm", children: "No chapters available" }) })
14381
14381
  ]
14382
14382
  },
@@ -14410,7 +14410,7 @@ function Trigger3({ asChild = true, children, ...props }) {
14410
14410
  const currentBook = books?.data?.find((bookItem) => bookItem.id === book);
14411
14411
  const buttonText = loading ? "Loading..." : `${currentBook?.title || "Select a chapter"}${chapter ? ` ${chapter}` : ""}`;
14412
14412
  const content = typeof children === "function" ? children({ book, chapter, currentBook, loading }) : children || /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Button, { variant: background === "light" ? "outline" : "default", children: buttonText });
14413
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverTrigger, { asChild, ...props, children: content });
14413
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverTrigger, { "data-yv-sdk": true, asChild, ...props, children: content });
14414
14414
  }
14415
14415
  var BibleChapterPicker = Object.assign({}, { Root: Root3, Trigger: Trigger3 });
14416
14416
 
@@ -14659,7 +14659,7 @@ function Trigger4({ asChild = true, children, ...props }) {
14659
14659
  {
14660
14660
  variant: background === "light" ? "outline" : "default",
14661
14661
  className: "yv:cursor-pointer",
14662
- children: version2?.local_abbreviation || "Select"
14662
+ children: version2?.localized_abbreviation || "Select"
14663
14663
  }
14664
14664
  );
14665
14665
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(PopoverTrigger, { asChild, ...props, children: content });
@@ -14766,7 +14766,7 @@ function Content3() {
14766
14766
  {
14767
14767
  variant: "icon",
14768
14768
  className: "yv:rounded-[8px] yv:size-12 yv:border-border",
14769
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "yv:font-serif yv:font-bold", children: version2.local_abbreviation })
14769
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "yv:font-serif yv:font-bold", children: version2.localized_abbreviation })
14770
14770
  }
14771
14771
  ),
14772
14772
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ItemContent, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ItemTitle, { className: "yv:line-clamp-2", children: version2.title }) })
@@ -15060,7 +15060,6 @@ function Root5({
15060
15060
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(BibleReaderContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
15061
15061
  "div",
15062
15062
  {
15063
- "data-yv-sdk": true,
15064
15063
  "data-yv-theme": background === "dark" ? "dark" : "light",
15065
15064
  className: "yv:flex yv:flex-col yv:h-full yv:bg-background yv:text-foreground",
15066
15065
  children
@@ -15133,7 +15132,7 @@ function Toolbar({ border = "top" }) {
15133
15132
  onVersionChange: setVersionId,
15134
15133
  background,
15135
15134
  children: [
15136
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(BibleVersionPicker.Trigger, { "aria-label": "Change Bible version", children: ({ version: version2, loading }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Button, { variant: "secondary", className: "yv:rounded-l-none", disabled: loading, children: loading ? "Loading..." : version2?.local_abbreviation || "Select version" }) }),
15135
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(BibleVersionPicker.Trigger, { "aria-label": "Change Bible version", children: ({ version: version2, loading }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Button, { variant: "secondary", className: "yv:rounded-l-none", disabled: loading, children: loading ? "Loading..." : version2?.localized_abbreviation || "Select version" }) }),
15137
15136
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(BibleVersionPicker.Content, {})
15138
15137
  ]
15139
15138
  }
@@ -15312,7 +15311,6 @@ var YouVersionAuthButton = import_react5.default.forwardRef(
15312
15311
  variant === "outline" ? "yv:border" : "yv:border-none",
15313
15312
  className
15314
15313
  ),
15315
- "data-yv-sdk": true,
15316
15314
  disabled: buttonLoading ? true : disabled ?? false,
15317
15315
  ref,
15318
15316
  onClick: (e) => void handleClick(e),
@@ -15342,7 +15340,6 @@ var YouVersionAuthButton = import_react5.default.forwardRef(
15342
15340
  variant === "outline" ? "yv:border" : "yv:border-none",
15343
15341
  className
15344
15342
  ),
15345
- "data-yv-sdk": true,
15346
15343
  disabled: buttonLoading ? true : disabled ?? false,
15347
15344
  ref,
15348
15345
  onClick: (e) => void handleClick(e),
@@ -15568,10 +15565,10 @@ function VerseOfTheDay({
15568
15565
  referenceText = "Loading...";
15569
15566
  } else if (errorPassage || errorVerseOfTheDay) {
15570
15567
  referenceText = "Error loading verse";
15571
- } else if (passage?.human_reference && version2?.local_abbreviation) {
15572
- referenceText = `${passage?.human_reference} ${version2?.local_abbreviation}`;
15573
- } else if (passage?.human_reference) {
15574
- referenceText = passage?.human_reference;
15568
+ } else if (passage?.reference && version2?.localized_abbreviation) {
15569
+ referenceText = `${passage?.reference} ${version2?.localized_abbreviation}`;
15570
+ } else if (passage?.reference) {
15571
+ referenceText = passage?.reference;
15575
15572
  } else {
15576
15573
  referenceText = "No verse found";
15577
15574
  }
@@ -15662,14 +15659,13 @@ function BibleWidgetView({
15662
15659
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
15663
15660
  "section",
15664
15661
  {
15665
- "data-yv-sdk": true,
15666
15662
  "data-yv-theme": background === "dark" ? "dark" : "light",
15667
15663
  className: "yv:flex yv:flex-col yv:bg-card yv:p-6 yv:max-w-md yv:rounded-2xl",
15668
15664
  children: [
15669
- passage?.human_reference ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("h2", { className: "yv:font-bold yv:tracking-widest yv:text-xs yv:uppercase", children: [
15670
- passage.human_reference,
15665
+ passage?.reference ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("h2", { className: "yv:font-bold yv:tracking-widest yv:text-xs yv:uppercase", children: [
15666
+ passage.reference,
15671
15667
  " ",
15672
- version2?.local_abbreviation
15668
+ version2?.localized_abbreviation
15673
15669
  ] }) : null,
15674
15670
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
15675
15671
  BibleTextView,
package/dist/index.js CHANGED
@@ -14316,7 +14316,7 @@ function Root3({
14316
14316
  children: [
14317
14317
  /* @__PURE__ */ jsx6(AccordionTrigger, { className: "yv:rounded-none", children: bookItem.title }),
14318
14318
  /* @__PURE__ */ jsx6(AccordionContent, { children: bookItem.chapters && bookItem.chapters.length > 0 ? /* @__PURE__ */ jsx6("div", { className: "yv:grid yv:grid-cols-5 yv:gap-2", children: bookItem.chapters.map((chapterRef) => {
14319
- const chapterId = chapterRef.split(".").pop() || "";
14319
+ const chapterId = chapterRef.passage_id.split(".").pop() || "";
14320
14320
  return /* @__PURE__ */ jsx6(PopoverClose, { asChild: true, children: /* @__PURE__ */ jsx6(
14321
14321
  Button,
14322
14322
  {
@@ -14330,7 +14330,7 @@ function Root3({
14330
14330
  },
14331
14331
  children: !chapterId.toLowerCase().includes("intro") ? chapterId : /* @__PURE__ */ jsx6(Info, {})
14332
14332
  }
14333
- ) }, `${bookItem.id}-${chapterRef}`);
14333
+ ) }, `${bookItem.id}-${chapterRef.passage_id}`);
14334
14334
  }) }) : /* @__PURE__ */ jsx6("div", { className: "yv:w-full yv:flex yv:items-center yv:justify-center yv:py-4 yv:text-muted-foreground yv:text-sm", children: "No chapters available" }) })
14335
14335
  ]
14336
14336
  },
@@ -14364,7 +14364,7 @@ function Trigger3({ asChild = true, children, ...props }) {
14364
14364
  const currentBook = books?.data?.find((bookItem) => bookItem.id === book);
14365
14365
  const buttonText = loading ? "Loading..." : `${currentBook?.title || "Select a chapter"}${chapter ? ` ${chapter}` : ""}`;
14366
14366
  const content = typeof children === "function" ? children({ book, chapter, currentBook, loading }) : children || /* @__PURE__ */ jsx6(Button, { variant: background === "light" ? "outline" : "default", children: buttonText });
14367
- return /* @__PURE__ */ jsx6(PopoverTrigger, { asChild, ...props, children: content });
14367
+ return /* @__PURE__ */ jsx6(PopoverTrigger, { "data-yv-sdk": true, asChild, ...props, children: content });
14368
14368
  }
14369
14369
  var BibleChapterPicker = Object.assign({}, { Root: Root3, Trigger: Trigger3 });
14370
14370
 
@@ -14618,7 +14618,7 @@ function Trigger4({ asChild = true, children, ...props }) {
14618
14618
  {
14619
14619
  variant: background === "light" ? "outline" : "default",
14620
14620
  className: "yv:cursor-pointer",
14621
- children: version2?.local_abbreviation || "Select"
14621
+ children: version2?.localized_abbreviation || "Select"
14622
14622
  }
14623
14623
  );
14624
14624
  return /* @__PURE__ */ jsx9(PopoverTrigger, { asChild, ...props, children: content });
@@ -14725,7 +14725,7 @@ function Content3() {
14725
14725
  {
14726
14726
  variant: "icon",
14727
14727
  className: "yv:rounded-[8px] yv:size-12 yv:border-border",
14728
- children: /* @__PURE__ */ jsx9("span", { className: "yv:font-serif yv:font-bold", children: version2.local_abbreviation })
14728
+ children: /* @__PURE__ */ jsx9("span", { className: "yv:font-serif yv:font-bold", children: version2.localized_abbreviation })
14729
14729
  }
14730
14730
  ),
14731
14731
  /* @__PURE__ */ jsx9(ItemContent, { children: /* @__PURE__ */ jsx9(ItemTitle, { className: "yv:line-clamp-2", children: version2.title }) })
@@ -15019,7 +15019,6 @@ function Root5({
15019
15019
  return /* @__PURE__ */ jsx11(BibleReaderContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx11(
15020
15020
  "div",
15021
15021
  {
15022
- "data-yv-sdk": true,
15023
15022
  "data-yv-theme": background === "dark" ? "dark" : "light",
15024
15023
  className: "yv:flex yv:flex-col yv:h-full yv:bg-background yv:text-foreground",
15025
15024
  children
@@ -15092,7 +15091,7 @@ function Toolbar({ border = "top" }) {
15092
15091
  onVersionChange: setVersionId,
15093
15092
  background,
15094
15093
  children: [
15095
- /* @__PURE__ */ jsx11(BibleVersionPicker.Trigger, { "aria-label": "Change Bible version", children: ({ version: version2, loading }) => /* @__PURE__ */ jsx11(Button, { variant: "secondary", className: "yv:rounded-l-none", disabled: loading, children: loading ? "Loading..." : version2?.local_abbreviation || "Select version" }) }),
15094
+ /* @__PURE__ */ jsx11(BibleVersionPicker.Trigger, { "aria-label": "Change Bible version", children: ({ version: version2, loading }) => /* @__PURE__ */ jsx11(Button, { variant: "secondary", className: "yv:rounded-l-none", disabled: loading, children: loading ? "Loading..." : version2?.localized_abbreviation || "Select version" }) }),
15096
15095
  /* @__PURE__ */ jsx11(BibleVersionPicker.Content, {})
15097
15096
  ]
15098
15097
  }
@@ -15271,7 +15270,6 @@ var YouVersionAuthButton = React9.forwardRef(
15271
15270
  variant === "outline" ? "yv:border" : "yv:border-none",
15272
15271
  className
15273
15272
  ),
15274
- "data-yv-sdk": true,
15275
15273
  disabled: buttonLoading ? true : disabled ?? false,
15276
15274
  ref,
15277
15275
  onClick: (e) => void handleClick(e),
@@ -15301,7 +15299,6 @@ var YouVersionAuthButton = React9.forwardRef(
15301
15299
  variant === "outline" ? "yv:border" : "yv:border-none",
15302
15300
  className
15303
15301
  ),
15304
- "data-yv-sdk": true,
15305
15302
  disabled: buttonLoading ? true : disabled ?? false,
15306
15303
  ref,
15307
15304
  onClick: (e) => void handleClick(e),
@@ -15532,10 +15529,10 @@ function VerseOfTheDay({
15532
15529
  referenceText = "Loading...";
15533
15530
  } else if (errorPassage || errorVerseOfTheDay) {
15534
15531
  referenceText = "Error loading verse";
15535
- } else if (passage?.human_reference && version2?.local_abbreviation) {
15536
- referenceText = `${passage?.human_reference} ${version2?.local_abbreviation}`;
15537
- } else if (passage?.human_reference) {
15538
- referenceText = passage?.human_reference;
15532
+ } else if (passage?.reference && version2?.localized_abbreviation) {
15533
+ referenceText = `${passage?.reference} ${version2?.localized_abbreviation}`;
15534
+ } else if (passage?.reference) {
15535
+ referenceText = passage?.reference;
15539
15536
  } else {
15540
15537
  referenceText = "No verse found";
15541
15538
  }
@@ -15626,14 +15623,13 @@ function BibleWidgetView({
15626
15623
  return /* @__PURE__ */ jsxs12(
15627
15624
  "section",
15628
15625
  {
15629
- "data-yv-sdk": true,
15630
15626
  "data-yv-theme": background === "dark" ? "dark" : "light",
15631
15627
  className: "yv:flex yv:flex-col yv:bg-card yv:p-6 yv:max-w-md yv:rounded-2xl",
15632
15628
  children: [
15633
- passage?.human_reference ? /* @__PURE__ */ jsxs12("h2", { className: "yv:font-bold yv:tracking-widest yv:text-xs yv:uppercase", children: [
15634
- passage.human_reference,
15629
+ passage?.reference ? /* @__PURE__ */ jsxs12("h2", { className: "yv:font-bold yv:tracking-widest yv:text-xs yv:uppercase", children: [
15630
+ passage.reference,
15635
15631
  " ",
15636
- version2?.local_abbreviation
15632
+ version2?.localized_abbreviation
15637
15633
  ] }) : null,
15638
15634
  /* @__PURE__ */ jsx18(
15639
15635
  BibleTextView,
@@ -0,0 +1,20 @@
1
+ export declare const mockBooks: {
2
+ data: {
3
+ id: string;
4
+ title: string;
5
+ full_title: string;
6
+ abbreviation: string;
7
+ canon: string;
8
+ chapters: {
9
+ id: string;
10
+ passage_id: string;
11
+ title: string;
12
+ verses: {
13
+ id: string;
14
+ passage_id: string;
15
+ title: string;
16
+ }[];
17
+ }[];
18
+ }[];
19
+ };
20
+ //# sourceMappingURL=books.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"books.d.ts","sourceRoot":"","sources":["../../../src/test/mock-data/books.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;CAi/CrB,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare const mockChapters: {
2
+ data: {
3
+ id: string;
4
+ book_id: string;
5
+ passage_id: string;
6
+ title: string;
7
+ verses: string[];
8
+ }[];
9
+ };
10
+ //# sourceMappingURL=chapters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chapters.d.ts","sourceRoot":"","sources":["../../../src/test/mock-data/chapters.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;CAu5DxB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youversion/platform-react-ui",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
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-react-hooks": "0.8.1",
43
- "@youversion/platform-core": "0.8.1"
42
+ "@youversion/platform-core": "0.8.2",
43
+ "@youversion/platform-react-hooks": "0.8.2"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=19.1.0 <20.0.0",