@tarekeldeeb/quran-madina-react 0.8.7 → 0.9.1

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
@@ -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
- }, [ready, page, sura, aya, words, headless, quotes, inline]);
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,11 @@ 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
+ * Hide the sura-title decoration line rendered when a `words` selection crosses into a new
31
+ * sura (the basmala, being real counted words, still renders). Ignored by page/aya renders.
32
+ */
33
+ notitle?: boolean;
29
34
  /** Set to "no" (or "false") to drop the quote marks shown around inline (single-line) renders. */
30
35
  quotes?: "no" | "auto" | "yes" | boolean | string;
31
36
  /**
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
- }, [ready, page, sura, aya, words, headless, quotes, inline]);
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.8.7",
3
+ "version": "0.9.1",
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",