@youversion/platform-react-ui 1.16.0 → 1.18.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-card.d.ts.map +1 -1
- package/dist/components/bible-reader.d.ts.map +1 -1
- package/dist/components/icons/chevron-left.d.ts +3 -0
- package/dist/components/icons/chevron-left.d.ts.map +1 -0
- package/dist/components/icons/chevron-right.d.ts +3 -0
- package/dist/components/icons/chevron-right.d.ts.map +1 -0
- package/dist/components/icons/exclamation-circle.d.ts +7 -0
- package/dist/components/icons/exclamation-circle.d.ts.map +1 -0
- package/dist/components/verse.d.ts +9 -1
- package/dist/components/verse.d.ts.map +1 -1
- package/dist/index.cjs +562 -317
- package/dist/index.js +561 -317
- package/dist/lib/verse-html-utils.d.ts +1 -0
- package/dist/lib/verse-html-utils.d.ts.map +1 -1
- package/dist/tailwind.css +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bible-card.d.ts","sourceRoot":"","sources":["../../src/components/bible-card.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bible-card.d.ts","sourceRoot":"","sources":["../../src/components/bible-card.tsx"],"names":[],"mappings":"AAWA,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAwEF,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAyB,GAC1B,EAAE,cAAc,GAAG,KAAK,CAAC,SAAS,CAuDlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bible-reader.d.ts","sourceRoot":"","sources":["../../src/components/bible-reader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bible-reader.d.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AAM,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAA;CAAE,2CAmNjE;AAED,eAAO,MAAM,WAAW;;;;CAAgD,CAAC;AACzE,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chevron-left.d.ts","sourceRoot":"","sources":["../../../src/components/icons/chevron-left.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1D,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAkB1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chevron-right.d.ts","sourceRoot":"","sources":["../../../src/components/icons/chevron-right.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1D,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAkB3E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentProps, ReactElement } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Circular exclamation icon for error/warning states (e.g. verse unavailable).
|
|
4
|
+
* Solid outline circle with bold exclamation for high visibility.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ExclamationCircle(props: ComponentProps<'svg'>): ReactElement;
|
|
7
|
+
//# sourceMappingURL=exclamation-circle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exclamation-circle.d.ts","sourceRoot":"","sources":["../../../src/components/icons/exclamation-circle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1D;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAgB5E"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
import { usePassage } from '@youversion/platform-react-hooks';
|
|
1
2
|
import { type FontFamily } from '@/lib/verse-html-utils';
|
|
3
|
+
type PassageResult = ReturnType<typeof usePassage>;
|
|
4
|
+
export type BibleTextViewPassageState = {
|
|
5
|
+
passage: PassageResult['passage'];
|
|
6
|
+
loading: PassageResult['loading'];
|
|
7
|
+
error: PassageResult['error'];
|
|
8
|
+
};
|
|
2
9
|
/**
|
|
3
10
|
* Represents a single verse with its number, text, and optional size.
|
|
4
11
|
*/
|
|
@@ -57,10 +64,11 @@ export type BibleTextViewProps = {
|
|
|
57
64
|
selectedVerses?: number[];
|
|
58
65
|
onVerseSelect?: (verses: number[]) => void;
|
|
59
66
|
highlightedVerses?: Record<number, boolean>;
|
|
67
|
+
passageState?: Partial<BibleTextViewPassageState>;
|
|
60
68
|
};
|
|
61
69
|
/**
|
|
62
70
|
* A component that renders style Bible text.
|
|
63
71
|
*/
|
|
64
|
-
export declare const BibleTextView: ({ reference, fontFamily, fontSize, lineHeight, versionId, showVerseNumbers, renderNotes, theme, selectedVerses, onVerseSelect, highlightedVerses, }: BibleTextViewProps) => React.ReactElement;
|
|
72
|
+
export declare const BibleTextView: ({ reference, fontFamily, fontSize, lineHeight, versionId, showVerseNumbers, renderNotes, theme, selectedVerses, onVerseSelect, highlightedVerses, passageState, }: BibleTextViewProps) => React.ReactElement;
|
|
65
73
|
export {};
|
|
66
74
|
//# sourceMappingURL=verse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verse.d.ts","sourceRoot":"","sources":["../../src/components/verse.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verse.d.ts","sourceRoot":"","sources":["../../src/components/verse.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAY,MAAM,kCAAkC,CAAC;AAYxE,OAAO,EAGL,KAAK,UAAU,EAEhB,MAAM,wBAAwB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