@youversion/platform-react-ui 0.10.4 → 0.11.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/components/bible-reader.d.ts.map +1 -1
- package/dist/index.cjs +19 -3
- package/dist/index.js +17 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bible-reader.d.ts","sourceRoot":"","sources":["../../src/components/bible-reader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"bible-reader.d.ts","sourceRoot":"","sources":["../../src/components/bible-reader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAkC3E,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,iBAAS,IAAI,CAAC,EACZ,IAAI,EAAE,cAAc,EACpB,WAAmB,EACnB,YAAY,EACZ,OAAO,EAAE,iBAAiB,EAC1B,cAAoB,EACpB,eAAe,EACf,SAAS,EAAE,mBAAmB,EAC9B,gBAAsB,EACtB,eAAe,EACf,UAAU,EACV,QAAa,EACb,UAAU,EACV,gBAAuB,EACvB,UAAU,EACV,QAAQ,GACT,EAAE,SAAS,2CA+CX;AAED,iBAAS,OAAO,4CAwDf;AAED,iBAAS,OAAO,CAAC,EAAE,MAAc,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAA;CAAE,2CAuDjE;AAED,eAAO,MAAM,WAAW;;;;CAAgD,CAAC;AACzE,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -15216,6 +15216,7 @@ var BibleTextView = ({
|
|
|
15216
15216
|
};
|
|
15217
15217
|
|
|
15218
15218
|
// src/components/bible-reader.tsx
|
|
15219
|
+
var import_lucide_react5 = require("lucide-react");
|
|
15219
15220
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
15220
15221
|
var BibleReaderContext = (0, import_react4.createContext)(null);
|
|
15221
15222
|
function useBibleReaderContext() {
|
|
@@ -15315,7 +15316,22 @@ function Content4() {
|
|
|
15315
15316
|
showVerseNumbers
|
|
15316
15317
|
}
|
|
15317
15318
|
),
|
|
15318
|
-
version2?.copyright_short && /* @__PURE__ */ (0, import_jsx_runtime12.
|
|
15319
|
+
version2?.copyright_short && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("footer", { className: "yv:flex yv:flex-col yv:items-center yv:gap-2", style: { fontSize }, children: [
|
|
15320
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "yv:text-balance yv:text-[0.75em] yv:text-center yv:text-muted-foreground", children: version2.copyright_short }),
|
|
15321
|
+
version2.publisher_url ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
15322
|
+
"a",
|
|
15323
|
+
{
|
|
15324
|
+
className: "yv:flex yv:items-center yv:gap-1 yv:text-xs yv:font-bold",
|
|
15325
|
+
href: version2.publisher_url,
|
|
15326
|
+
target: "_blank",
|
|
15327
|
+
rel: "noopener noreferrer",
|
|
15328
|
+
children: [
|
|
15329
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react5.Info, { size: 12 }),
|
|
15330
|
+
" Learn More"
|
|
15331
|
+
]
|
|
15332
|
+
}
|
|
15333
|
+
) : null
|
|
15334
|
+
] })
|
|
15319
15335
|
] });
|
|
15320
15336
|
}
|
|
15321
15337
|
function Toolbar({ border = "top" }) {
|
|
@@ -15377,7 +15393,7 @@ var BibleReader = Object.assign({}, { Root: Root5, Content: Content4, Toolbar })
|
|
|
15377
15393
|
|
|
15378
15394
|
// src/components/YouVersionAuthButton.tsx
|
|
15379
15395
|
var import_react5 = __toESM(require("react"), 1);
|
|
15380
|
-
var
|
|
15396
|
+
var import_lucide_react6 = require("lucide-react");
|
|
15381
15397
|
var import_platform_react_hooks5 = require("@youversion/platform-react-hooks");
|
|
15382
15398
|
|
|
15383
15399
|
// src/components/icons/youversion-logo.tsx
|
|
@@ -15530,7 +15546,7 @@ var YouVersionAuthButton = import_react5.default.forwardRef(
|
|
|
15530
15546
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "yv:font-bold", children: "YouVersion" })
|
|
15531
15547
|
] });
|
|
15532
15548
|
}, [mode, auth.isAuthenticated, size, text]);
|
|
15533
|
-
const loadingSpinner = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
15549
|
+
const loadingSpinner = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react6.Loader2, { className: "yv:z-20 yv:absolute yv:left-1/2 yv:top-1/2 yv:animate-spin yv:-translate-x-1/2 yv:-translate-y-1/2 yv:fill-primary-foreground yv:text-primary" });
|
|
15534
15550
|
if (size === "icon") {
|
|
15535
15551
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
15536
15552
|
Button,
|
package/dist/index.js
CHANGED
|
@@ -15177,6 +15177,7 @@ var BibleTextView = ({
|
|
|
15177
15177
|
};
|
|
15178
15178
|
|
|
15179
15179
|
// src/components/bible-reader.tsx
|
|
15180
|
+
import { Info as Info2 } from "lucide-react";
|
|
15180
15181
|
import { jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
15181
15182
|
var BibleReaderContext = createContext3(null);
|
|
15182
15183
|
function useBibleReaderContext() {
|
|
@@ -15276,7 +15277,22 @@ function Content4() {
|
|
|
15276
15277
|
showVerseNumbers
|
|
15277
15278
|
}
|
|
15278
15279
|
),
|
|
15279
|
-
version2?.copyright_short && /* @__PURE__ */
|
|
15280
|
+
version2?.copyright_short && /* @__PURE__ */ jsxs5("footer", { className: "yv:flex yv:flex-col yv:items-center yv:gap-2", style: { fontSize }, children: [
|
|
15281
|
+
/* @__PURE__ */ jsx12("p", { className: "yv:text-balance yv:text-[0.75em] yv:text-center yv:text-muted-foreground", children: version2.copyright_short }),
|
|
15282
|
+
version2.publisher_url ? /* @__PURE__ */ jsxs5(
|
|
15283
|
+
"a",
|
|
15284
|
+
{
|
|
15285
|
+
className: "yv:flex yv:items-center yv:gap-1 yv:text-xs yv:font-bold",
|
|
15286
|
+
href: version2.publisher_url,
|
|
15287
|
+
target: "_blank",
|
|
15288
|
+
rel: "noopener noreferrer",
|
|
15289
|
+
children: [
|
|
15290
|
+
/* @__PURE__ */ jsx12(Info2, { size: 12 }),
|
|
15291
|
+
" Learn More"
|
|
15292
|
+
]
|
|
15293
|
+
}
|
|
15294
|
+
) : null
|
|
15295
|
+
] })
|
|
15280
15296
|
] });
|
|
15281
15297
|
}
|
|
15282
15298
|
function Toolbar({ border = "top" }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youversion/platform-react-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.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": "0.
|
|
43
|
-
"@youversion/platform-react-hooks": "0.
|
|
42
|
+
"@youversion/platform-core": "0.11.0",
|
|
43
|
+
"@youversion/platform-react-hooks": "0.11.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=19.1.0 <20.0.0",
|