@tarekeldeeb/quran-madina-react 0.8.8 → 0.9.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.
- package/dist/index.cjs +3 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -75,6 +75,7 @@ function QuranMadinaHtml({
|
|
|
75
75
|
headless,
|
|
76
76
|
quotes,
|
|
77
77
|
inline,
|
|
78
|
+
notitle,
|
|
78
79
|
// loader config (only honored on first mount, see loadQuranMadinaHtml)
|
|
79
80
|
src,
|
|
80
81
|
cdn,
|
|
@@ -119,6 +120,7 @@ function QuranMadinaHtml({
|
|
|
119
120
|
set("headless", headless);
|
|
120
121
|
set("quotes", quotes);
|
|
121
122
|
set("inline", inline);
|
|
122
|
-
|
|
123
|
+
set("notitle", notitle);
|
|
124
|
+
}, [ready, page, sura, aya, words, headless, quotes, inline, notitle]);
|
|
123
125
|
return import_react.default.createElement(TAG, { ref, class: className, style, ...rest });
|
|
124
126
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,12 @@ export interface QuranMadinaHtmlProps
|
|
|
26
26
|
words?: string;
|
|
27
27
|
/** Drop the header / copy chrome and render only the Quran text. */
|
|
28
28
|
headless?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* When a `words` selection crosses into a new sura, hide its name text while keeping the
|
|
31
|
+
* decorated title line (the ornamental frame stays, empty); the basmala, being real counted
|
|
32
|
+
* words, still renders. Ignored by page/aya renders.
|
|
33
|
+
*/
|
|
34
|
+
notitle?: boolean;
|
|
29
35
|
/** Set to "no" (or "false") to drop the quote marks shown around inline (single-line) renders. */
|
|
30
36
|
quotes?: "no" | "auto" | "yes" | boolean | string;
|
|
31
37
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -39,6 +39,7 @@ function QuranMadinaHtml({
|
|
|
39
39
|
headless,
|
|
40
40
|
quotes,
|
|
41
41
|
inline,
|
|
42
|
+
notitle,
|
|
42
43
|
// loader config (only honored on first mount, see loadQuranMadinaHtml)
|
|
43
44
|
src,
|
|
44
45
|
cdn,
|
|
@@ -83,7 +84,8 @@ function QuranMadinaHtml({
|
|
|
83
84
|
set("headless", headless);
|
|
84
85
|
set("quotes", quotes);
|
|
85
86
|
set("inline", inline);
|
|
86
|
-
|
|
87
|
+
set("notitle", notitle);
|
|
88
|
+
}, [ready, page, sura, aya, words, headless, quotes, inline, notitle]);
|
|
87
89
|
return React.createElement(TAG, { ref, class: className, style, ...rest });
|
|
88
90
|
}
|
|
89
91
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarekeldeeb/quran-madina-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "React wrapper for the quran-madina-html custom element — render Madina-style Quran pages (no images) in React on web and mobile (via a Capacitor WebView).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|