@roxyapi/ui-react 0.53.3 → 1.1.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.
Files changed (339) hide show
  1. package/AGENTS.md +33 -38
  2. package/README.md +42 -73
  3. package/dist/components/almanac-day.d.ts +0 -1
  4. package/dist/components/almanac-day.js +1 -2
  5. package/dist/components/angel-number-card.d.ts +0 -1
  6. package/dist/components/angel-number-card.js +1 -2
  7. package/dist/components/angel-number-lookup.d.ts +0 -1
  8. package/dist/components/angel-number-lookup.js +1 -2
  9. package/dist/components/arudha-padas.d.ts +0 -1
  10. package/dist/components/arudha-padas.js +1 -2
  11. package/dist/components/ashtakavarga-grid.d.ts +0 -1
  12. package/dist/components/ashtakavarga-grid.js +1 -2
  13. package/dist/components/aspects-table.d.ts +0 -1
  14. package/dist/components/aspects-table.js +1 -2
  15. package/dist/components/astrocartography-map.d.ts +0 -1
  16. package/dist/components/astrocartography-map.js +1 -2
  17. package/dist/components/bazi-chart.d.ts +0 -1
  18. package/dist/components/bazi-chart.js +1 -2
  19. package/dist/components/bhav-chalit-table.d.ts +0 -1
  20. package/dist/components/bhav-chalit-table.js +1 -2
  21. package/dist/components/bhava-bala-table.d.ts +0 -1
  22. package/dist/components/bhava-bala-table.js +1 -2
  23. package/dist/components/biorhythm-chart.d.ts +0 -1
  24. package/dist/components/biorhythm-chart.js +1 -2
  25. package/dist/components/bodygraph.d.ts +0 -1
  26. package/dist/components/bodygraph.js +1 -2
  27. package/dist/components/chara-karakas.d.ts +0 -1
  28. package/dist/components/chara-karakas.js +1 -2
  29. package/dist/components/choghadiya-grid.d.ts +0 -1
  30. package/dist/components/choghadiya-grid.js +1 -2
  31. package/dist/components/compatibility-card.d.ts +0 -1
  32. package/dist/components/compatibility-card.js +1 -2
  33. package/dist/components/compound-number.d.ts +0 -1
  34. package/dist/components/compound-number.js +1 -2
  35. package/dist/components/crystal-card.d.ts +0 -1
  36. package/dist/components/crystal-card.js +1 -2
  37. package/dist/components/crystal-grid.d.ts +0 -1
  38. package/dist/components/crystal-grid.js +1 -2
  39. package/dist/components/dasha-timeline.d.ts +0 -1
  40. package/dist/components/dasha-timeline.js +1 -2
  41. package/dist/components/data.d.ts +0 -1
  42. package/dist/components/data.js +1 -2
  43. package/dist/components/divisional-chart.d.ts +0 -1
  44. package/dist/components/divisional-chart.js +1 -2
  45. package/dist/components/dosha-card.d.ts +0 -1
  46. package/dist/components/dosha-card.js +1 -2
  47. package/dist/components/dosha-constitution.d.ts +0 -1
  48. package/dist/components/dosha-constitution.js +1 -2
  49. package/dist/components/dream-card.d.ts +0 -1
  50. package/dist/components/dream-card.js +1 -2
  51. package/dist/components/dream-search.d.ts +0 -1
  52. package/dist/components/dream-search.js +1 -2
  53. package/dist/components/endpoint-form.d.ts +0 -1
  54. package/dist/components/endpoint-form.js +1 -2
  55. package/dist/components/ephemeris-table.d.ts +0 -1
  56. package/dist/components/ephemeris-table.js +1 -2
  57. package/dist/components/fixed-stars.d.ts +0 -1
  58. package/dist/components/fixed-stars.js +1 -2
  59. package/dist/components/flying-star-chart.d.ts +0 -1
  60. package/dist/components/flying-star-chart.js +1 -2
  61. package/dist/components/forecast-digest.d.ts +0 -1
  62. package/dist/components/forecast-digest.js +1 -2
  63. package/dist/components/forecast-timeline.d.ts +0 -1
  64. package/dist/components/forecast-timeline.js +1 -2
  65. package/dist/components/gematria.d.ts +0 -1
  66. package/dist/components/gematria.js +1 -2
  67. package/dist/components/gochara-table.d.ts +0 -1
  68. package/dist/components/gochara-table.js +1 -2
  69. package/dist/components/guna-milan.d.ts +0 -1
  70. package/dist/components/guna-milan.js +1 -2
  71. package/dist/components/hd-connection.d.ts +0 -1
  72. package/dist/components/hd-connection.js +1 -2
  73. package/dist/components/hd-penta.d.ts +0 -1
  74. package/dist/components/hd-penta.js +1 -2
  75. package/dist/components/hd-type-card.d.ts +0 -1
  76. package/dist/components/hd-type-card.js +1 -2
  77. package/dist/components/hd-variables.d.ts +0 -1
  78. package/dist/components/hd-variables.js +1 -2
  79. package/dist/components/heliacal-table.d.ts +0 -1
  80. package/dist/components/heliacal-table.js +1 -2
  81. package/dist/components/hexagram.d.ts +0 -1
  82. package/dist/components/hexagram.js +1 -2
  83. package/dist/components/hora-table.d.ts +0 -1
  84. package/dist/components/hora-table.js +1 -2
  85. package/dist/components/horoscope-card.d.ts +0 -1
  86. package/dist/components/horoscope-card.js +1 -2
  87. package/dist/components/kp-chart.d.ts +0 -1
  88. package/dist/components/kp-chart.js +1 -2
  89. package/dist/components/kp-finance-card.d.ts +0 -1
  90. package/dist/components/kp-finance-card.js +1 -2
  91. package/dist/components/kp-planets-table.d.ts +0 -1
  92. package/dist/components/kp-planets-table.js +1 -2
  93. package/dist/components/kp-ruling-planets.d.ts +0 -1
  94. package/dist/components/kp-ruling-planets.js +1 -2
  95. package/dist/components/kua-card.d.ts +0 -1
  96. package/dist/components/kua-card.js +1 -2
  97. package/dist/components/local-space-compass.d.ts +0 -1
  98. package/dist/components/local-space-compass.js +1 -2
  99. package/dist/components/location-search.d.ts +0 -1
  100. package/dist/components/location-search.js +1 -2
  101. package/dist/components/luck-pillars.d.ts +0 -1
  102. package/dist/components/luck-pillars.js +1 -2
  103. package/dist/components/mayan-day-sign.d.ts +0 -1
  104. package/dist/components/mayan-day-sign.js +1 -2
  105. package/dist/components/moon-phase.d.ts +0 -1
  106. package/dist/components/moon-phase.js +1 -2
  107. package/dist/components/nakshatra-card.d.ts +0 -1
  108. package/dist/components/nakshatra-card.js +1 -2
  109. package/dist/components/natal-chart.d.ts +0 -1
  110. package/dist/components/natal-chart.js +1 -2
  111. package/dist/components/numerology-card.d.ts +0 -1
  112. package/dist/components/numerology-card.js +1 -2
  113. package/dist/components/panchang-table.d.ts +0 -1
  114. package/dist/components/panchang-table.js +1 -2
  115. package/dist/components/positions-table.d.ts +0 -1
  116. package/dist/components/positions-table.js +1 -2
  117. package/dist/components/profection-card.d.ts +0 -1
  118. package/dist/components/profection-card.js +1 -2
  119. package/dist/components/reference-card.d.ts +0 -1
  120. package/dist/components/reference-card.js +1 -2
  121. package/dist/components/relocation-wheel.d.ts +0 -1
  122. package/dist/components/relocation-wheel.js +1 -2
  123. package/dist/components/shadbala-table.d.ts +0 -1
  124. package/dist/components/shadbala-table.js +1 -2
  125. package/dist/components/synastry-chart.d.ts +0 -1
  126. package/dist/components/synastry-chart.js +1 -2
  127. package/dist/components/tarot-card.d.ts +0 -1
  128. package/dist/components/tarot-card.js +1 -2
  129. package/dist/components/tarot-catalog.d.ts +0 -1
  130. package/dist/components/tarot-catalog.js +1 -2
  131. package/dist/components/tarot-spread.d.ts +0 -1
  132. package/dist/components/tarot-spread.js +1 -2
  133. package/dist/components/transit-wheel.d.ts +0 -1
  134. package/dist/components/transit-wheel.js +1 -2
  135. package/dist/components/transits-table.d.ts +0 -1
  136. package/dist/components/transits-table.js +1 -2
  137. package/dist/components/upagraha-table.d.ts +0 -1
  138. package/dist/components/upagraha-table.js +1 -2
  139. package/dist/components/vastu-mandala.d.ts +0 -1
  140. package/dist/components/vastu-mandala.js +1 -2
  141. package/dist/components/vedic-aspects.d.ts +0 -1
  142. package/dist/components/vedic-aspects.js +1 -2
  143. package/dist/components/vedic-daily.d.ts +0 -1
  144. package/dist/components/vedic-daily.js +1 -2
  145. package/dist/components/vedic-kundli.d.ts +0 -1
  146. package/dist/components/vedic-kundli.js +1 -2
  147. package/dist/components/vedic-planets-table.d.ts +0 -1
  148. package/dist/components/vedic-planets-table.js +1 -2
  149. package/dist/components/western-planets-table.d.ts +0 -1
  150. package/dist/components/western-planets-table.js +1 -2
  151. package/dist/components/yoga-list.d.ts +0 -1
  152. package/dist/components/yoga-list.js +1 -2
  153. package/dist/components/zodiac-card.d.ts +0 -1
  154. package/dist/components/zodiac-card.js +1 -2
  155. package/dist/generated/tool-components.d.ts +0 -1
  156. package/dist/index.cjs +1 -2
  157. package/dist/index.d.ts +0 -1
  158. package/dist/index.js +1 -2
  159. package/dist/jsx.cjs +0 -1
  160. package/dist/jsx.d.ts +2 -3
  161. package/dist/jsx.js +0 -1
  162. package/dist/load-ui.d.ts +2 -3
  163. package/dist/load-ui.js +1 -2
  164. package/dist/tool-component.cjs +0 -1
  165. package/dist/tool-component.d.ts +0 -1
  166. package/dist/tool-component.js +0 -1
  167. package/dist/types/index.d.ts +1 -2
  168. package/dist/types/types.gen.d.ts +48 -37
  169. package/dist/utils/compact.d.ts +0 -1
  170. package/dist/utils/tool-component.d.ts +0 -1
  171. package/package.json +1 -1
  172. package/dist/components/almanac-day.d.ts.map +0 -1
  173. package/dist/components/almanac-day.js.map +0 -7
  174. package/dist/components/angel-number-card.d.ts.map +0 -1
  175. package/dist/components/angel-number-card.js.map +0 -7
  176. package/dist/components/angel-number-lookup.d.ts.map +0 -1
  177. package/dist/components/angel-number-lookup.js.map +0 -7
  178. package/dist/components/arudha-padas.d.ts.map +0 -1
  179. package/dist/components/arudha-padas.js.map +0 -7
  180. package/dist/components/ashtakavarga-grid.d.ts.map +0 -1
  181. package/dist/components/ashtakavarga-grid.js.map +0 -7
  182. package/dist/components/aspects-table.d.ts.map +0 -1
  183. package/dist/components/aspects-table.js.map +0 -7
  184. package/dist/components/astrocartography-map.d.ts.map +0 -1
  185. package/dist/components/astrocartography-map.js.map +0 -7
  186. package/dist/components/bazi-chart.d.ts.map +0 -1
  187. package/dist/components/bazi-chart.js.map +0 -7
  188. package/dist/components/bhav-chalit-table.d.ts.map +0 -1
  189. package/dist/components/bhav-chalit-table.js.map +0 -7
  190. package/dist/components/bhava-bala-table.d.ts.map +0 -1
  191. package/dist/components/bhava-bala-table.js.map +0 -7
  192. package/dist/components/biorhythm-chart.d.ts.map +0 -1
  193. package/dist/components/biorhythm-chart.js.map +0 -7
  194. package/dist/components/bodygraph.d.ts.map +0 -1
  195. package/dist/components/bodygraph.js.map +0 -7
  196. package/dist/components/chara-karakas.d.ts.map +0 -1
  197. package/dist/components/chara-karakas.js.map +0 -7
  198. package/dist/components/choghadiya-grid.d.ts.map +0 -1
  199. package/dist/components/choghadiya-grid.js.map +0 -7
  200. package/dist/components/compatibility-card.d.ts.map +0 -1
  201. package/dist/components/compatibility-card.js.map +0 -7
  202. package/dist/components/compound-number.d.ts.map +0 -1
  203. package/dist/components/compound-number.js.map +0 -7
  204. package/dist/components/crystal-card.d.ts.map +0 -1
  205. package/dist/components/crystal-card.js.map +0 -7
  206. package/dist/components/crystal-grid.d.ts.map +0 -1
  207. package/dist/components/crystal-grid.js.map +0 -7
  208. package/dist/components/dasha-timeline.d.ts.map +0 -1
  209. package/dist/components/dasha-timeline.js.map +0 -7
  210. package/dist/components/data.d.ts.map +0 -1
  211. package/dist/components/data.js.map +0 -7
  212. package/dist/components/divisional-chart.d.ts.map +0 -1
  213. package/dist/components/divisional-chart.js.map +0 -7
  214. package/dist/components/dosha-card.d.ts.map +0 -1
  215. package/dist/components/dosha-card.js.map +0 -7
  216. package/dist/components/dosha-constitution.d.ts.map +0 -1
  217. package/dist/components/dosha-constitution.js.map +0 -7
  218. package/dist/components/dream-card.d.ts.map +0 -1
  219. package/dist/components/dream-card.js.map +0 -7
  220. package/dist/components/dream-search.d.ts.map +0 -1
  221. package/dist/components/dream-search.js.map +0 -7
  222. package/dist/components/endpoint-form.d.ts.map +0 -1
  223. package/dist/components/endpoint-form.js.map +0 -7
  224. package/dist/components/ephemeris-table.d.ts.map +0 -1
  225. package/dist/components/ephemeris-table.js.map +0 -7
  226. package/dist/components/fixed-stars.d.ts.map +0 -1
  227. package/dist/components/fixed-stars.js.map +0 -7
  228. package/dist/components/flying-star-chart.d.ts.map +0 -1
  229. package/dist/components/flying-star-chart.js.map +0 -7
  230. package/dist/components/forecast-digest.d.ts.map +0 -1
  231. package/dist/components/forecast-digest.js.map +0 -7
  232. package/dist/components/forecast-timeline.d.ts.map +0 -1
  233. package/dist/components/forecast-timeline.js.map +0 -7
  234. package/dist/components/gematria.d.ts.map +0 -1
  235. package/dist/components/gematria.js.map +0 -7
  236. package/dist/components/gochara-table.d.ts.map +0 -1
  237. package/dist/components/gochara-table.js.map +0 -7
  238. package/dist/components/guna-milan.d.ts.map +0 -1
  239. package/dist/components/guna-milan.js.map +0 -7
  240. package/dist/components/hd-connection.d.ts.map +0 -1
  241. package/dist/components/hd-connection.js.map +0 -7
  242. package/dist/components/hd-penta.d.ts.map +0 -1
  243. package/dist/components/hd-penta.js.map +0 -7
  244. package/dist/components/hd-type-card.d.ts.map +0 -1
  245. package/dist/components/hd-type-card.js.map +0 -7
  246. package/dist/components/hd-variables.d.ts.map +0 -1
  247. package/dist/components/hd-variables.js.map +0 -7
  248. package/dist/components/heliacal-table.d.ts.map +0 -1
  249. package/dist/components/heliacal-table.js.map +0 -7
  250. package/dist/components/hexagram.d.ts.map +0 -1
  251. package/dist/components/hexagram.js.map +0 -7
  252. package/dist/components/hora-table.d.ts.map +0 -1
  253. package/dist/components/hora-table.js.map +0 -7
  254. package/dist/components/horoscope-card.d.ts.map +0 -1
  255. package/dist/components/horoscope-card.js.map +0 -7
  256. package/dist/components/kp-chart.d.ts.map +0 -1
  257. package/dist/components/kp-chart.js.map +0 -7
  258. package/dist/components/kp-finance-card.d.ts.map +0 -1
  259. package/dist/components/kp-finance-card.js.map +0 -7
  260. package/dist/components/kp-planets-table.d.ts.map +0 -1
  261. package/dist/components/kp-planets-table.js.map +0 -7
  262. package/dist/components/kp-ruling-planets.d.ts.map +0 -1
  263. package/dist/components/kp-ruling-planets.js.map +0 -7
  264. package/dist/components/kua-card.d.ts.map +0 -1
  265. package/dist/components/kua-card.js.map +0 -7
  266. package/dist/components/local-space-compass.d.ts.map +0 -1
  267. package/dist/components/local-space-compass.js.map +0 -7
  268. package/dist/components/location-search.d.ts.map +0 -1
  269. package/dist/components/location-search.js.map +0 -7
  270. package/dist/components/luck-pillars.d.ts.map +0 -1
  271. package/dist/components/luck-pillars.js.map +0 -7
  272. package/dist/components/mayan-day-sign.d.ts.map +0 -1
  273. package/dist/components/mayan-day-sign.js.map +0 -7
  274. package/dist/components/moon-phase.d.ts.map +0 -1
  275. package/dist/components/moon-phase.js.map +0 -7
  276. package/dist/components/nakshatra-card.d.ts.map +0 -1
  277. package/dist/components/nakshatra-card.js.map +0 -7
  278. package/dist/components/natal-chart.d.ts.map +0 -1
  279. package/dist/components/natal-chart.js.map +0 -7
  280. package/dist/components/numerology-card.d.ts.map +0 -1
  281. package/dist/components/numerology-card.js.map +0 -7
  282. package/dist/components/panchang-table.d.ts.map +0 -1
  283. package/dist/components/panchang-table.js.map +0 -7
  284. package/dist/components/positions-table.d.ts.map +0 -1
  285. package/dist/components/positions-table.js.map +0 -7
  286. package/dist/components/profection-card.d.ts.map +0 -1
  287. package/dist/components/profection-card.js.map +0 -7
  288. package/dist/components/reference-card.d.ts.map +0 -1
  289. package/dist/components/reference-card.js.map +0 -7
  290. package/dist/components/relocation-wheel.d.ts.map +0 -1
  291. package/dist/components/relocation-wheel.js.map +0 -7
  292. package/dist/components/shadbala-table.d.ts.map +0 -1
  293. package/dist/components/shadbala-table.js.map +0 -7
  294. package/dist/components/synastry-chart.d.ts.map +0 -1
  295. package/dist/components/synastry-chart.js.map +0 -7
  296. package/dist/components/tarot-card.d.ts.map +0 -1
  297. package/dist/components/tarot-card.js.map +0 -7
  298. package/dist/components/tarot-catalog.d.ts.map +0 -1
  299. package/dist/components/tarot-catalog.js.map +0 -7
  300. package/dist/components/tarot-spread.d.ts.map +0 -1
  301. package/dist/components/tarot-spread.js.map +0 -7
  302. package/dist/components/transit-wheel.d.ts.map +0 -1
  303. package/dist/components/transit-wheel.js.map +0 -7
  304. package/dist/components/transits-table.d.ts.map +0 -1
  305. package/dist/components/transits-table.js.map +0 -7
  306. package/dist/components/upagraha-table.d.ts.map +0 -1
  307. package/dist/components/upagraha-table.js.map +0 -7
  308. package/dist/components/vastu-mandala.d.ts.map +0 -1
  309. package/dist/components/vastu-mandala.js.map +0 -7
  310. package/dist/components/vedic-aspects.d.ts.map +0 -1
  311. package/dist/components/vedic-aspects.js.map +0 -7
  312. package/dist/components/vedic-daily.d.ts.map +0 -1
  313. package/dist/components/vedic-daily.js.map +0 -7
  314. package/dist/components/vedic-kundli.d.ts.map +0 -1
  315. package/dist/components/vedic-kundli.js.map +0 -7
  316. package/dist/components/vedic-planets-table.d.ts.map +0 -1
  317. package/dist/components/vedic-planets-table.js.map +0 -7
  318. package/dist/components/western-planets-table.d.ts.map +0 -1
  319. package/dist/components/western-planets-table.js.map +0 -7
  320. package/dist/components/yoga-list.d.ts.map +0 -1
  321. package/dist/components/yoga-list.js.map +0 -7
  322. package/dist/components/zodiac-card.d.ts.map +0 -1
  323. package/dist/components/zodiac-card.js.map +0 -7
  324. package/dist/generated/tool-components.d.ts.map +0 -1
  325. package/dist/index.cjs.map +0 -7
  326. package/dist/index.d.ts.map +0 -1
  327. package/dist/index.js.map +0 -7
  328. package/dist/jsx.cjs.map +0 -7
  329. package/dist/jsx.d.ts.map +0 -1
  330. package/dist/jsx.js.map +0 -7
  331. package/dist/load-ui.d.ts.map +0 -1
  332. package/dist/load-ui.js.map +0 -7
  333. package/dist/tool-component.cjs.map +0 -7
  334. package/dist/tool-component.d.ts.map +0 -1
  335. package/dist/tool-component.js.map +0 -7
  336. package/dist/types/index.d.ts.map +0 -1
  337. package/dist/types/types.gen.d.ts.map +0 -1
  338. package/dist/utils/compact.d.ts.map +0 -1
  339. package/dist/utils/tool-component.d.ts.map +0 -1
@@ -1645,7 +1645,7 @@ export type FixedStarsResponse = {
1645
1645
  interpretation: string;
1646
1646
  }>;
1647
1647
  /**
1648
- * Short overview of the fixed-star report for previews and report intros.
1648
+ * Short overview of the fixed-star report for previews and report intros: the number of conjunctions inside the orb and the tightest one found, or a plain statement that no star touches the chart. Localized to the requested language.
1649
1649
  */
1650
1650
  summary: string;
1651
1651
  };
@@ -1888,7 +1888,7 @@ export type LilithResponse = {
1888
1888
  timezone: number;
1889
1889
  };
1890
1890
  /**
1891
- * House system applied when placing each variant in a house.
1891
+ * House system actually applied when placing each variant in a house. Differs from the requested system only above the polar circle, where quadrant systems fall back to Whole Sign.
1892
1892
  */
1893
1893
  houseSystem: 'placidus' | 'whole-sign' | 'equal' | 'koch';
1894
1894
  /**
@@ -1971,7 +1971,7 @@ export type LilithRequest = {
1971
1971
  */
1972
1972
  nodeType?: 'mean' | 'true';
1973
1973
  /**
1974
- * House system used to place each Lilith variant in a house. Placidus (default), Whole Sign, Equal, or Koch.
1974
+ * House system used to place each Lilith variant in a house. Placidus (default), Whole Sign, Equal, or Koch. Above the polar circle, quadrant systems fall back to Whole Sign and the echoed houseSystem reports the system actually used.
1975
1975
  */
1976
1976
  houseSystem?: 'placidus' | 'whole-sign' | 'equal' | 'koch';
1977
1977
  };
@@ -2042,7 +2042,7 @@ export type ProgressionsResponse = {
2042
2042
  */
2043
2043
  degree: number;
2044
2044
  /**
2045
- * Whole-sign house (1 to 12) counted from the progressed Ascendant sign. The 1st house is the entire sign the progressed Ascendant falls in.
2045
+ * Natal house (1 to 12) the progressed body occupies, read against the natal cusps in the requested houseSystem, the same house number POST /natal-chart gives a body at this longitude. Natal houses are the standard frame for reading progressed planets, the progressed Moon through the houses above all.
2046
2046
  */
2047
2047
  house: number;
2048
2048
  /**
@@ -2134,6 +2134,10 @@ export type ProgressionsRequest = {
2134
2134
  * Date to progress the chart to, in YYYY-MM-DD format. Usually today or a forecast date. The day-for-a-year key turns the elapsed years since birth into the same number of ephemeris days after the birth moment.
2135
2135
  */
2136
2136
  targetDate: string;
2137
+ /**
2138
+ * House system of the natal chart that every progressed body is placed in. Pass the system the natal chart was drawn in so the house numbers match it. Placidus (default) is the most widely used in Western astrology. Whole Sign assigns one sign per house. Equal divides into 30 degree segments from the Ascendant. Koch emphasizes higher latitudes. Quadrant systems fall back to Whole Sign above the polar circle.
2139
+ */
2140
+ houseSystem?: 'placidus' | 'whole-sign' | 'equal' | 'koch';
2137
2141
  };
2138
2142
  export type SolarArcResponse = {
2139
2143
  /**
@@ -3162,7 +3166,7 @@ export type BirthChartResponse = {
3162
3166
  };
3163
3167
  };
3164
3168
  /**
3165
- * Forty-four classical yogas detected against this chart. Twelve conjunction and dignity yogas: Gajakesari (three-rule parashara definition), Sunapha, Anapha, Dhurdhura, Kemadruma, Chandra Mangala, Budha-Aditya, and the five Pancha Mahapurusha (Ruchaka, Bhadra, Hamsa, Malavya, Sasa). Plus all 32 Nabhasa distribution yogas across the Asraya, Dala, Akriti and Sankhya families, which read how the seven visible grahas are spread over the whole chart rather than any single conjunction, and which apply the four classical precedence norms so an outranked yoga is returned as absent with evidence naming the norm that silenced it. Each entry carries an `id` (matches `GET /yoga/{id}` for full glossary lookup), a `present` boolean, a `quality` (Positive, Negative, or Both = auspicious, inauspicious, or context-dependent), and classical-text `evidence` for the rule that triggered or failed. Filter on `present === true` for the active list.
3169
+ * Forty-eight classical yogas detected against this chart. Twelve conjunction and dignity yogas: Gajakesari (three-rule parashara definition), Sunapha, Anapha, Dhurdhura, Kemadruma, Chandra Mangala, Budha-Aditya, and the five Pancha Mahapurusha (Ruchaka, Bhadra, Hamsa, Malavya, Sasa). Plus all 32 Nabhasa distribution yogas across the Asraya, Dala, Akriti and Sankhya families, which read how the seven visible grahas are spread over the whole chart rather than any single conjunction, and which apply the four classical precedence norms so an outranked yoga is returned as absent with evidence naming the norm that silenced it. Plus the four wealth and poverty verdicts (Dhana, Daridra, Lakshmi, Dhana Malika), each reading as the first rule that matched. Each entry carries an `id` (matches `GET /yoga/{id}` for full glossary lookup), a `present` boolean, a `quality` (Positive, Negative, or Both = auspicious, inauspicious, or context-dependent), and classical-text `evidence` for the rule that triggered or failed. Filter on `present === true` for the active list.
3166
3170
  */
3167
3171
  yogas?: Array<{
3168
3172
  /**
@@ -4741,7 +4745,7 @@ export type KpPlanetsRequest = {
4741
4745
  */
4742
4746
  time: string;
4743
4747
  /**
4744
- * Birth location latitude in decimal degrees
4748
+ * Birth location latitude in decimal degrees. Accepted at any latitude, polar included: planet longitudes are geocentric and the star and sub lords are divisions of longitude, so no house cusp is involved.
4745
4749
  */
4746
4750
  latitude: number;
4747
4751
  /**
@@ -4841,7 +4845,7 @@ export type KpCuspsRequest = {
4841
4845
  */
4842
4846
  time: string;
4843
4847
  /**
4844
- * Birth location latitude in decimal degrees
4848
+ * Birth location latitude in decimal degrees. The latitude must lie below 66.56 degrees north or south, inside the polar circles: KP cusps are Placidus, which has no solution beyond them, so a polar latitude returns 400.
4845
4849
  */
4846
4850
  latitude: number;
4847
4851
  /**
@@ -5215,7 +5219,7 @@ export type KpChartRequest = {
5215
5219
  */
5216
5220
  time: string;
5217
5221
  /**
5218
- * Birth location latitude in decimal degrees
5222
+ * Birth location latitude in decimal degrees. The latitude must lie below 66.56 degrees north or south, inside the polar circles: KP cusps are Placidus, which has no solution beyond them, so a polar latitude returns 400.
5219
5223
  */
5220
5224
  latitude: number;
5221
5225
  /**
@@ -6068,7 +6072,7 @@ export type KpHoraryRequest = {
6068
6072
  */
6069
6073
  time: string;
6070
6074
  /**
6071
- * Latitude where the question is judged, decimal degrees. The house cusps are Placidus and therefore latitude dependent, so this is the place of judgment, not the querent birthplace.
6075
+ * Latitude where the question is judged, decimal degrees. The house cusps are Placidus and therefore latitude dependent, so this is the place of judgment, not the querent birthplace. The latitude must lie below 66.56 degrees north or south, inside the polar circles: KP cusps are Placidus, which has no solution beyond them, so a polar latitude returns 400.
6072
6076
  */
6073
6077
  latitude: number;
6074
6078
  /**
@@ -6441,7 +6445,7 @@ export type KpDailyFinanceRequest = {
6441
6445
  */
6442
6446
  birthTime: string;
6443
6447
  /**
6444
- * Birth latitude in decimal degrees. Sets the Placidus cusps; also the place the ruling planets and the Moon windows are read at.
6448
+ * Birth latitude in decimal degrees. Sets the Placidus cusps; also the place the ruling planets and the Moon windows are read at. The latitude must lie below 66.56 degrees north or south, inside the polar circles: KP cusps are Placidus, which has no solution beyond them, so a polar latitude returns 400.
6445
6449
  */
6446
6450
  latitude: number;
6447
6451
  /**
@@ -6449,7 +6453,7 @@ export type KpDailyFinanceRequest = {
6449
6453
  */
6450
6454
  longitude: number;
6451
6455
  /**
6452
- * Timezone as an IANA name (Asia/Kolkata) or decimal hours from UTC. Applies to the birth time, to the reading date and time, and to every local timestamp in the response. IANA names resolve to the offset in force on the date being read.
6456
+ * Timezone as an IANA name (Asia/Kolkata) or decimal hours from UTC. Applies to the birth time, to the reading date and time, and to every local timestamp in the response. An IANA name is resolved twice, each to the offset in force at its own moment: at the birth date and time for the natal chart, and on the date being read for the reading. A decimal is applied to both as sent.
6453
6457
  */
6454
6458
  timezone?: number | string;
6455
6459
  /**
@@ -7601,7 +7605,7 @@ export type HeliacalResponse = {
7601
7605
  */
7602
7606
  retrograde: boolean;
7603
7607
  /**
7604
- * Plain angular separation of the two ecliptic longitudes, in degrees. Returned beside timeDegrees so the two measures can be compared: this is what a combustion flag on a birth chart uses, and the gap between them is precisely what a location-aware heliacal calculation adds.
7608
+ * Plain angular separation of the two ecliptic longitudes, in degrees, read at the same instant as timeDegrees: the Sun crossing the horizon named in `horizon` on the requested day, sunset for west and sunrise for east, at the observer location. Returned beside timeDegrees so the two measures can be compared: this is the quantity a combustion flag on a birth chart uses, and the gap between them is precisely what a location-aware heliacal calculation adds. A birth chart reads it at the birth moment instead, so the two differ by however far the graha and the Sun moved in between, about half a degree per hour for the Moon.
7605
7609
  */
7606
7610
  longitudeSeparation: number;
7607
7611
  /**
@@ -18875,7 +18879,7 @@ export type GetCurrentDashaData = {
18875
18879
  */
18876
18880
  ayanamsaValue?: number;
18877
18881
  /**
18878
- * Set true to attach the KP significators of each period lord: its star lord, sub lord, occupied house, the houses it signifies at levels L1 to L4, and a strength grade. Off by default, so responses stay exactly as they are for clients that only need dates. Requires the birth latitude and longitude, since significators are read off a Placidus house chart, and uses the same ayanamsa frame selected above.
18882
+ * Set true to attach the KP significators of each period lord: its star lord, sub lord, occupied house, the houses it signifies at levels L1 to L4, and a strength grade. Off by default, so responses stay exactly as they are for clients that only need dates. Requires the birth latitude and longitude, since significators are read off a Placidus house chart, and uses the same ayanamsa frame selected above. The latitude must lie below 66.56 degrees north or south, inside the polar circles: KP cusps are Placidus, which has no solution beyond them, so a polar latitude returns 400.
18879
18883
  */
18880
18884
  significators?: boolean;
18881
18885
  /**
@@ -18883,7 +18887,7 @@ export type GetCurrentDashaData = {
18883
18887
  */
18884
18888
  nodeType?: 'mean' | 'true';
18885
18889
  /**
18886
- * ISO 8601 datetime (YYYY-MM-DDTHH:MM:SS) to read the running periods at, for a reading prepared for a future day, a backtest, or a chart cast for a past moment. Defaults to the current instant. Interpreted as local time in the request timezone (a trailing Z is accepted but ignored); with timezone 0 it is UTC.
18890
+ * ISO 8601 datetime (YYYY-MM-DDTHH:MM:SS) to read the running periods at, for a reading prepared for a future day, a backtest, or a chart cast for a past moment. Defaults to the current instant. Interpreted as local time in the request timezone, an IANA name resolved at this datetime rather than at the birth (a trailing Z is accepted but ignored); with timezone 0 it is UTC.
18887
18891
  */
18888
18892
  datetime?: string;
18889
18893
  };
@@ -19713,7 +19717,7 @@ export type GetMajorDashasData = {
19713
19717
  */
19714
19718
  ayanamsaValue?: number;
19715
19719
  /**
19716
- * Set true to attach the KP significators of each period lord: its star lord, sub lord, occupied house, the houses it signifies at levels L1 to L4, and a strength grade. Off by default, so responses stay exactly as they are for clients that only need dates. Requires the birth latitude and longitude, since significators are read off a Placidus house chart, and uses the same ayanamsa frame selected above.
19720
+ * Set true to attach the KP significators of each period lord: its star lord, sub lord, occupied house, the houses it signifies at levels L1 to L4, and a strength grade. Off by default, so responses stay exactly as they are for clients that only need dates. Requires the birth latitude and longitude, since significators are read off a Placidus house chart, and uses the same ayanamsa frame selected above. The latitude must lie below 66.56 degrees north or south, inside the polar circles: KP cusps are Placidus, which has no solution beyond them, so a polar latitude returns 400.
19717
19721
  */
19718
19722
  significators?: boolean;
19719
19723
  /**
@@ -20046,7 +20050,7 @@ export type GetSubDashasData = {
20046
20050
  */
20047
20051
  ayanamsaValue?: number;
20048
20052
  /**
20049
- * Set true to attach the KP significators of each period lord: its star lord, sub lord, occupied house, the houses it signifies at levels L1 to L4, and a strength grade. Off by default, so responses stay exactly as they are for clients that only need dates. Requires the birth latitude and longitude, since significators are read off a Placidus house chart, and uses the same ayanamsa frame selected above.
20053
+ * Set true to attach the KP significators of each period lord: its star lord, sub lord, occupied house, the houses it signifies at levels L1 to L4, and a strength grade. Off by default, so responses stay exactly as they are for clients that only need dates. Requires the birth latitude and longitude, since significators are read off a Placidus house chart, and uses the same ayanamsa frame selected above. The latitude must lie below 66.56 degrees north or south, inside the polar circles: KP cusps are Placidus, which has no solution beyond them, so a polar latitude returns 400.
20050
20054
  */
20051
20055
  significators?: boolean;
20052
20056
  /**
@@ -20447,7 +20451,7 @@ export type GetPratyantardashasData = {
20447
20451
  */
20448
20452
  ayanamsaValue?: number;
20449
20453
  /**
20450
- * Set true to attach the KP significators of each period lord: its star lord, sub lord, occupied house, the houses it signifies at levels L1 to L4, and a strength grade. Off by default, so responses stay exactly as they are for clients that only need dates. Requires the birth latitude and longitude, since significators are read off a Placidus house chart, and uses the same ayanamsa frame selected above.
20454
+ * Set true to attach the KP significators of each period lord: its star lord, sub lord, occupied house, the houses it signifies at levels L1 to L4, and a strength grade. Off by default, so responses stay exactly as they are for clients that only need dates. Requires the birth latitude and longitude, since significators are read off a Placidus house chart, and uses the same ayanamsa frame selected above. The latitude must lie below 66.56 degrees north or south, inside the polar circles: KP cusps are Placidus, which has no solution beyond them, so a polar latitude returns 400.
20451
20455
  */
20452
20456
  significators?: boolean;
20453
20457
  /**
@@ -20864,7 +20868,7 @@ export type GetSookshmaDashasData = {
20864
20868
  */
20865
20869
  ayanamsaValue?: number;
20866
20870
  /**
20867
- * Set true to attach the KP significators of each period lord: its star lord, sub lord, occupied house, the houses it signifies at levels L1 to L4, and a strength grade. Off by default, so responses stay exactly as they are for clients that only need dates. Requires the birth latitude and longitude, since significators are read off a Placidus house chart, and uses the same ayanamsa frame selected above.
20871
+ * Set true to attach the KP significators of each period lord: its star lord, sub lord, occupied house, the houses it signifies at levels L1 to L4, and a strength grade. Off by default, so responses stay exactly as they are for clients that only need dates. Requires the birth latitude and longitude, since significators are read off a Placidus house chart, and uses the same ayanamsa frame selected above. The latitude must lie below 66.56 degrees north or south, inside the polar circles: KP cusps are Placidus, which has no solution beyond them, so a polar latitude returns 400.
20868
20872
  */
20869
20873
  significators?: boolean;
20870
20874
  /**
@@ -21297,7 +21301,7 @@ export type GetPranaDashasData = {
21297
21301
  */
21298
21302
  ayanamsaValue?: number;
21299
21303
  /**
21300
- * Set true to attach the KP significators of each period lord: its star lord, sub lord, occupied house, the houses it signifies at levels L1 to L4, and a strength grade. Off by default, so responses stay exactly as they are for clients that only need dates. Requires the birth latitude and longitude, since significators are read off a Placidus house chart, and uses the same ayanamsa frame selected above.
21304
+ * Set true to attach the KP significators of each period lord: its star lord, sub lord, occupied house, the houses it signifies at levels L1 to L4, and a strength grade. Off by default, so responses stay exactly as they are for clients that only need dates. Requires the birth latitude and longitude, since significators are read off a Placidus house chart, and uses the same ayanamsa frame selected above. The latitude must lie below 66.56 degrees north or south, inside the polar circles: KP cusps are Placidus, which has no solution beyond them, so a polar latitude returns 400.
21301
21305
  */
21302
21306
  significators?: boolean;
21303
21307
  /**
@@ -21734,7 +21738,7 @@ export type GetVedicDailyReadingData = {
21734
21738
  */
21735
21739
  longitude: number;
21736
21740
  /**
21737
- * Timezone: IANA name (e.g. "Asia/Kolkata", "America/New_York") OR decimal hours from UTC (e.g. -5 for EST, 5.5 for IST). IANA strings are resolved to the DST-correct offset for the date being read. Interprets the birth time and the civil date below. Defaults to 5.5.
21741
+ * Timezone: IANA name (e.g. "Asia/Kolkata", "America/New_York") OR decimal hours from UTC (e.g. -5 for EST, 5.5 for IST). IANA strings are resolved twice, each to the DST-correct offset of its own moment: at the birth date and time for the birth chart, and on the date being read for the reading day. A decimal is applied to both as sent. Defaults to 5.5.
21738
21742
  */
21739
21743
  timezone?: number | string;
21740
21744
  /**
@@ -25303,7 +25307,7 @@ export type GenerateKpChartResponse = GenerateKpChartResponses[keyof GenerateKpC
25303
25307
  export type GetKpRulingPlanetsData = {
25304
25308
  body?: {
25305
25309
  /**
25306
- * Observer latitude in decimal degrees
25310
+ * Observer latitude in decimal degrees. Any latitude for the ruling planets alone; with birthDate and birthTime the significators read Placidus cusps, so the latitude must lie below 66.56 degrees north or south and a polar latitude returns 400.
25307
25311
  */
25308
25312
  latitude: number;
25309
25313
  /**
@@ -25311,7 +25315,7 @@ export type GetKpRulingPlanetsData = {
25311
25315
  */
25312
25316
  longitude: number;
25313
25317
  /**
25314
- * Timezone: IANA name (e.g. "America/New_York", "Europe/London") OR decimal hours from UTC. IANA resolved to the DST-correct offset based on birthDate or datetime. Defaults to 5.5.
25318
+ * Timezone: IANA name (e.g. "America/New_York", "Europe/London") OR decimal hours from UTC. An IANA name is resolved to the DST-correct offset of each moment separately: at datetime for the ruling planets, and at birthDate and birthTime for the significators. A decimal is applied to both as sent. Defaults to 5.5.
25315
25319
  */
25316
25320
  timezone?: number | string;
25317
25321
  /**
@@ -25488,7 +25492,7 @@ export type GetKpRulingIntervalData = {
25488
25492
  */
25489
25493
  intervalMinutes: number;
25490
25494
  /**
25491
- * Observer latitude in decimal degrees
25495
+ * Observer latitude in decimal degrees. The latitude must lie below 66.56 degrees north or south, inside the polar circles: KP cusps are Placidus, which has no solution beyond them, so a polar latitude returns 400.
25492
25496
  */
25493
25497
  latitude: number;
25494
25498
  /**
@@ -27049,7 +27053,7 @@ export type CalculateTransitData = {
27049
27053
  */
27050
27054
  longitude: number;
27051
27055
  /**
27052
- * Timezone: an IANA name (e.g. "America/New_York", "Europe/London", or `cities[0].timezone` from /location/search) or decimal hours from UTC (e.g. -5 for EST, 5.5 for IST). An IANA name is resolved to the offset in force at the given date and time. Defaults to 5.5 (IST).
27056
+ * Timezone: an IANA name (e.g. "America/New_York", "Europe/London", or `cities[0].timezone` from /location/search) or decimal hours from UTC (e.g. -5 for EST, 5.5 for IST). An IANA name is resolved to the offset in force at the given date and time. The birth moment and the transit moment are each resolved at their own date and time. Defaults to 5.5 (IST).
27053
27057
  */
27054
27058
  timezone?: number | string;
27055
27059
  /**
@@ -35787,7 +35791,7 @@ export type CalculateLuckPillarsResponses = {
35787
35791
  */
35788
35792
  startAge: number;
35789
35793
  /**
35790
- * Additional months past startAge, 0 to 11, from the remainder of the same count at one day to four months. Calculators that round the whole count to the nearest year will differ from this by up to six months.
35794
+ * Additional months past startAge, 0 to 11, from the remainder of the same count at one day to four months, rounded once to the nearest month. Calculators that round the whole count to the nearest year will differ from this by up to six months.
35791
35795
  */
35792
35796
  startAgeMonths: number;
35793
35797
  /**
@@ -35926,11 +35930,11 @@ export type CalculateLuckPillarsResponses = {
35926
35930
  */
35927
35931
  endAge: number;
35928
35932
  /**
35929
- * Gregorian year this period begins, the birth year plus startAge.
35933
+ * Gregorian year this period begins: the year of the date that falls startAge years and startAgeMonths months after the birth date, plus ten for each later period. A birth in November with a start of 4 years 7 months begins its first period in June of the birth year plus five.
35930
35934
  */
35931
35935
  startYear: number;
35932
35936
  /**
35933
- * Gregorian year this period ends.
35937
+ * Gregorian year this period ends and the next one begins, startYear plus ten.
35934
35938
  */
35935
35939
  endYear: number;
35936
35940
  }>;
@@ -35984,7 +35988,7 @@ export type CalculateLuckPillarsResponses = {
35984
35988
  keynote: string;
35985
35989
  };
35986
35990
  /**
35987
- * Which returned luck pillar this year falls inside, by its index. 0 means the year falls before the first luck pillar begins, in the stretch still governed by the natal chart alone.
35991
+ * Which returned luck pillar this year falls inside, by its index. The year a period begins in counts as inside it, though the handover falls in a month of that year. 0 means the year falls before the first luck pillar begins, in the stretch still governed by the natal chart alone.
35988
35992
  */
35989
35993
  luckPillarIndex: number;
35990
35994
  }>;
@@ -54042,9 +54046,13 @@ export type GenerateNumerologyChartData = {
54042
54046
  */
54043
54047
  day: number;
54044
54048
  /**
54045
- * Calendar year for the Personal Year, defaults to the current UTC year. It moves the Personal Year only: the nested personalMonth and maturityStatus.currentAge always read the current UTC date.
54049
+ * Calendar year for the Personal Year. When omitted it is the year of targetDate, or of the current UTC date when targetDate is omitted too. It moves the Personal Year only: the nested personalMonth and maturityStatus.currentAge read targetDate.
54046
54050
  */
54047
54051
  currentYear?: number;
54052
+ /**
54053
+ * Date to read the chart on, in YYYY-MM-DD format, in the years 100 to 2100, on or after the birth date. Send the local date of the user for an exact answer: it sets maturityStatus.currentAge and isActive, the Personal Month, and the Personal Year when currentYear is absent. Defaults to today (UTC).
54054
+ */
54055
+ targetDate?: string;
54048
54056
  };
54049
54057
  path?: never;
54050
54058
  query?: {
@@ -54679,11 +54687,11 @@ export type GenerateNumerologyChartResponses = {
54679
54687
  */
54680
54688
  advice: string;
54681
54689
  /**
54682
- * Personal Month forecast for the current UTC calendar month, applied to the Personal Year above. With a currentYear other than the current year, it pairs that Personal Year with the current month.
54690
+ * Personal Month forecast for the calendar month of targetDate (the current UTC month when omitted), applied to the Personal Year above. With a currentYear other than the year of targetDate, it pairs that Personal Year with this month.
54683
54691
  */
54684
54692
  personalMonth: {
54685
54693
  /**
54686
- * Personal Month number (1-9): the Personal Year above plus the current UTC calendar month, reduced to one digit.
54694
+ * Personal Month number (1-9): the Personal Year above plus the calendar month of targetDate (the current UTC month when omitted), reduced to one digit.
54687
54695
  */
54688
54696
  personalMonth: number;
54689
54697
  /**
@@ -54925,11 +54933,11 @@ export type GenerateNumerologyChartResponses = {
54925
54933
  */
54926
54934
  maturityStatus: {
54927
54935
  /**
54928
- * Whether the Maturity number is currently active (typically activates around age 35-40).
54936
+ * Whether the Maturity number is currently active: true from the 35th birthday, when currentAge reaches 35 (the number typically activates around age 35-40).
54929
54937
  */
54930
54938
  isActive: boolean;
54931
54939
  /**
54932
- * The current UTC calendar year minus the birth year. The birthday is not considered, so before the birthday it reads one more than the age in whole years, and currentYear does not move it.
54940
+ * Age in completed years on targetDate, or on the current UTC date when targetDate is omitted: the birth year subtracted, less one until the birthday has come round. A 29 February birthday comes round on 1 March in a common year. currentYear does not move it.
54933
54941
  */
54934
54942
  currentAge: number;
54935
54943
  /**
@@ -57382,6 +57390,10 @@ export type GenerateBirthProfileData = {
57382
57390
  * Set true when the moment falls after nightfall, which advances the Hebrew date by one day because the Hebrew day begins in the evening. It is a caller assertion rather than a computation, since sunset depends on a place and this conversion takes none.
57383
57391
  */
57384
57392
  afterSunset?: boolean;
57393
+ /**
57394
+ * Date to count the next Hebrew birthday from, in YYYY-MM-DD format. Send the local date of the user for an exact answer: on the birthday itself the answer is that day. Defaults to today (UTC).
57395
+ */
57396
+ targetDate?: string;
57385
57397
  };
57386
57398
  path?: never;
57387
57399
  query?: {
@@ -57570,15 +57582,15 @@ export type GenerateBirthProfileResponses = {
57570
57582
  afterSunset: boolean;
57571
57583
  };
57572
57584
  /**
57573
- * The next Hebrew birthday. Three Hebrew dates are missing from some years, and where the anniversary moves to is a matter of community practice rather than arithmetic, so the field is null with a note rather than a guess.
57585
+ * The next Hebrew birthday from targetDate (the current UTC date when omitted), the anniversary of hebrewDate. Three Hebrew dates are missing from some years, and where the anniversary moves to is a matter of community practice rather than arithmetic, so the field is null with a note rather than a guess.
57574
57586
  */
57575
57587
  hebrewBirthday: {
57576
57588
  /**
57577
- * The next Gregorian date the Hebrew birthday falls on, or null when that Hebrew date does not exist in the year it would fall in.
57589
+ * The Gregorian date of the next Hebrew birthday on or after targetDate, or the current UTC date when targetDate is omitted (that day when it is the birthday), or null when that Hebrew date does not exist in the year it falls in. It is the daytime civil date: the Hebrew day itself opens at nightfall the evening before.
57578
57590
  */
57579
57591
  date: string | null;
57580
57592
  /**
57581
- * The Hebrew year the anniversary was looked for in.
57593
+ * The Hebrew year of that next anniversary, always later than the birth year. Present on the null branch too, naming the year the date is missing from.
57582
57594
  */
57583
57595
  hebrewYear: number;
57584
57596
  /**
@@ -72293,4 +72305,3 @@ export type ListLanguagesResponses = {
72293
72305
  };
72294
72306
  };
72295
72307
  export type ListLanguagesResponse = ListLanguagesResponses[keyof ListLanguagesResponses];
72296
- //# sourceMappingURL=types.gen.d.ts.map
@@ -15,4 +15,3 @@
15
15
  * ```
16
16
  */
17
17
  export declare function expandCompact<T>(value: T): T;
18
- //# sourceMappingURL=compact.d.ts.map
@@ -25,4 +25,3 @@ export interface ToolComponent extends ToolComponentEntry {
25
25
  * ```
26
26
  */
27
27
  export declare function componentForTool(name: string): ToolComponent | undefined;
28
- //# sourceMappingURL=tool-component.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roxyapi/ui-react",
3
- "version": "0.53.3",
3
+ "version": "1.1.2",
4
4
  "description": "React components for the RoxyAPI catalog. Drop-in charts, tables, cards, forms for astrology, tarot, numerology, biorhythm, I Ching, and more. One key, beautiful in 30 minutes.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1 +0,0 @@
1
- {"version":3,"file":"almanac-day.d.ts","sourceRoot":"","sources":["../../src/components/almanac-day.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAExH,KAAK,YAAY,GAAG,IAAI,CACvB,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACjC,UAAU,GAAG,MAAM,CACnB,CAAC;AAEF,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACxD,oEAAoE;IACpE,IAAI,CAAC,EAAE,qBAAqB,GAAG,yBAAyB,GAAG,4BAA4B,CAAC;IACxF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,4IAA4I;IAC5I,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,YAAY,CAAC;IACtC,mWAAmW;IACnW,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sIAAsI;IACtI,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,6GAA6G;IAC7G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iIAAiI;IACjI,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iTAAiT;IACjT,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qbAAqb;IACrb,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,uRAAuR;IACvR,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+MAA+M;IAC/M,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uJAAuJ;IACvJ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mJAAmJ;IACnJ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wMAAwM;IACxM,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+MAA+M;IAC/M,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0PAA0P;IAC1P,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+gBAA+gB;IAC/gB,YAAY,CAAC,EAAE,MAAM,CAAC;CAEtB;AAED,eAAO,MAAM,cAAc,gGAgK1B,CAAC"}
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/components/almanac-day.tsx", "../../src/load-ui.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nimport { ensureScriptLoaded } from '../load-ui.js';\nimport type { GetAlmanacDayResponse, GetMonthlyAlmanacResponse, LookupAuspiciousDaysResponse } from '../types/index.js';\n\ntype ElementAttrs = Omit<\n\tReact.HTMLAttributes<HTMLElement>,\n\t'children' | 'data'\n>;\n\nexport interface RoxyAlmanacDayProps extends ElementAttrs {\n\t/** Spec-derived response payload. Pass the raw RoxyAPI response. */\n\tdata?: GetAlmanacDayResponse | GetMonthlyAlmanacResponse | LookupAuspiciousDaysResponse;\n\tclassName?: string;\n\tstyle?: React.CSSProperties;\n\t/** Which read the response is: one almanac day as a card, a whole month of them as rows, or the days a search returned for one activity. */\n\tmode?: 'day' | 'month' | 'auspicious';\n\t/** Endpoint path for built-in self-fetch, e.g. \"astrology/natal-chart\". Optional: with a publishableKey or submitUrl and no endpoint, the component fetches its default endpoint, or the one its config prop (mode, period, type, spread, detail) selects. Set it to render any other endpoint the component draws. Pass `data` and no key for controlled mode. */\n\tendpoint?: string;\n\t/** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */\n\tmethod?: 'GET' | 'POST';\n\t/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */\n\tpublishableKey?: string;\n\t/** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */\n\tbaseUrl?: string;\n\t/** Your own backend route, which holds the secret key. Every request the component makes, the city search included, is POSTed there as `{ path, method, body, query }` instead of calling RoxyAPI directly, and the component renders the JSON your route returns, so no key of any kind reaches the browser. */\n\tsubmitUrl?: string;\n\t/** An object of your own, sent to your submitUrl route as `context` beside the request, so a page can attach its own verification data to a proxied submission. Passed through untouched and never read by the component: what it holds is for your page and your route to agree on. Unset, nothing is added and the route receives the request exactly as before. Rides the submitUrl path only; a direct call sends what the endpoint declares. */\n\tsubmitContext?: Record<string, unknown>;\n\t/** Where the self-fetch form city search sends its GET, absolute or relative to the page. Optional beside submitUrl, which carries the city search too; set it only to send the city search somewhere else. Unset with no submitUrl, the search calls the public location endpoint. */\n\tlocationUrl?: string;\n\t/** Override the OpenAPI spec URL the self-fetch form introspects. */\n\tspecUrl?: string;\n\t/** Response language for self-fetch, forwarded to the API `lang` query parameter (en, tr, de, es, hi, pt, fr, ru). The form never shows a language field; the site owner sets it here. Defaults to English. */\n\tlang?: string;\n\t/** Override the self-fetch form submit-button label. Empty derives an outcome-first label from the endpoint (Get reading, Generate, Compare, Cast). */\n\tsubmitLabel?: string;\n\t/** Persist the last self-fetch form values in sessionStorage, keyed by endpoint, and prefill the form when the visitor returns. Off by default. */\n\tremember?: boolean;\n\t/** Your own words for a failed self-fetch the API did not explain (a dropped connection, a response with no message). A failure the API explains, such as a spent quota, reads as the API worded it. */\n\terrorMessage?: string;\n\t/** Render a small \"Spiritual data by RoxyAPI\" credit under a self-fetch result, linking back to RoxyAPI. Off by default; set any value to enable, or \"off\" to force it off. Never shown in controlled mode. */\n\tattribution?: string;\n\t/** Render the chart and the data and omit the written interpretation. Off by default. Use it when the page supplies its own words: the wheels, tables, grids, legends and numbers stay, and the interpretive prose is left out of the markup entirely. */\n\thideReadings?: boolean;\n\t/** Comma-separated list of `part` names to take off this component, for example \"patterns\" or \"patterns, legend\". Per element rather than per site, so the same component can drop a block on one page and keep it on another with no CSS. Sibling of hideReadings and a different tool: this hides a whole block whatever it contains, where hideReadings drops interpretive prose out of the markup. Names come from the `parts` array in components-catalog.json; a name the component does not carry hides nothing and is not an error. */\n\thideSections?: string;\n\n}\n\nexport const RoxyAlmanacDay = React.forwardRef<HTMLElement | null, RoxyAlmanacDayProps>(\n\tfunction RoxyAlmanacDay({ data, className, style, mode, endpoint, method, publishableKey, baseUrl, submitUrl, submitContext, locationUrl, specUrl, lang, submitLabel, remember, errorMessage, attribution, hideReadings, hideSections, ...rest }, ref) {\n\t\tconst internal = React.useRef<HTMLElement | null>(null);\n\t\tReact.useImperativeHandle<HTMLElement | null, HTMLElement | null>(\n\t\t\tref,\n\t\t\t() => internal.current,\n\t\t\t[],\n\t\t);\n\t\tconst [loaded, setLoaded] = React.useState(false);\n\t\tconst [error, setError] = React.useState<Error | null>(null);\n\n\t\tReact.useEffect(() => {\n\t\t\tlet active = true;\n\t\t\tensureScriptLoaded()\n\t\t\t\t.then(() => {\n\t\t\t\t\tif (active) setLoaded(true);\n\t\t\t\t})\n\t\t\t\t.catch((err: unknown) => {\n\t\t\t\t\tif (!active) return;\n\t\t\t\t\tsetError(err instanceof Error ? err : new Error(String(err)));\n\t\t\t\t});\n\t\t\treturn () => {\n\t\t\t\tactive = false;\n\t\t\t};\n\t\t}, []);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && data !== undefined) {\n\t\t\t\t(el as unknown as { data: unknown }).data = data;\n\t\t\t}\n\t\t}, [data, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && mode !== undefined) {\n\t\t\t\t(el as unknown as { mode: 'day' | 'month' | 'auspicious' }).mode = mode;\n\t\t\t}\n\t\t}, [mode, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && endpoint !== undefined) {\n\t\t\t\t(el as unknown as { endpoint: string }).endpoint = endpoint;\n\t\t\t}\n\t\t}, [endpoint, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && method !== undefined) {\n\t\t\t\t(el as unknown as { method: 'GET' | 'POST' }).method = method;\n\t\t\t}\n\t\t}, [method, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && publishableKey !== undefined) {\n\t\t\t\t(el as unknown as { publishableKey: string }).publishableKey = publishableKey;\n\t\t\t}\n\t\t}, [publishableKey, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && baseUrl !== undefined) {\n\t\t\t\t(el as unknown as { baseUrl: string }).baseUrl = baseUrl;\n\t\t\t}\n\t\t}, [baseUrl, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && submitUrl !== undefined) {\n\t\t\t\t(el as unknown as { submitUrl: string }).submitUrl = submitUrl;\n\t\t\t}\n\t\t}, [submitUrl, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && submitContext !== undefined) {\n\t\t\t\t(el as unknown as { submitContext: Record<string, unknown> }).submitContext = submitContext;\n\t\t\t}\n\t\t}, [submitContext, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && locationUrl !== undefined) {\n\t\t\t\t(el as unknown as { locationUrl: string }).locationUrl = locationUrl;\n\t\t\t}\n\t\t}, [locationUrl, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && specUrl !== undefined) {\n\t\t\t\t(el as unknown as { specUrl: string }).specUrl = specUrl;\n\t\t\t}\n\t\t}, [specUrl, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && lang !== undefined) {\n\t\t\t\t(el as unknown as { lang: string }).lang = lang;\n\t\t\t}\n\t\t}, [lang, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && submitLabel !== undefined) {\n\t\t\t\t(el as unknown as { submitLabel: string }).submitLabel = submitLabel;\n\t\t\t}\n\t\t}, [submitLabel, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && remember !== undefined) {\n\t\t\t\t(el as unknown as { remember: boolean }).remember = remember;\n\t\t\t}\n\t\t}, [remember, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && errorMessage !== undefined) {\n\t\t\t\t(el as unknown as { errorMessage: string }).errorMessage = errorMessage;\n\t\t\t}\n\t\t}, [errorMessage, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && attribution !== undefined) {\n\t\t\t\t(el as unknown as { attribution: string }).attribution = attribution;\n\t\t\t}\n\t\t}, [attribution, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && hideReadings !== undefined) {\n\t\t\t\t(el as unknown as { hideReadings: boolean }).hideReadings = hideReadings;\n\t\t\t}\n\t\t}, [hideReadings, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && hideSections !== undefined) {\n\t\t\t\t(el as unknown as { hideSections: string }).hideSections = hideSections;\n\t\t\t}\n\t\t}, [hideSections, loaded]);\n\n\t\tif (error) {\n\t\t\treturn React.createElement(\n\t\t\t\t'div',\n\t\t\t\t{ role: 'alert', className, style },\n\t\t\t\t`Roxy UI script load failed: ${error.message}`,\n\t\t\t);\n\t\t}\n\n\t\treturn React.createElement('roxy-almanac-day', {\n\t\t\tref: internal,\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\t...rest,\n\t\t});\n\t},\n);\n", "/**\n * Loads the matching component bundle on first mount. Idempotent across\n * many components on the same page. Skips on the server (no document) so\n * React server components and Next.js SSR work without a flash.\n *\n * {@link ensureLocaleLoaded} is the other half and is OPT-IN: it loads the label\n * catalogue for one language from the same release, so a non-English app calls\n * both. There is one catalogue, shipped by `@roxyapi/ui` and read by every\n * wrapper, so nothing is restated here.\n *\n * Defaults to the EXACT @roxyapi/ui release this wrapper was built against, so\n * `@roxyapi/ui-vue@x.y.z` always runs `@roxyapi/ui@x.y.z` and a lockfile actually\n * pins the runtime: it is a fixed version rather than a moving alias, so a later\n * @roxyapi/ui release cannot change the elements under an existing install.\n *\n * Pass an explicit `version` to override, or 'latest' to opt back into floating.\n *\n * Pass `baseUrl` to serve the bundle from your own origin instead of the CDN, which is\n * what an air-gapped install or a strict Content-Security-Policy needs: copy\n * `node_modules/@roxyapi/ui/dist/cdn/` onto your host and call this once at app entry,\n * before any component mounts. The loader keeps a single shared promise, so the first\n * call wins and every component reuses it.\n */\n/** The @roxyapi/ui release this wrapper was generated against. The loader defaults to it, so the wrapper version in your lockfile is the runtime you actually get. */\nexport const ROXY_UI_VERSION = \"0.53.3\";\n\nconst SCRIPT_ID = 'roxyapi-ui-loader';\nconst CDN_BASE_LATEST = \"https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn\";\nconst CDN_BASE_PREFIX = \"https://cdn.jsdelivr.net/npm/@roxyapi/ui@\";\nconst CDN_BASE_SUFFIX = \"/dist/cdn\";\n\nlet loaded: Promise<void> | null = null;\n\nfunction buildBase(version: string): string {\n\tif (!version || version === 'latest') return CDN_BASE_LATEST;\n\treturn `${CDN_BASE_PREFIX}${version}${CDN_BASE_SUFFIX}`;\n}\n\nexport function ensureScriptLoaded(\n\tversion: string = ROXY_UI_VERSION,\n\tbaseUrl?: string,\n): Promise<void> {\n\tif (typeof document === 'undefined') return Promise.resolve();\n\tif (loaded) return loaded;\n\n\tloaded = new Promise<void>((resolve, reject) => {\n\t\tconst url = `${baseUrl ?? buildBase(version)}/roxy-ui.js`;\n\t\tlet existing = document.getElementById(SCRIPT_ID) as HTMLScriptElement | null;\n\t\tif (existing) {\n\t\t\tif (existing.dataset.loaded === 'true') {\n\t\t\t\tresolve();\n\t\t\t} else {\n\t\t\t\texisting.addEventListener('load', () => resolve());\n\t\t\t\texisting.addEventListener('error', () => reject(new Error('roxy-ui load failed')));\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\texisting = document.createElement('script');\n\t\texisting.id = SCRIPT_ID;\n\t\texisting.src = url;\n\t\texisting.async = true;\n\t\texisting.crossOrigin = 'anonymous';\n\t\texisting.addEventListener('load', () => {\n\t\t\texisting!.dataset.loaded = 'true';\n\t\t\tresolve();\n\t\t});\n\t\texisting.addEventListener('error', () => reject(new Error('roxy-ui load failed')));\n\t\tdocument.head.appendChild(existing);\n\t});\n\treturn loaded;\n}\n\n/** Every language a label catalogue ships for. English is absent on purpose: the catalogue key IS the English string, so an English page downloads nothing. */\nexport const ROXY_UI_LOCALES = [\"de\",\"es\",\"fr\",\"hi\",\"pt\",\"ru\",\"tr\",\"zh-Hans\",\"zh-Hant\"] as const;\n\nconst localesLoaded = new Map<string, Promise<void>>();\n\n/**\n * Load the label catalogue for one language, so the components write their own\n * headings, buttons, empty states and form labels in it.\n *\n * Call it once at app entry, beside `ensureScriptLoaded`. The components read the\n * language from the page (their own `lang` attribute, the nearest ancestor\n * carrying one, or `<html lang>`), so this call supplies the WORDS and the page\n * supplies the CHOICE. Loading a catalogue a page never asks for is harmless.\n *\n * `es-AR`, `es-MX` and `es-419` all resolve to the `es` catalogue, so pass the\n * page tag as it stands. English resolves to nothing at all and is not an error:\n * the catalogue is keyed by the English text, so an English page needs no payload.\n * A language outside `ROXY_UI_LOCALES` resolves the same way rather than appending\n * a script tag that 404s.\n *\n * `version` and `baseUrl` behave exactly as they do for {@link ensureScriptLoaded},\n * and passing the same `baseUrl` to both is what an air-gapped or strict-CSP host\n * needs: copy `node_modules/@roxyapi/ui/dist/cdn/` onto your own origin, which\n * carries `locales/` beside `roxy-ui.js`.\n *\n * @example\n * ```ts\n * import { ensureScriptLoaded, ensureLocaleLoaded } from '@roxyapi/ui-react';\n *\n * ensureScriptLoaded();\n * ensureLocaleLoaded(document.documentElement.lang);\n * ```\n */\nexport function ensureLocaleLoaded(\n\tlang: string,\n\tversion: string = ROXY_UI_VERSION,\n\tbaseUrl?: string,\n): Promise<void> {\n\tif (typeof document === 'undefined') return Promise.resolve();\n\tconst base = (lang || '').toLowerCase().split('-')[0] ?? '';\n\tif (!(ROXY_UI_LOCALES as readonly string[]).includes(base)) {\n\t\treturn Promise.resolve();\n\t}\n\tconst existing = localesLoaded.get(base);\n\tif (existing) return existing;\n\n\tconst pending = new Promise<void>((resolve, reject) => {\n\t\tconst id = `${SCRIPT_ID}-locale-${base}`;\n\t\tlet el = document.getElementById(id) as HTMLScriptElement | null;\n\t\tif (el) {\n\t\t\tif (el.dataset.loaded === 'true') resolve();\n\t\t\telse {\n\t\t\t\tel.addEventListener('load', () => resolve());\n\t\t\t\tel.addEventListener('error', () => reject(new Error(`roxy-ui locale ${base} load failed`)));\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tel = document.createElement('script');\n\t\tel.id = id;\n\t\tel.src = `${baseUrl ?? buildBase(version)}/locales/${base}.js`;\n\t\tel.async = true;\n\t\tel.crossOrigin = 'anonymous';\n\t\tel.addEventListener('load', () => {\n\t\t\tel!.dataset.loaded = 'true';\n\t\t\tresolve();\n\t\t});\n\t\tel.addEventListener('error', () => reject(new Error(`roxy-ui locale ${base} load failed`)));\n\t\tdocument.head.appendChild(el);\n\t});\n\tlocalesLoaded.set(base, pending);\n\treturn pending;\n}\n\n// Default export retained for convenience; matches the named export.\nexport default ensureScriptLoaded;\n// Surfaces the embedded @roxyapi/ui version this build of @roxyapi/ui-react\n// was generated against. Useful for diagnostics; not load-bearing.\n"],
5
- "mappings": "AAAA,UAAYA,MAAW,QCwBhB,IAAMC,EAAkB,SAEzBC,EAAY,oBACZC,EAAkB,2DAClBC,EAAkB,4CAClBC,EAAkB,YAEpBC,EAA+B,KAEnC,SAASC,EAAUC,EAAyB,CAC3C,MAAI,CAACA,GAAWA,IAAY,SAAiBL,EACtC,GAAGC,CAAe,GAAGI,CAAO,GAAGH,CAAe,EACtD,CAEO,SAASI,EACfD,EAAkBP,EAClBS,EACgB,CAChB,OAAI,OAAO,SAAa,IAAoB,QAAQ,QAAQ,EACxDJ,IAEJA,EAAS,IAAI,QAAc,CAACK,EAASC,IAAW,CAC/C,IAAMC,EAAM,GAAGH,GAAWH,EAAUC,CAAO,CAAC,cACxCM,EAAW,SAAS,eAAeZ,CAAS,EAChD,GAAIY,EAAU,CACTA,EAAS,QAAQ,SAAW,OAC/BH,EAAQ,GAERG,EAAS,iBAAiB,OAAQ,IAAMH,EAAQ,CAAC,EACjDG,EAAS,iBAAiB,QAAS,IAAMF,EAAO,IAAI,MAAM,qBAAqB,CAAC,CAAC,GAElF,MACD,CACAE,EAAW,SAAS,cAAc,QAAQ,EAC1CA,EAAS,GAAKZ,EACdY,EAAS,IAAMD,EACfC,EAAS,MAAQ,GACjBA,EAAS,YAAc,YACvBA,EAAS,iBAAiB,OAAQ,IAAM,CACvCA,EAAU,QAAQ,OAAS,OAC3BH,EAAQ,CACT,CAAC,EACDG,EAAS,iBAAiB,QAAS,IAAMF,EAAO,IAAI,MAAM,qBAAqB,CAAC,CAAC,EACjF,SAAS,KAAK,YAAYE,CAAQ,CACnC,CAAC,EACMR,EACR,CDrBO,IAAMS,EAAuB,aACnC,SAAwB,CAAE,KAAAC,EAAM,UAAAC,EAAW,MAAAC,EAAO,KAAAC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AA2C,aAAed,EAE7D,EAAG,CAACA,EAAcO,CAAM,CAAC,EAEnB,YAAU,IAAM,CACrB,IAAMO,EAAKR,EAAS,QAChBQ,GAAMb,IAAgB,SACxBa,EAA0C,YAAcb,EAE3D,EAAG,CAACA,EAAaM,CAAM,CAAC,EAElB,YAAU,IAAM,CACrB,IAAMO,EAAKR,EAAS,QAChBQ,GAAMZ,IAAiB,SACzBY,EAA4C,aAAeZ,EAE9D,EAAG,CAACA,EAAcK,CAAM,CAAC,EAEnB,YAAU,IAAM,CACrB,IAAMO,EAAKR,EAAS,QAChBQ,GAAMX,IAAiB,SACzBW,EAA2C,aAAeX,EAE7D,EAAG,CAACA,EAAcI,CAAM,CAAC,EAErBE,EACU,gBACZ,MACA,CAAE,KAAM,QAAS,UAAAvB,EAAW,MAAAC,CAAM,EAClC,+BAA+BsB,EAAM,OAAO,EAC7C,EAGY,gBAAc,mBAAoB,CAC9C,IAAKH,EACL,UAAApB,EACA,MAAAC,EACA,GAAGiB,CACJ,CAAC,CACF,CACD",
6
- "names": ["React", "ROXY_UI_VERSION", "SCRIPT_ID", "CDN_BASE_LATEST", "CDN_BASE_PREFIX", "CDN_BASE_SUFFIX", "loaded", "buildBase", "version", "ensureScriptLoaded", "baseUrl", "resolve", "reject", "url", "existing", "RoxyAlmanacDay", "data", "className", "style", "mode", "endpoint", "method", "publishableKey", "baseUrl", "submitUrl", "submitContext", "locationUrl", "specUrl", "lang", "submitLabel", "remember", "errorMessage", "attribution", "hideReadings", "hideSections", "rest", "ref", "internal", "loaded", "setLoaded", "error", "setError", "active", "ensureScriptLoaded", "err", "el"]
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"angel-number-card.d.ts","sourceRoot":"","sources":["../../src/components/angel-number-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,KAAK,YAAY,GAAG,IA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import * as React from 'react';\nimport { ensureScriptLoaded } from '../load-ui.js';\nimport type { GetAngelNumberResponse } from '../types/index.js';\n\ntype ElementAttrs = Omit<\n\tReact.HTMLAttributes<HTMLElement>,\n\t'children' | 'data'\n>;\n\nexport interface RoxyAngelNumberCardProps extends ElementAttrs {\n\t/** Spec-derived response payload. Pass the raw RoxyAPI response. */\n\tdata?: GetAngelNumberResponse;\n\tclassName?: string;\n\tstyle?: React.CSSProperties;\n\t/** Endpoint path for built-in self-fetch, e.g. \"astrology/natal-chart\". Optional: with a publishableKey or submitUrl and no endpoint, the component fetches its default endpoint, or the one its config prop (mode, period, type, spread, detail) selects. Set it to render any other endpoint the component draws. Pass `data` and no key for controlled mode. */\n\tendpoint?: string;\n\t/** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */\n\tmethod?: 'GET' | 'POST';\n\t/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */\n\tpublishableKey?: string;\n\t/** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */\n\tbaseUrl?: string;\n\t/** Your own backend route, which holds the secret key. Every request the component makes, the city search included, is POSTed there as `{ path, method, body, query }` instead of calling RoxyAPI directly, and the component renders the JSON your route returns, so no key of any kind reaches the browser. */\n\tsubmitUrl?: string;\n\t/** An object of your own, sent to your submitUrl route as `context` beside the request, so a page can attach its own verification data to a proxied submission. Passed through untouched and never read by the component: what it holds is for your page and your route to agree on. Unset, nothing is added and the route receives the request exactly as before. Rides the submitUrl path only; a direct call sends what the endpoint declares. */\n\tsubmitContext?: Record<string, unknown>;\n\t/** Where the self-fetch form city search sends its GET, absolute or relative to the page. Optional beside submitUrl, which carries the city search too; set it only to send the city search somewhere else. Unset with no submitUrl, the search calls the public location endpoint. */\n\tlocationUrl?: string;\n\t/** Override the OpenAPI spec URL the self-fetch form introspects. */\n\tspecUrl?: string;\n\t/** Response language for self-fetch, forwarded to the API `lang` query parameter (en, tr, de, es, hi, pt, fr, ru). The form never shows a language field; the site owner sets it here. Defaults to English. */\n\tlang?: string;\n\t/** Override the self-fetch form submit-button label. Empty derives an outcome-first label from the endpoint (Get reading, Generate, Compare, Cast). */\n\tsubmitLabel?: string;\n\t/** Persist the last self-fetch form values in sessionStorage, keyed by endpoint, and prefill the form when the visitor returns. Off by default. */\n\tremember?: boolean;\n\t/** Your own words for a failed self-fetch the API did not explain (a dropped connection, a response with no message). A failure the API explains, such as a spent quota, reads as the API worded it. */\n\terrorMessage?: string;\n\t/** Render a small \"Spiritual data by RoxyAPI\" credit under a self-fetch result, linking back to RoxyAPI. Off by default; set any value to enable, or \"off\" to force it off. Never shown in controlled mode. */\n\tattribution?: string;\n\t/** Render the chart and the data and omit the written interpretation. Off by default. Use it when the page supplies its own words: the wheels, tables, grids, legends and numbers stay, and the interpretive prose is left out of the markup entirely. */\n\thideReadings?: boolean;\n\t/** Comma-separated list of `part` names to take off this component, for example \"patterns\" or \"patterns, legend\". Per element rather than per site, so the same component can drop a block on one page and keep it on another with no CSS. Sibling of hideReadings and a different tool: this hides a whole block whatever it contains, where hideReadings drops interpretive prose out of the markup. Names come from the `parts` array in components-catalog.json; a name the component does not carry hides nothing and is not an error. */\n\thideSections?: string;\n\n}\n\nexport const RoxyAngelNumberCard = React.forwardRef<HTMLElement | null, RoxyAngelNumberCardProps>(\n\tfunction RoxyAngelNumberCard({ data, className, style, endpoint, method, publishableKey, baseUrl, submitUrl, submitContext, locationUrl, specUrl, lang, submitLabel, remember, errorMessage, attribution, hideReadings, hideSections, ...rest }, ref) {\n\t\tconst internal = React.useRef<HTMLElement | null>(null);\n\t\tReact.useImperativeHandle<HTMLElement | null, HTMLElement | null>(\n\t\t\tref,\n\t\t\t() => internal.current,\n\t\t\t[],\n\t\t);\n\t\tconst [loaded, setLoaded] = React.useState(false);\n\t\tconst [error, setError] = React.useState<Error | null>(null);\n\n\t\tReact.useEffect(() => {\n\t\t\tlet active = true;\n\t\t\tensureScriptLoaded()\n\t\t\t\t.then(() => {\n\t\t\t\t\tif (active) setLoaded(true);\n\t\t\t\t})\n\t\t\t\t.catch((err: unknown) => {\n\t\t\t\t\tif (!active) return;\n\t\t\t\t\tsetError(err instanceof Error ? err : new Error(String(err)));\n\t\t\t\t});\n\t\t\treturn () => {\n\t\t\t\tactive = false;\n\t\t\t};\n\t\t}, []);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && data !== undefined) {\n\t\t\t\t(el as unknown as { data: unknown }).data = data;\n\t\t\t}\n\t\t}, [data, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && endpoint !== undefined) {\n\t\t\t\t(el as unknown as { endpoint: string }).endpoint = endpoint;\n\t\t\t}\n\t\t}, [endpoint, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && method !== undefined) {\n\t\t\t\t(el as unknown as { method: 'GET' | 'POST' }).method = method;\n\t\t\t}\n\t\t}, [method, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && publishableKey !== undefined) {\n\t\t\t\t(el as unknown as { publishableKey: string }).publishableKey = publishableKey;\n\t\t\t}\n\t\t}, [publishableKey, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && baseUrl !== undefined) {\n\t\t\t\t(el as unknown as { baseUrl: string }).baseUrl = baseUrl;\n\t\t\t}\n\t\t}, [baseUrl, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && submitUrl !== undefined) {\n\t\t\t\t(el as unknown as { submitUrl: string }).submitUrl = submitUrl;\n\t\t\t}\n\t\t}, [submitUrl, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && submitContext !== undefined) {\n\t\t\t\t(el as unknown as { submitContext: Record<string, unknown> }).submitContext = submitContext;\n\t\t\t}\n\t\t}, [submitContext, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && locationUrl !== undefined) {\n\t\t\t\t(el as unknown as { locationUrl: string }).locationUrl = locationUrl;\n\t\t\t}\n\t\t}, [locationUrl, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && specUrl !== undefined) {\n\t\t\t\t(el as unknown as { specUrl: string }).specUrl = specUrl;\n\t\t\t}\n\t\t}, [specUrl, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && lang !== undefined) {\n\t\t\t\t(el as unknown as { lang: string }).lang = lang;\n\t\t\t}\n\t\t}, [lang, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && submitLabel !== undefined) {\n\t\t\t\t(el as unknown as { submitLabel: string }).submitLabel = submitLabel;\n\t\t\t}\n\t\t}, [submitLabel, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && remember !== undefined) {\n\t\t\t\t(el as unknown as { remember: boolean }).remember = remember;\n\t\t\t}\n\t\t}, [remember, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && errorMessage !== undefined) {\n\t\t\t\t(el as unknown as { errorMessage: string }).errorMessage = errorMessage;\n\t\t\t}\n\t\t}, [errorMessage, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && attribution !== undefined) {\n\t\t\t\t(el as unknown as { attribution: string }).attribution = attribution;\n\t\t\t}\n\t\t}, [attribution, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && hideReadings !== undefined) {\n\t\t\t\t(el as unknown as { hideReadings: boolean }).hideReadings = hideReadings;\n\t\t\t}\n\t\t}, [hideReadings, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && hideSections !== undefined) {\n\t\t\t\t(el as unknown as { hideSections: string }).hideSections = hideSections;\n\t\t\t}\n\t\t}, [hideSections, loaded]);\n\n\t\tif (error) {\n\t\t\treturn React.createElement(\n\t\t\t\t'div',\n\t\t\t\t{ role: 'alert', className, style },\n\t\t\t\t`Roxy UI script load failed: ${error.message}`,\n\t\t\t);\n\t\t}\n\n\t\treturn React.createElement('roxy-angel-number-card', {\n\t\t\tref: internal,\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\t...rest,\n\t\t});\n\t},\n);\n", "/**\n * Loads the matching component bundle on first mount. Idempotent across\n * many components on the same page. Skips on the server (no document) so\n * React server components and Next.js SSR work without a flash.\n *\n * {@link ensureLocaleLoaded} is the other half and is OPT-IN: it loads the label\n * catalogue for one language from the same release, so a non-English app calls\n * both. There is one catalogue, shipped by `@roxyapi/ui` and read by every\n * wrapper, so nothing is restated here.\n *\n * Defaults to the EXACT @roxyapi/ui release this wrapper was built against, so\n * `@roxyapi/ui-vue@x.y.z` always runs `@roxyapi/ui@x.y.z` and a lockfile actually\n * pins the runtime: it is a fixed version rather than a moving alias, so a later\n * @roxyapi/ui release cannot change the elements under an existing install.\n *\n * Pass an explicit `version` to override, or 'latest' to opt back into floating.\n *\n * Pass `baseUrl` to serve the bundle from your own origin instead of the CDN, which is\n * what an air-gapped install or a strict Content-Security-Policy needs: copy\n * `node_modules/@roxyapi/ui/dist/cdn/` onto your host and call this once at app entry,\n * before any component mounts. The loader keeps a single shared promise, so the first\n * call wins and every component reuses it.\n */\n/** The @roxyapi/ui release this wrapper was generated against. The loader defaults to it, so the wrapper version in your lockfile is the runtime you actually get. */\nexport const ROXY_UI_VERSION = \"0.53.3\";\n\nconst SCRIPT_ID = 'roxyapi-ui-loader';\nconst CDN_BASE_LATEST = \"https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn\";\nconst CDN_BASE_PREFIX = \"https://cdn.jsdelivr.net/npm/@roxyapi/ui@\";\nconst CDN_BASE_SUFFIX = \"/dist/cdn\";\n\nlet loaded: Promise<void> | null = null;\n\nfunction buildBase(version: string): string {\n\tif (!version || version === 'latest') return CDN_BASE_LATEST;\n\treturn `${CDN_BASE_PREFIX}${version}${CDN_BASE_SUFFIX}`;\n}\n\nexport function ensureScriptLoaded(\n\tversion: string = ROXY_UI_VERSION,\n\tbaseUrl?: string,\n): Promise<void> {\n\tif (typeof document === 'undefined') return Promise.resolve();\n\tif (loaded) return loaded;\n\n\tloaded = new Promise<void>((resolve, reject) => {\n\t\tconst url = `${baseUrl ?? buildBase(version)}/roxy-ui.js`;\n\t\tlet existing = document.getElementById(SCRIPT_ID) as HTMLScriptElement | null;\n\t\tif (existing) {\n\t\t\tif (existing.dataset.loaded === 'true') {\n\t\t\t\tresolve();\n\t\t\t} else {\n\t\t\t\texisting.addEventListener('load', () => resolve());\n\t\t\t\texisting.addEventListener('error', () => reject(new Error('roxy-ui load failed')));\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\texisting = document.createElement('script');\n\t\texisting.id = SCRIPT_ID;\n\t\texisting.src = url;\n\t\texisting.async = true;\n\t\texisting.crossOrigin = 'anonymous';\n\t\texisting.addEventListener('load', () => {\n\t\t\texisting!.dataset.loaded = 'true';\n\t\t\tresolve();\n\t\t});\n\t\texisting.addEventListener('error', () => reject(new Error('roxy-ui load failed')));\n\t\tdocument.head.appendChild(existing);\n\t});\n\treturn loaded;\n}\n\n/** Every language a label catalogue ships for. English is absent on purpose: the catalogue key IS the English string, so an English page downloads nothing. */\nexport const ROXY_UI_LOCALES = [\"de\",\"es\",\"fr\",\"hi\",\"pt\",\"ru\",\"tr\",\"zh-Hans\",\"zh-Hant\"] as const;\n\nconst localesLoaded = new Map<string, Promise<void>>();\n\n/**\n * Load the label catalogue for one language, so the components write their own\n * headings, buttons, empty states and form labels in it.\n *\n * Call it once at app entry, beside `ensureScriptLoaded`. The components read the\n * language from the page (their own `lang` attribute, the nearest ancestor\n * carrying one, or `<html lang>`), so this call supplies the WORDS and the page\n * supplies the CHOICE. Loading a catalogue a page never asks for is harmless.\n *\n * `es-AR`, `es-MX` and `es-419` all resolve to the `es` catalogue, so pass the\n * page tag as it stands. English resolves to nothing at all and is not an error:\n * the catalogue is keyed by the English text, so an English page needs no payload.\n * A language outside `ROXY_UI_LOCALES` resolves the same way rather than appending\n * a script tag that 404s.\n *\n * `version` and `baseUrl` behave exactly as they do for {@link ensureScriptLoaded},\n * and passing the same `baseUrl` to both is what an air-gapped or strict-CSP host\n * needs: copy `node_modules/@roxyapi/ui/dist/cdn/` onto your own origin, which\n * carries `locales/` beside `roxy-ui.js`.\n *\n * @example\n * ```ts\n * import { ensureScriptLoaded, ensureLocaleLoaded } from '@roxyapi/ui-react';\n *\n * ensureScriptLoaded();\n * ensureLocaleLoaded(document.documentElement.lang);\n * ```\n */\nexport function ensureLocaleLoaded(\n\tlang: string,\n\tversion: string = ROXY_UI_VERSION,\n\tbaseUrl?: string,\n): Promise<void> {\n\tif (typeof document === 'undefined') return Promise.resolve();\n\tconst base = (lang || '').toLowerCase().split('-')[0] ?? '';\n\tif (!(ROXY_UI_LOCALES as readonly string[]).includes(base)) {\n\t\treturn Promise.resolve();\n\t}\n\tconst existing = localesLoaded.get(base);\n\tif (existing) return existing;\n\n\tconst pending = new Promise<void>((resolve, reject) => {\n\t\tconst id = `${SCRIPT_ID}-locale-${base}`;\n\t\tlet el = document.getElementById(id) as HTMLScriptElement | null;\n\t\tif (el) {\n\t\t\tif (el.dataset.loaded === 'true') resolve();\n\t\t\telse {\n\t\t\t\tel.addEventListener('load', () => resolve());\n\t\t\t\tel.addEventListener('error', () => reject(new Error(`roxy-ui locale ${base} load failed`)));\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tel = document.createElement('script');\n\t\tel.id = id;\n\t\tel.src = `${baseUrl ?? buildBase(version)}/locales/${base}.js`;\n\t\tel.async = true;\n\t\tel.crossOrigin = 'anonymous';\n\t\tel.addEventListener('load', () => {\n\t\t\tel!.dataset.loaded = 'true';\n\t\t\tresolve();\n\t\t});\n\t\tel.addEventListener('error', () => reject(new Error(`roxy-ui locale ${base} load failed`)));\n\t\tdocument.head.appendChild(el);\n\t});\n\tlocalesLoaded.set(base, pending);\n\treturn pending;\n}\n\n// Default export retained for convenience; matches the named export.\nexport default ensureScriptLoaded;\n// Surfaces the embedded @roxyapi/ui version this build of @roxyapi/ui-react\n// was generated against. Useful for diagnostics; not load-bearing.\n"],
5
- "mappings": "AAAA,UAAYA,MAAW,QCwBhB,IAAMC,EAAkB,SAEzBC,EAAY,oBACZC,EAAkB,2DAClBC,EAAkB,4CAClBC,EAAkB,YAEpBC,EAA+B,KAEnC,SAASC,EAAUC,EAAyB,CAC3C,MAAI,CAACA,GAAWA,IAAY,SAAiBL,EACtC,GAAGC,CAAe,GAAGI,CAAO,GAAGH,CAAe,EACtD,CAEO,SAASI,EACfD,EAAkBP,EAClBS,EACgB,CAChB,OAAI,OAAO,SAAa,IAAoB,QAAQ,QAAQ,EACxDJ,IAEJA,EAAS,IAAI,QAAc,CAACK,EAASC,IAAW,CAC/C,IAAMC,EAAM,GAAGH,GAAWH,EAAUC,CAAO,CAAC,cACxCM,EAAW,SAAS,eAAeZ,CAAS,EAChD,GAAIY,EAAU,CACTA,EAAS,QAAQ,SAAW,OAC/BH,EAAQ,GAERG,EAAS,iBAAiB,OAAQ,IAAMH,EAAQ,CAAC,EACjDG,EAAS,iBAAiB,QAAS,IAAMF,EAAO,IAAI,MAAM,qBAAqB,CAAC,CAAC,GAElF,MACD,CACAE,EAAW,SAAS,cAAc,QAAQ,EAC1CA,EAAS,GAAKZ,EACdY,EAAS,IAAMD,EACfC,EAAS,MAAQ,GACjBA,EAAS,YAAc,YACvBA,EAAS,iBAAiB,OAAQ,IAAM,CACvCA,EAAU,QAAQ,OAAS,OAC3BH,EAAQ,CACT,CAAC,EACDG,EAAS,iBAAiB,QAAS,IAAMF,EAAO,IAAI,MAAM,qBAAqB,CAAC,CA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,EAA2C,aAAed,EAE7D,EAAG,CAACA,EAAcO,CAAM,CAAC,EAEnB,YAAU,IAAM,CACrB,IAAMO,EAAKR,EAAS,QAChBQ,GAAMb,IAAgB,SACxBa,EAA0C,YAAcb,EAE3D,EAAG,CAACA,EAAaM,CAAM,CAAC,EAElB,YAAU,IAAM,CACrB,IAAMO,EAAKR,EAAS,QAChBQ,GAAMZ,IAAiB,SACzBY,EAA4C,aAAeZ,EAE9D,EAAG,CAACA,EAAcK,CAAM,CAAC,EAEnB,YAAU,IAAM,CACrB,IAAMO,EAAKR,EAAS,QAChBQ,GAAMX,IAAiB,SACzBW,EAA2C,aAAeX,EAE7D,EAAG,CAACA,EAAcI,CAAM,CAAC,EAErBE,EACU,gBACZ,MACA,CAAE,KAAM,QAAS,UAAAtB,EAAW,MAAAC,CAAM,EAClC,+BAA+BqB,EAAM,OAAO,EAC7C,EAGY,gBAAc,yBAA0B,CACpD,IAAKH,EACL,UAAAnB,EACA,MAAAC,EACA,GAAGgB,CACJ,CAAC,CACF,CACD",
6
- "names": ["React", "ROXY_UI_VERSION", "SCRIPT_ID", "CDN_BASE_LATEST", "CDN_BASE_PREFIX", "CDN_BASE_SUFFIX", "loaded", "buildBase", "version", "ensureScriptLoaded", "baseUrl", "resolve", "reject", "url", "existing", "RoxyAngelNumberCard", "data", "className", "style", "endpoint", "method", "publishableKey", "baseUrl", "submitUrl", "submitContext", "locationUrl", "specUrl", "lang", "submitLabel", "remember", "errorMessage", "attribution", "hideReadings", "hideSections", "rest", "ref", "internal", "loaded", "setLoaded", "error", "setError", "active", "ensureScriptLoaded", "err", "el"]
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"angel-number-lookup.d.ts","sourceRoot":"","sources":["../../src/components/angel-number-lookup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAEvE,KAAK,YAAY,GAAG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": ["import * as React from 'react';\nimport { ensureScriptLoaded } from '../load-ui.js';\nimport type { AnalyzeNumberSequenceResponse } from '../types/index.js';\n\ntype ElementAttrs = Omit<\n\tReact.HTMLAttributes<HTMLElement>,\n\t'children' | 'data'\n>;\n\nexport interface RoxyAngelNumberLookupProps extends ElementAttrs {\n\t/** Spec-derived response payload. Pass the raw RoxyAPI response. */\n\tdata?: AnalyzeNumberSequenceResponse;\n\tclassName?: string;\n\tstyle?: React.CSSProperties;\n\t/** Endpoint path for built-in self-fetch, e.g. \"astrology/natal-chart\". Optional: with a publishableKey or submitUrl and no endpoint, the component fetches its default endpoint, or the one its config prop (mode, period, type, spread, detail) selects. Set it to render any other endpoint the component draws. Pass `data` and no key for controlled mode. */\n\tendpoint?: string;\n\t/** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */\n\tmethod?: 'GET' | 'POST';\n\t/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */\n\tpublishableKey?: string;\n\t/** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */\n\tbaseUrl?: string;\n\t/** Your own backend route, which holds the secret key. Every request the component makes, the city search included, is POSTed there as `{ path, method, body, query }` instead of calling RoxyAPI directly, and the component renders the JSON your route returns, so no key of any kind reaches the browser. */\n\tsubmitUrl?: string;\n\t/** An object of your own, sent to your submitUrl route as `context` beside the request, so a page can attach its own verification data to a proxied submission. Passed through untouched and never read by the component: what it holds is for your page and your route to agree on. Unset, nothing is added and the route receives the request exactly as before. Rides the submitUrl path only; a direct call sends what the endpoint declares. */\n\tsubmitContext?: Record<string, unknown>;\n\t/** Where the self-fetch form city search sends its GET, absolute or relative to the page. Optional beside submitUrl, which carries the city search too; set it only to send the city search somewhere else. Unset with no submitUrl, the search calls the public location endpoint. */\n\tlocationUrl?: string;\n\t/** Override the OpenAPI spec URL the self-fetch form introspects. */\n\tspecUrl?: string;\n\t/** Response language for self-fetch, forwarded to the API `lang` query parameter (en, tr, de, es, hi, pt, fr, ru). The form never shows a language field; the site owner sets it here. Defaults to English. */\n\tlang?: string;\n\t/** Override the self-fetch form submit-button label. Empty derives an outcome-first label from the endpoint (Get reading, Generate, Compare, Cast). */\n\tsubmitLabel?: string;\n\t/** Persist the last self-fetch form values in sessionStorage, keyed by endpoint, and prefill the form when the visitor returns. Off by default. */\n\tremember?: boolean;\n\t/** Your own words for a failed self-fetch the API did not explain (a dropped connection, a response with no message). A failure the API explains, such as a spent quota, reads as the API worded it. */\n\terrorMessage?: string;\n\t/** Render a small \"Spiritual data by RoxyAPI\" credit under a self-fetch result, linking back to RoxyAPI. Off by default; set any value to enable, or \"off\" to force it off. Never shown in controlled mode. */\n\tattribution?: string;\n\t/** Render the chart and the data and omit the written interpretation. Off by default. Use it when the page supplies its own words: the wheels, tables, grids, legends and numbers stay, and the interpretive prose is left out of the markup entirely. */\n\thideReadings?: boolean;\n\t/** Comma-separated list of `part` names to take off this component, for example \"patterns\" or \"patterns, legend\". Per element rather than per site, so the same component can drop a block on one page and keep it on another with no CSS. Sibling of hideReadings and a different tool: this hides a whole block whatever it contains, where hideReadings drops interpretive prose out of the markup. Names come from the `parts` array in components-catalog.json; a name the component does not carry hides nothing and is not an error. */\n\thideSections?: string;\n\n}\n\nexport const RoxyAngelNumberLookup = React.forwardRef<HTMLElement | null, RoxyAngelNumberLookupProps>(\n\tfunction RoxyAngelNumberLookup({ data, className, style, endpoint, method, publishableKey, baseUrl, submitUrl, submitContext, locationUrl, specUrl, lang, submitLabel, remember, errorMessage, attribution, hideReadings, hideSections, ...rest }, ref) {\n\t\tconst internal = React.useRef<HTMLElement | null>(null);\n\t\tReact.useImperativeHandle<HTMLElement | null, HTMLElement | null>(\n\t\t\tref,\n\t\t\t() => internal.current,\n\t\t\t[],\n\t\t);\n\t\tconst [loaded, setLoaded] = React.useState(false);\n\t\tconst [error, setError] = React.useState<Error | null>(null);\n\n\t\tReact.useEffect(() => {\n\t\t\tlet active = true;\n\t\t\tensureScriptLoaded()\n\t\t\t\t.then(() => {\n\t\t\t\t\tif (active) setLoaded(true);\n\t\t\t\t})\n\t\t\t\t.catch((err: unknown) => {\n\t\t\t\t\tif (!active) return;\n\t\t\t\t\tsetError(err instanceof Error ? err : new Error(String(err)));\n\t\t\t\t});\n\t\t\treturn () => {\n\t\t\t\tactive = false;\n\t\t\t};\n\t\t}, []);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && data !== undefined) {\n\t\t\t\t(el as unknown as { data: unknown }).data = data;\n\t\t\t}\n\t\t}, [data, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && endpoint !== undefined) {\n\t\t\t\t(el as unknown as { endpoint: string }).endpoint = endpoint;\n\t\t\t}\n\t\t}, [endpoint, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && method !== undefined) {\n\t\t\t\t(el as unknown as { method: 'GET' | 'POST' }).method = method;\n\t\t\t}\n\t\t}, [method, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && publishableKey !== undefined) {\n\t\t\t\t(el as unknown as { publishableKey: string }).publishableKey = publishableKey;\n\t\t\t}\n\t\t}, [publishableKey, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && baseUrl !== undefined) {\n\t\t\t\t(el as unknown as { baseUrl: string }).baseUrl = baseUrl;\n\t\t\t}\n\t\t}, [baseUrl, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && submitUrl !== undefined) {\n\t\t\t\t(el as unknown as { submitUrl: string }).submitUrl = submitUrl;\n\t\t\t}\n\t\t}, [submitUrl, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && submitContext !== undefined) {\n\t\t\t\t(el as unknown as { submitContext: Record<string, unknown> }).submitContext = submitContext;\n\t\t\t}\n\t\t}, [submitContext, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && locationUrl !== undefined) {\n\t\t\t\t(el as unknown as { locationUrl: string }).locationUrl = locationUrl;\n\t\t\t}\n\t\t}, [locationUrl, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && specUrl !== undefined) {\n\t\t\t\t(el as unknown as { specUrl: string }).specUrl = specUrl;\n\t\t\t}\n\t\t}, [specUrl, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && lang !== undefined) {\n\t\t\t\t(el as unknown as { lang: string }).lang = lang;\n\t\t\t}\n\t\t}, [lang, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && submitLabel !== undefined) {\n\t\t\t\t(el as unknown as { submitLabel: string }).submitLabel = submitLabel;\n\t\t\t}\n\t\t}, [submitLabel, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && remember !== undefined) {\n\t\t\t\t(el as unknown as { remember: boolean }).remember = remember;\n\t\t\t}\n\t\t}, [remember, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && errorMessage !== undefined) {\n\t\t\t\t(el as unknown as { errorMessage: string }).errorMessage = errorMessage;\n\t\t\t}\n\t\t}, [errorMessage, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && attribution !== undefined) {\n\t\t\t\t(el as unknown as { attribution: string }).attribution = attribution;\n\t\t\t}\n\t\t}, [attribution, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && hideReadings !== undefined) {\n\t\t\t\t(el as unknown as { hideReadings: boolean }).hideReadings = hideReadings;\n\t\t\t}\n\t\t}, [hideReadings, loaded]);\n\n\t\tReact.useEffect(() => {\n\t\t\tconst el = internal.current;\n\t\t\tif (el && hideSections !== undefined) {\n\t\t\t\t(el as unknown as { hideSections: string }).hideSections = hideSections;\n\t\t\t}\n\t\t}, [hideSections, loaded]);\n\n\t\tif (error) {\n\t\t\treturn React.createElement(\n\t\t\t\t'div',\n\t\t\t\t{ role: 'alert', className, style },\n\t\t\t\t`Roxy UI script load failed: ${error.message}`,\n\t\t\t);\n\t\t}\n\n\t\treturn React.createElement('roxy-angel-number-lookup', {\n\t\t\tref: internal,\n\t\t\tclassName,\n\t\t\tstyle,\n\t\t\t...rest,\n\t\t});\n\t},\n);\n", "/**\n * Loads the matching component bundle on first mount. Idempotent across\n * many components on the same page. Skips on the server (no document) so\n * React server components and Next.js SSR work without a flash.\n *\n * {@link ensureLocaleLoaded} is the other half and is OPT-IN: it loads the label\n * catalogue for one language from the same release, so a non-English app calls\n * both. There is one catalogue, shipped by `@roxyapi/ui` and read by every\n * wrapper, so nothing is restated here.\n *\n * Defaults to the EXACT @roxyapi/ui release this wrapper was built against, so\n * `@roxyapi/ui-vue@x.y.z` always runs `@roxyapi/ui@x.y.z` and a lockfile actually\n * pins the runtime: it is a fixed version rather than a moving alias, so a later\n * @roxyapi/ui release cannot change the elements under an existing install.\n *\n * Pass an explicit `version` to override, or 'latest' to opt back into floating.\n *\n * Pass `baseUrl` to serve the bundle from your own origin instead of the CDN, which is\n * what an air-gapped install or a strict Content-Security-Policy needs: copy\n * `node_modules/@roxyapi/ui/dist/cdn/` onto your host and call this once at app entry,\n * before any component mounts. The loader keeps a single shared promise, so the first\n * call wins and every component reuses it.\n */\n/** The @roxyapi/ui release this wrapper was generated against. The loader defaults to it, so the wrapper version in your lockfile is the runtime you actually get. */\nexport const ROXY_UI_VERSION = \"0.53.3\";\n\nconst SCRIPT_ID = 'roxyapi-ui-loader';\nconst CDN_BASE_LATEST = \"https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn\";\nconst CDN_BASE_PREFIX = \"https://cdn.jsdelivr.net/npm/@roxyapi/ui@\";\nconst CDN_BASE_SUFFIX = \"/dist/cdn\";\n\nlet loaded: Promise<void> | null = null;\n\nfunction buildBase(version: string): string {\n\tif (!version || version === 'latest') return CDN_BASE_LATEST;\n\treturn `${CDN_BASE_PREFIX}${version}${CDN_BASE_SUFFIX}`;\n}\n\nexport function ensureScriptLoaded(\n\tversion: string = ROXY_UI_VERSION,\n\tbaseUrl?: string,\n): Promise<void> {\n\tif (typeof document === 'undefined') return Promise.resolve();\n\tif (loaded) return loaded;\n\n\tloaded = new Promise<void>((resolve, reject) => {\n\t\tconst url = `${baseUrl ?? buildBase(version)}/roxy-ui.js`;\n\t\tlet existing = document.getElementById(SCRIPT_ID) as HTMLScriptElement | null;\n\t\tif (existing) {\n\t\t\tif (existing.dataset.loaded === 'true') {\n\t\t\t\tresolve();\n\t\t\t} else {\n\t\t\t\texisting.addEventListener('load', () => resolve());\n\t\t\t\texisting.addEventListener('error', () => reject(new Error('roxy-ui load failed')));\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\texisting = document.createElement('script');\n\t\texisting.id = SCRIPT_ID;\n\t\texisting.src = url;\n\t\texisting.async = true;\n\t\texisting.crossOrigin = 'anonymous';\n\t\texisting.addEventListener('load', () => {\n\t\t\texisting!.dataset.loaded = 'true';\n\t\t\tresolve();\n\t\t});\n\t\texisting.addEventListener('error', () => reject(new Error('roxy-ui load failed')));\n\t\tdocument.head.appendChild(existing);\n\t});\n\treturn loaded;\n}\n\n/** Every language a label catalogue ships for. English is absent on purpose: the catalogue key IS the English string, so an English page downloads nothing. */\nexport const ROXY_UI_LOCALES = [\"de\",\"es\",\"fr\",\"hi\",\"pt\",\"ru\",\"tr\",\"zh-Hans\",\"zh-Hant\"] as const;\n\nconst localesLoaded = new Map<string, Promise<void>>();\n\n/**\n * Load the label catalogue for one language, so the components write their own\n * headings, buttons, empty states and form labels in it.\n *\n * Call it once at app entry, beside `ensureScriptLoaded`. The components read the\n * language from the page (their own `lang` attribute, the nearest ancestor\n * carrying one, or `<html lang>`), so this call supplies the WORDS and the page\n * supplies the CHOICE. Loading a catalogue a page never asks for is harmless.\n *\n * `es-AR`, `es-MX` and `es-419` all resolve to the `es` catalogue, so pass the\n * page tag as it stands. English resolves to nothing at all and is not an error:\n * the catalogue is keyed by the English text, so an English page needs no payload.\n * A language outside `ROXY_UI_LOCALES` resolves the same way rather than appending\n * a script tag that 404s.\n *\n * `version` and `baseUrl` behave exactly as they do for {@link ensureScriptLoaded},\n * and passing the same `baseUrl` to both is what an air-gapped or strict-CSP host\n * needs: copy `node_modules/@roxyapi/ui/dist/cdn/` onto your own origin, which\n * carries `locales/` beside `roxy-ui.js`.\n *\n * @example\n * ```ts\n * import { ensureScriptLoaded, ensureLocaleLoaded } from '@roxyapi/ui-react';\n *\n * ensureScriptLoaded();\n * ensureLocaleLoaded(document.documentElement.lang);\n * ```\n */\nexport function ensureLocaleLoaded(\n\tlang: string,\n\tversion: string = ROXY_UI_VERSION,\n\tbaseUrl?: string,\n): Promise<void> {\n\tif (typeof document === 'undefined') return Promise.resolve();\n\tconst base = (lang || '').toLowerCase().split('-')[0] ?? '';\n\tif (!(ROXY_UI_LOCALES as readonly string[]).includes(base)) {\n\t\treturn Promise.resolve();\n\t}\n\tconst existing = localesLoaded.get(base);\n\tif (existing) return existing;\n\n\tconst pending = new Promise<void>((resolve, reject) => {\n\t\tconst id = `${SCRIPT_ID}-locale-${base}`;\n\t\tlet el = document.getElementById(id) as HTMLScriptElement | null;\n\t\tif (el) {\n\t\t\tif (el.dataset.loaded === 'true') resolve();\n\t\t\telse {\n\t\t\t\tel.addEventListener('load', () => resolve());\n\t\t\t\tel.addEventListener('error', () => reject(new Error(`roxy-ui locale ${base} load failed`)));\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tel = document.createElement('script');\n\t\tel.id = id;\n\t\tel.src = `${baseUrl ?? buildBase(version)}/locales/${base}.js`;\n\t\tel.async = true;\n\t\tel.crossOrigin = 'anonymous';\n\t\tel.addEventListener('load', () => {\n\t\t\tel!.dataset.loaded = 'true';\n\t\t\tresolve();\n\t\t});\n\t\tel.addEventListener('error', () => reject(new Error(`roxy-ui locale ${base} load failed`)));\n\t\tdocument.head.appendChild(el);\n\t});\n\tlocalesLoaded.set(base, pending);\n\treturn pending;\n}\n\n// Default export retained for convenience; matches the named export.\nexport default ensureScriptLoaded;\n// Surfaces the embedded @roxyapi/ui version this build of @roxyapi/ui-react\n// was generated against. Useful for diagnostics; not load-bearing.\n"],
5
- "mappings": "AAAA,UAAYA,MAAW,QCwBhB,IAAMC,EAAkB,SAEzBC,EAAY,oBACZC,EAAkB,2DAClBC,EAAkB,4CAClBC,EAAkB,YAEpBC,EAA+B,KAEnC,SAASC,EAAUC,EAAyB,CAC3C,MAAI,CAACA,GAAWA,IAAY,SAAiBL,EACtC,GAAGC,CAAe,GAAGI,CAAO,GAAGH,CAAe,EACtD,CAEO,SAASI,EACfD,EAAkBP,EAClBS,EACgB,CAChB,OAAI,OAAO,SAAa,IAAoB,QAAQ,QAAQ,EACxDJ,IAEJA,EAAS,IAAI,QAAc,CAACK,EAASC,IAAW,CAC/C,IAAMC,EAAM,GAAGH,GAAWH,EAAUC,CAAO,CAAC,cACxCM,EAAW,SAAS,eAAeZ,CAAS,EAChD,GAAIY,EAAU,CACTA,EAAS,QAAQ,SAAW,OAC/BH,EAAQ,GAERG,EAAS,iBAAiB,OAAQ,IAAMH,EAAQ,CAAC,EACjDG,EAAS,iBAAiB,QAAS,IAAMF,EAAO,IAAI,MAAM,qBAAqB,CAAC,CAAC,GAElF,MACD,CACAE,EAAW,SAAS,cAAc,QAAQ,EAC1CA,EAAS,GAAKZ,EACdY,EAAS,IAAMD,EACfC,EAAS,MAAQ,GACjBA,EAAS,YAAc,YACvBA,EAAS,iBAAiB,OAAQ,IAAM,CACvCA,EAAU,QAAQ,OAAS,OAC3BH,EAAQ,CACT,CAAC,EACDG,EAAS,iBAAiB,QAAS,IAAMF,EAAO,IAAI,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Q,GAAMd,IAAiB,SACzBc,EAA2C,aAAed,EAE7D,EAAG,CAACA,EAAcO,CAAM,CAAC,EAEnB,YAAU,IAAM,CACrB,IAAMO,EAAKR,EAAS,QAChBQ,GAAMb,IAAgB,SACxBa,EAA0C,YAAcb,EAE3D,EAAG,CAACA,EAAaM,CAAM,CAAC,EAElB,YAAU,IAAM,CACrB,IAAMO,EAAKR,EAAS,QAChBQ,GAAMZ,IAAiB,SACzBY,EAA4C,aAAeZ,EAE9D,EAAG,CAACA,EAAcK,CAAM,CAAC,EAEnB,YAAU,IAAM,CACrB,IAAMO,EAAKR,EAAS,QAChBQ,GAAMX,IAAiB,SACzBW,EAA2C,aAAeX,EAE7D,EAAG,CAACA,EAAcI,CAAM,CAAC,EAErBE,EACU,gBACZ,MACA,CAAE,KAAM,QAAS,UAAAtB,EAAW,MAAAC,CAAM,EAClC,+BAA+BqB,EAAM,OAAO,EAC7C,EAGY,gBAAc,2BAA4B,CACtD,IAAKH,EACL,UAAAnB,EACA,MAAAC,EACA,GAAGgB,CACJ,CAAC,CACF,CACD",
6
- "names": ["React", "ROXY_UI_VERSION", "SCRIPT_ID", "CDN_BASE_LATEST", "CDN_BASE_PREFIX", "CDN_BASE_SUFFIX", "loaded", "buildBase", "version", "ensureScriptLoaded", "baseUrl", "resolve", "reject", "url", "existing", "RoxyAngelNumberLookup", "data", "className", "style", "endpoint", "method", "publishableKey", "baseUrl", "submitUrl", "submitContext", "locationUrl", "specUrl", "lang", "submitLabel", "remember", "errorMessage", "attribution", "hideReadings", "hideSections", "rest", "ref", "internal", "loaded", "setLoaded", "error", "setError", "active", "ensureScriptLoaded", "err", "el"]
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"arudha-padas.d.ts","sourceRoot":"","sources":["../../src/components/arudha-padas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,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