@roxyapi/ui-react 0.53.2 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/AGENTS.md +41 -43
  2. package/README.md +45 -77
  3. package/dist/components/almanac-day.d.ts +4 -5
  4. package/dist/components/almanac-day.js +1 -2
  5. package/dist/components/angel-number-card.d.ts +4 -5
  6. package/dist/components/angel-number-card.js +1 -2
  7. package/dist/components/angel-number-lookup.d.ts +4 -5
  8. package/dist/components/angel-number-lookup.js +1 -2
  9. package/dist/components/arudha-padas.d.ts +4 -5
  10. package/dist/components/arudha-padas.js +1 -2
  11. package/dist/components/ashtakavarga-grid.d.ts +4 -5
  12. package/dist/components/ashtakavarga-grid.js +1 -2
  13. package/dist/components/aspects-table.d.ts +4 -5
  14. package/dist/components/aspects-table.js +1 -2
  15. package/dist/components/astrocartography-map.d.ts +4 -5
  16. package/dist/components/astrocartography-map.js +1 -2
  17. package/dist/components/bazi-chart.d.ts +4 -5
  18. package/dist/components/bazi-chart.js +1 -2
  19. package/dist/components/bhav-chalit-table.d.ts +4 -5
  20. package/dist/components/bhav-chalit-table.js +1 -2
  21. package/dist/components/bhava-bala-table.d.ts +4 -5
  22. package/dist/components/bhava-bala-table.js +1 -2
  23. package/dist/components/biorhythm-chart.d.ts +4 -5
  24. package/dist/components/biorhythm-chart.js +1 -2
  25. package/dist/components/bodygraph.d.ts +4 -5
  26. package/dist/components/bodygraph.js +1 -2
  27. package/dist/components/chara-karakas.d.ts +4 -5
  28. package/dist/components/chara-karakas.js +1 -2
  29. package/dist/components/choghadiya-grid.d.ts +4 -5
  30. package/dist/components/choghadiya-grid.js +1 -2
  31. package/dist/components/compatibility-card.d.ts +4 -5
  32. package/dist/components/compatibility-card.js +1 -2
  33. package/dist/components/compound-number.d.ts +4 -5
  34. package/dist/components/compound-number.js +1 -2
  35. package/dist/components/crystal-card.d.ts +4 -5
  36. package/dist/components/crystal-card.js +1 -2
  37. package/dist/components/crystal-grid.d.ts +4 -5
  38. package/dist/components/crystal-grid.js +1 -2
  39. package/dist/components/dasha-timeline.d.ts +4 -5
  40. package/dist/components/dasha-timeline.js +1 -2
  41. package/dist/components/data.d.ts +4 -5
  42. package/dist/components/data.js +1 -2
  43. package/dist/components/divisional-chart.d.ts +4 -5
  44. package/dist/components/divisional-chart.js +1 -2
  45. package/dist/components/dosha-card.d.ts +4 -5
  46. package/dist/components/dosha-card.js +1 -2
  47. package/dist/components/dosha-constitution.d.ts +4 -5
  48. package/dist/components/dosha-constitution.js +1 -2
  49. package/dist/components/dream-card.d.ts +4 -5
  50. package/dist/components/dream-card.js +1 -2
  51. package/dist/components/dream-search.d.ts +4 -5
  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 +4 -5
  56. package/dist/components/ephemeris-table.js +1 -2
  57. package/dist/components/fixed-stars.d.ts +4 -5
  58. package/dist/components/fixed-stars.js +1 -2
  59. package/dist/components/flying-star-chart.d.ts +4 -5
  60. package/dist/components/flying-star-chart.js +1 -2
  61. package/dist/components/forecast-digest.d.ts +4 -5
  62. package/dist/components/forecast-digest.js +1 -2
  63. package/dist/components/forecast-timeline.d.ts +4 -5
  64. package/dist/components/forecast-timeline.js +1 -2
  65. package/dist/components/gematria.d.ts +4 -5
  66. package/dist/components/gematria.js +1 -2
  67. package/dist/components/gochara-table.d.ts +4 -5
  68. package/dist/components/gochara-table.js +1 -2
  69. package/dist/components/guna-milan.d.ts +4 -5
  70. package/dist/components/guna-milan.js +1 -2
  71. package/dist/components/hd-connection.d.ts +4 -5
  72. package/dist/components/hd-connection.js +1 -2
  73. package/dist/components/hd-penta.d.ts +4 -5
  74. package/dist/components/hd-penta.js +1 -2
  75. package/dist/components/hd-type-card.d.ts +4 -5
  76. package/dist/components/hd-type-card.js +1 -2
  77. package/dist/components/hd-variables.d.ts +4 -5
  78. package/dist/components/hd-variables.js +1 -2
  79. package/dist/components/heliacal-table.d.ts +4 -5
  80. package/dist/components/heliacal-table.js +1 -2
  81. package/dist/components/hexagram.d.ts +4 -5
  82. package/dist/components/hexagram.js +1 -2
  83. package/dist/components/hora-table.d.ts +4 -5
  84. package/dist/components/hora-table.js +1 -2
  85. package/dist/components/horoscope-card.d.ts +4 -5
  86. package/dist/components/horoscope-card.js +1 -2
  87. package/dist/components/kp-chart.d.ts +4 -5
  88. package/dist/components/kp-chart.js +1 -2
  89. package/dist/components/kp-finance-card.d.ts +4 -5
  90. package/dist/components/kp-finance-card.js +1 -2
  91. package/dist/components/kp-planets-table.d.ts +4 -5
  92. package/dist/components/kp-planets-table.js +1 -2
  93. package/dist/components/kp-ruling-planets.d.ts +4 -5
  94. package/dist/components/kp-ruling-planets.js +1 -2
  95. package/dist/components/kua-card.d.ts +4 -5
  96. package/dist/components/kua-card.js +1 -2
  97. package/dist/components/local-space-compass.d.ts +4 -5
  98. package/dist/components/local-space-compass.js +1 -2
  99. package/dist/components/location-search.d.ts +6 -3
  100. package/dist/components/location-search.js +1 -2
  101. package/dist/components/luck-pillars.d.ts +4 -5
  102. package/dist/components/luck-pillars.js +1 -2
  103. package/dist/components/mayan-day-sign.d.ts +4 -5
  104. package/dist/components/mayan-day-sign.js +1 -2
  105. package/dist/components/moon-phase.d.ts +4 -5
  106. package/dist/components/moon-phase.js +1 -2
  107. package/dist/components/nakshatra-card.d.ts +4 -5
  108. package/dist/components/nakshatra-card.js +1 -2
  109. package/dist/components/natal-chart.d.ts +4 -5
  110. package/dist/components/natal-chart.js +1 -2
  111. package/dist/components/numerology-card.d.ts +4 -5
  112. package/dist/components/numerology-card.js +1 -2
  113. package/dist/components/panchang-table.d.ts +4 -5
  114. package/dist/components/panchang-table.js +1 -2
  115. package/dist/components/positions-table.d.ts +4 -5
  116. package/dist/components/positions-table.js +1 -2
  117. package/dist/components/profection-card.d.ts +4 -5
  118. package/dist/components/profection-card.js +1 -2
  119. package/dist/components/reference-card.d.ts +4 -5
  120. package/dist/components/reference-card.js +1 -2
  121. package/dist/components/relocation-wheel.d.ts +4 -5
  122. package/dist/components/relocation-wheel.js +1 -2
  123. package/dist/components/shadbala-table.d.ts +4 -5
  124. package/dist/components/shadbala-table.js +1 -2
  125. package/dist/components/synastry-chart.d.ts +4 -5
  126. package/dist/components/synastry-chart.js +1 -2
  127. package/dist/components/tarot-card.d.ts +4 -5
  128. package/dist/components/tarot-card.js +1 -2
  129. package/dist/components/tarot-catalog.d.ts +4 -5
  130. package/dist/components/tarot-catalog.js +1 -2
  131. package/dist/components/tarot-spread.d.ts +4 -5
  132. package/dist/components/tarot-spread.js +1 -2
  133. package/dist/components/transit-wheel.d.ts +4 -5
  134. package/dist/components/transit-wheel.js +1 -2
  135. package/dist/components/transits-table.d.ts +4 -5
  136. package/dist/components/transits-table.js +1 -2
  137. package/dist/components/upagraha-table.d.ts +4 -5
  138. package/dist/components/upagraha-table.js +1 -2
  139. package/dist/components/vastu-mandala.d.ts +4 -5
  140. package/dist/components/vastu-mandala.js +1 -2
  141. package/dist/components/vedic-aspects.d.ts +4 -5
  142. package/dist/components/vedic-aspects.js +1 -2
  143. package/dist/components/vedic-daily.d.ts +4 -5
  144. package/dist/components/vedic-daily.js +1 -2
  145. package/dist/components/vedic-kundli.d.ts +4 -5
  146. package/dist/components/vedic-kundli.js +1 -2
  147. package/dist/components/vedic-planets-table.d.ts +4 -5
  148. package/dist/components/vedic-planets-table.js +1 -2
  149. package/dist/components/western-planets-table.d.ts +4 -5
  150. package/dist/components/western-planets-table.js +1 -2
  151. package/dist/components/yoga-list.d.ts +4 -5
  152. package/dist/components/yoga-list.js +1 -2
  153. package/dist/components/zodiac-card.d.ts +4 -5
  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 +10 -7
  161. package/dist/jsx.js +0 -1
  162. package/dist/load-ui.d.ts +1 -2
  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 +5 -6
  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
@@ -6,19 +6,19 @@ export interface RoxyNatalChartProps extends ElementAttrs {
6
6
  data?: NatalChartResponse;
7
7
  className?: string;
8
8
  style?: React.CSSProperties;
9
- /** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. "astrology/natal-chart". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */
9
+ /** 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. */
10
10
  endpoint?: string;
11
- /** HTTP method for the self-fetch request. Defaults to POST. */
11
+ /** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
12
12
  method?: 'GET' | 'POST';
13
13
  /** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
14
14
  publishableKey?: string;
15
15
  /** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */
16
16
  baseUrl?: string;
17
- /** Your own backend route, which holds the secret key. Self-fetch POSTs `{ path, method, body, query }` there instead of calling RoxyAPI directly and renders the JSON your route returns, so no key of any kind reaches the browser. */
17
+ /** 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. */
18
18
  submitUrl?: string;
19
19
  /** 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. */
20
20
  submitContext?: Record<string, unknown>;
21
- /** Where the self-fetch form city search sends its request, absolute or relative to the page. The companion of submitUrl: the city search is a GET the form issues on its own while a visitor types, so a page that routes its API traffic through its own server names that route here as well. Unset, the search calls the public location endpoint. */
21
+ /** 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. */
22
22
  locationUrl?: string;
23
23
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
24
24
  specUrl?: string;
@@ -39,4 +39,3 @@ export interface RoxyNatalChartProps extends ElementAttrs {
39
39
  }
40
40
  export declare const RoxyNatalChart: React.ForwardRefExoticComponent<RoxyNatalChartProps & React.RefAttributes<HTMLElement | null>>;
41
41
  export {};
42
- //# sourceMappingURL=natal-chart.d.ts.map
@@ -1,2 +1 @@
1
- import*as n from"react";var _="0.53.2",v="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",N="/dist/cdn",c=null;function O(a){return!a||a==="latest"?$:`${M}${a}${N}`}function C(a=_,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,d)=>{let u=`${i??O(a)}/roxy-ui.js`,r=document.getElementById(v);if(r){r.dataset.loaded==="true"?o():(r.addEventListener("load",()=>o()),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=v,r.src=u,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var B=n.forwardRef(function({data:i,className:o,style:d,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:g,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:h,hideSections:k,...P},T){let t=n.useRef(null);n.useImperativeHandle(T,()=>t.current,[]);let[s,H]=n.useState(!1),[b,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return C().then(()=>{e&&H(!0)}).catch(S=>{e&&I(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.endpoint=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideReadings=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),b?n.createElement("div",{role:"alert",className:o,style:d},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-natal-chart",{ref:t,className:o,style:d,...P})});export{B as RoxyNatalChart};
2
- //# sourceMappingURL=natal-chart.js.map
1
+ "use client";import*as n from"react";var _="1.1.1",v="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",N="/dist/cdn",c=null;function O(a){return!a||a==="latest"?$:`${M}${a}${N}`}function C(a=_,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,u)=>{let d=`${i??O(a)}/roxy-ui.js`,r=document.getElementById(v);if(r){r.dataset.loaded==="true"?o():(r.addEventListener("load",()=>o()),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=v,r.src=d,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var B=n.forwardRef(function({data:i,className:o,style:u,endpoint:d,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:g,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:h,hideSections:k,...P},T){let t=n.useRef(null);n.useImperativeHandle(T,()=>t.current,[]);let[s,H]=n.useState(!1),[b,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return C().then(()=>{e&&H(!0)}).catch(S=>{e&&I(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.endpoint=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideReadings=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),b?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-natal-chart",{ref:t,className:o,style:u,suppressHydrationWarning:!0,...P})});export{B as RoxyNatalChart};
@@ -8,19 +8,19 @@ export interface RoxyNumerologyCardProps extends ElementAttrs {
8
8
  style?: React.CSSProperties;
9
9
  /** Which numerology response the card is showing. Selects the heading and which fields are surfaced. */
10
10
  type?: 'life-path' | 'expression' | 'soul-urge' | 'personality' | 'birth-day' | 'maturity' | 'daily' | 'personal-day' | 'personal-month' | 'personal-year' | 'chart';
11
- /** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. "astrology/natal-chart". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */
11
+ /** 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. */
12
12
  endpoint?: string;
13
- /** HTTP method for the self-fetch request. Defaults to POST. */
13
+ /** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
14
14
  method?: 'GET' | 'POST';
15
15
  /** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
16
16
  publishableKey?: string;
17
17
  /** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */
18
18
  baseUrl?: string;
19
- /** Your own backend route, which holds the secret key. Self-fetch POSTs `{ path, method, body, query }` there instead of calling RoxyAPI directly and renders the JSON your route returns, so no key of any kind reaches the browser. */
19
+ /** 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. */
20
20
  submitUrl?: string;
21
21
  /** 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. */
22
22
  submitContext?: Record<string, unknown>;
23
- /** Where the self-fetch form city search sends its request, absolute or relative to the page. The companion of submitUrl: the city search is a GET the form issues on its own while a visitor types, so a page that routes its API traffic through its own server names that route here as well. Unset, the search calls the public location endpoint. */
23
+ /** 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. */
24
24
  locationUrl?: string;
25
25
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
26
26
  specUrl?: string;
@@ -41,4 +41,3 @@ export interface RoxyNumerologyCardProps extends ElementAttrs {
41
41
  }
42
42
  export declare const RoxyNumerologyCard: React.ForwardRefExoticComponent<RoxyNumerologyCardProps & React.RefAttributes<HTMLElement | null>>;
43
43
  export {};
44
- //# sourceMappingURL=numerology-card.d.ts.map
@@ -1,2 +1 @@
1
- import*as n from"react";var I="0.53.2",b="roxyapi-ui-loader",_="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",D="/dist/cdn",c=null;function U(a){return!a||a==="latest"?_:`${$}${a}${D}`}function v(a=I,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,l)=>{let u=`${i??U(a)}/roxy-ui.js`,r=document.getElementById(b);if(r){r.dataset.loaded==="true"?o():(r.addEventListener("load",()=>o()),r.addEventListener("error",()=>l(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=b,r.src=u,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>l(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var B=n.forwardRef(function({data:i,className:o,style:l,type:u,endpoint:r,method:d,publishableKey:f,baseUrl:p,submitUrl:R,submitContext:m,locationUrl:E,specUrl:g,lang:y,submitLabel:C,remember:h,errorMessage:w,attribution:x,hideReadings:L,hideSections:P,...T},M){let t=n.useRef(null);n.useImperativeHandle(M,()=>t.current,[]);let[s,N]=n.useState(!1),[k,H]=n.useState(null);return n.useEffect(()=>{let e=!0;return v().then(()=>{e&&N(!0)}).catch(S=>{e&&H(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.type=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.endpoint=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.method=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.publishableKey=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.baseUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.submitUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.locationUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.lang=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&C!==void 0&&(e.submitLabel=C)},[C,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.remember=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.errorMessage=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.hideReadings=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.hideSections=P)},[P,s]),k?n.createElement("div",{role:"alert",className:o,style:l},`Roxy UI script load failed: ${k.message}`):n.createElement("roxy-numerology-card",{ref:t,className:o,style:l,...T})});export{B as RoxyNumerologyCard};
2
- //# sourceMappingURL=numerology-card.js.map
1
+ "use client";import*as n from"react";var I="1.1.1",b="roxyapi-ui-loader",_="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",D="/dist/cdn",c=null;function U(a){return!a||a==="latest"?_:`${$}${a}${D}`}function v(a=I,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,l)=>{let u=`${i??U(a)}/roxy-ui.js`,r=document.getElementById(b);if(r){r.dataset.loaded==="true"?o():(r.addEventListener("load",()=>o()),r.addEventListener("error",()=>l(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=b,r.src=u,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>l(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var B=n.forwardRef(function({data:i,className:o,style:l,type:u,endpoint:r,method:d,publishableKey:f,baseUrl:p,submitUrl:R,submitContext:m,locationUrl:E,specUrl:g,lang:y,submitLabel:C,remember:h,errorMessage:w,attribution:x,hideReadings:L,hideSections:P,...T},M){let t=n.useRef(null);n.useImperativeHandle(M,()=>t.current,[]);let[s,H]=n.useState(!1),[k,N]=n.useState(null);return n.useEffect(()=>{let e=!0;return v().then(()=>{e&&H(!0)}).catch(S=>{e&&N(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.type=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.endpoint=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.method=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.publishableKey=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.baseUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.submitUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.locationUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.lang=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&C!==void 0&&(e.submitLabel=C)},[C,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.remember=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.errorMessage=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.hideReadings=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.hideSections=P)},[P,s]),k?n.createElement("div",{role:"alert",className:o,style:l},`Roxy UI script load failed: ${k.message}`):n.createElement("roxy-numerology-card",{ref:t,className:o,style:l,suppressHydrationWarning:!0,...T})});export{B as RoxyNumerologyCard};
@@ -8,19 +8,19 @@ export interface RoxyPanchangTableProps extends ElementAttrs {
8
8
  style?: React.CSSProperties;
9
9
  /** Whether the response is the basic five-limb panchang or the detailed muhurta set. Detailed mode shows the auspicious and inauspicious period sections. */
10
10
  detail?: 'basic' | 'detailed';
11
- /** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. "astrology/natal-chart". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */
11
+ /** 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. */
12
12
  endpoint?: string;
13
- /** HTTP method for the self-fetch request. Defaults to POST. */
13
+ /** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
14
14
  method?: 'GET' | 'POST';
15
15
  /** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
16
16
  publishableKey?: string;
17
17
  /** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */
18
18
  baseUrl?: string;
19
- /** Your own backend route, which holds the secret key. Self-fetch POSTs `{ path, method, body, query }` there instead of calling RoxyAPI directly and renders the JSON your route returns, so no key of any kind reaches the browser. */
19
+ /** 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. */
20
20
  submitUrl?: string;
21
21
  /** 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. */
22
22
  submitContext?: Record<string, unknown>;
23
- /** Where the self-fetch form city search sends its request, absolute or relative to the page. The companion of submitUrl: the city search is a GET the form issues on its own while a visitor types, so a page that routes its API traffic through its own server names that route here as well. Unset, the search calls the public location endpoint. */
23
+ /** 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. */
24
24
  locationUrl?: string;
25
25
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
26
26
  specUrl?: string;
@@ -41,4 +41,3 @@ export interface RoxyPanchangTableProps extends ElementAttrs {
41
41
  }
42
42
  export declare const RoxyPanchangTable: React.ForwardRefExoticComponent<RoxyPanchangTableProps & React.RefAttributes<HTMLElement | null>>;
43
43
  export {};
44
- //# sourceMappingURL=panchang-table.d.ts.map
@@ -1,2 +1 @@
1
- import*as n from"react";var C="0.53.2",T="roxyapi-ui-loader",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",A="/dist/cdn",u=null;function B(a){return!a||a==="latest"?M:`${O}${a}${A}`}function v(a=C,o){return typeof document>"u"?Promise.resolve():u||(u=new Promise((i,c)=>{let d=`${o??B(a)}/roxy-ui.js`,r=document.getElementById(T);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=T,r.src=d,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",i()}),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),u)}var G=n.forwardRef(function({data:o,className:i,style:c,detail:d,endpoint:r,method:l,publishableKey:f,baseUrl:E,submitUrl:g,submitContext:m,locationUrl:p,specUrl:R,lang:w,submitLabel:y,remember:L,errorMessage:x,attribution:h,hideReadings:P,hideSections:b,...H},I){let t=n.useRef(null);n.useImperativeHandle(I,()=>t.current,[]);let[s,_]=n.useState(!1),[S,$]=n.useState(null);return n.useEffect(()=>{let e=!0;return v().then(()=>{e&&_(!0)}).catch(k=>{e&&$(k instanceof Error?k:new Error(String(k)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&o!==void 0&&(e.data=o)},[o,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.detail=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.endpoint=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.method=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.publishableKey=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.baseUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.submitUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.locationUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.specUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.lang=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.submitLabel=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.remember=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.errorMessage=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.attribution=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.hideReadings=P)},[P,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.hideSections=b)},[b,s]),S?n.createElement("div",{role:"alert",className:i,style:c},`Roxy UI script load failed: ${S.message}`):n.createElement("roxy-panchang-table",{ref:t,className:i,style:c,...H})});export{G as RoxyPanchangTable};
2
- //# sourceMappingURL=panchang-table.js.map
1
+ "use client";import*as n from"react";var C="1.1.1",T="roxyapi-ui-loader",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",A="/dist/cdn",u=null;function B(a){return!a||a==="latest"?M:`${O}${a}${A}`}function v(a=C,o){return typeof document>"u"?Promise.resolve():u||(u=new Promise((i,c)=>{let d=`${o??B(a)}/roxy-ui.js`,r=document.getElementById(T);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=T,r.src=d,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",i()}),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),u)}var G=n.forwardRef(function({data:o,className:i,style:c,detail:d,endpoint:r,method:l,publishableKey:f,baseUrl:E,submitUrl:g,submitContext:m,locationUrl:p,specUrl:R,lang:w,submitLabel:y,remember:L,errorMessage:x,attribution:h,hideReadings:P,hideSections:b,...H},I){let t=n.useRef(null);n.useImperativeHandle(I,()=>t.current,[]);let[s,_]=n.useState(!1),[S,$]=n.useState(null);return n.useEffect(()=>{let e=!0;return v().then(()=>{e&&_(!0)}).catch(k=>{e&&$(k instanceof Error?k:new Error(String(k)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&o!==void 0&&(e.data=o)},[o,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.detail=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.endpoint=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.method=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.publishableKey=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.baseUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.submitUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.locationUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.specUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.lang=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.submitLabel=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.remember=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.errorMessage=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.attribution=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.hideReadings=P)},[P,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.hideSections=b)},[b,s]),S?n.createElement("div",{role:"alert",className:i,style:c},`Roxy UI script load failed: ${S.message}`):n.createElement("roxy-panchang-table",{ref:t,className:i,style:c,suppressHydrationWarning:!0,...H})});export{G as RoxyPanchangTable};
@@ -8,19 +8,19 @@ export interface RoxyPositionsTableProps extends ElementAttrs {
8
8
  style?: React.CSSProperties;
9
9
  /** Override the auto-derived heading. Empty by default, in which case it is derived from the response shape (Asteroids, Black Moon Lilith, Secondary progressions, Solar arc directions, or Arabic lots). */
10
10
  heading?: string;
11
- /** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. "astrology/natal-chart". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */
11
+ /** 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. */
12
12
  endpoint?: string;
13
- /** HTTP method for the self-fetch request. Defaults to POST. */
13
+ /** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
14
14
  method?: 'GET' | 'POST';
15
15
  /** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
16
16
  publishableKey?: string;
17
17
  /** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */
18
18
  baseUrl?: string;
19
- /** Your own backend route, which holds the secret key. Self-fetch POSTs `{ path, method, body, query }` there instead of calling RoxyAPI directly and renders the JSON your route returns, so no key of any kind reaches the browser. */
19
+ /** 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. */
20
20
  submitUrl?: string;
21
21
  /** 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. */
22
22
  submitContext?: Record<string, unknown>;
23
- /** Where the self-fetch form city search sends its request, absolute or relative to the page. The companion of submitUrl: the city search is a GET the form issues on its own while a visitor types, so a page that routes its API traffic through its own server names that route here as well. Unset, the search calls the public location endpoint. */
23
+ /** 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. */
24
24
  locationUrl?: string;
25
25
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
26
26
  specUrl?: string;
@@ -41,4 +41,3 @@ export interface RoxyPositionsTableProps extends ElementAttrs {
41
41
  }
42
42
  export declare const RoxyPositionsTable: React.ForwardRefExoticComponent<RoxyPositionsTableProps & React.RefAttributes<HTMLElement | null>>;
43
43
  export {};
44
- //# sourceMappingURL=positions-table.d.ts.map
@@ -1,2 +1 @@
1
- import*as n from"react";var $="0.53.2",T="roxyapi-ui-loader",C="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",u=null;function U(o){return!o||o==="latest"?C:`${M}${o}${O}`}function v(o=$,a){return typeof document>"u"?Promise.resolve():u||(u=new Promise((i,d)=>{let c=`${a??U(o)}/roxy-ui.js`,s=document.getElementById(T);if(s){s.dataset.loaded==="true"?i():(s.addEventListener("load",()=>i()),s.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=T,s.src=c,s.async=!0,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",i()}),s.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),u)}var N=n.forwardRef(function({data:a,className:i,style:d,heading:c,endpoint:s,method:l,publishableKey:f,baseUrl:E,submitUrl:p,submitContext:R,locationUrl:g,specUrl:m,lang:w,submitLabel:L,remember:y,errorMessage:x,attribution:b,hideReadings:P,hideSections:S,...A},H){let t=n.useRef(null);n.useImperativeHandle(H,()=>t.current,[]);let[r,I]=n.useState(!1),[h,_]=n.useState(null);return n.useEffect(()=>{let e=!0;return v().then(()=>{e&&I(!0)}).catch(k=>{e&&_(k instanceof Error?k:new Error(String(k)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,r]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.heading=c)},[c,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.endpoint=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.method=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.publishableKey=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.baseUrl=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.submitContext=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.specUrl=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.lang=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.submitLabel=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.errorMessage=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.attribution=b)},[b,r]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.hideReadings=P)},[P,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,r]),h?n.createElement("div",{role:"alert",className:i,style:d},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-positions-table",{ref:t,className:i,style:d,...A})});export{N as RoxyPositionsTable};
2
- //# sourceMappingURL=positions-table.js.map
1
+ "use client";import*as n from"react";var $="1.1.1",T="roxyapi-ui-loader",C="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",c=null;function U(o){return!o||o==="latest"?C:`${M}${o}${O}`}function v(o=$,a){return typeof document>"u"?Promise.resolve():c||(c=new Promise((i,d)=>{let u=`${a??U(o)}/roxy-ui.js`,s=document.getElementById(T);if(s){s.dataset.loaded==="true"?i():(s.addEventListener("load",()=>i()),s.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=T,s.src=u,s.async=!0,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",i()}),s.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),c)}var N=n.forwardRef(function({data:a,className:i,style:d,heading:u,endpoint:s,method:l,publishableKey:f,baseUrl:E,submitUrl:p,submitContext:g,locationUrl:R,specUrl:m,lang:w,submitLabel:L,remember:y,errorMessage:x,attribution:b,hideReadings:P,hideSections:S,...A},H){let t=n.useRef(null);n.useImperativeHandle(H,()=>t.current,[]);let[r,I]=n.useState(!1),[h,_]=n.useState(null);return n.useEffect(()=>{let e=!0;return v().then(()=>{e&&I(!0)}).catch(k=>{e&&_(k instanceof Error?k:new Error(String(k)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,r]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.heading=u)},[u,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.endpoint=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.method=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.publishableKey=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.baseUrl=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.submitContext=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.locationUrl=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.specUrl=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.lang=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.submitLabel=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.errorMessage=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.attribution=b)},[b,r]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.hideReadings=P)},[P,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,r]),h?n.createElement("div",{role:"alert",className:i,style:d},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-positions-table",{ref:t,className:i,style:d,suppressHydrationWarning:!0,...A})});export{N as RoxyPositionsTable};
@@ -6,19 +6,19 @@ export interface RoxyProfectionCardProps extends ElementAttrs {
6
6
  data?: ProfectionsResponse;
7
7
  className?: string;
8
8
  style?: React.CSSProperties;
9
- /** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. "astrology/natal-chart". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */
9
+ /** 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. */
10
10
  endpoint?: string;
11
- /** HTTP method for the self-fetch request. Defaults to POST. */
11
+ /** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
12
12
  method?: 'GET' | 'POST';
13
13
  /** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
14
14
  publishableKey?: string;
15
15
  /** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */
16
16
  baseUrl?: string;
17
- /** Your own backend route, which holds the secret key. Self-fetch POSTs `{ path, method, body, query }` there instead of calling RoxyAPI directly and renders the JSON your route returns, so no key of any kind reaches the browser. */
17
+ /** 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. */
18
18
  submitUrl?: string;
19
19
  /** 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. */
20
20
  submitContext?: Record<string, unknown>;
21
- /** Where the self-fetch form city search sends its request, absolute or relative to the page. The companion of submitUrl: the city search is a GET the form issues on its own while a visitor types, so a page that routes its API traffic through its own server names that route here as well. Unset, the search calls the public location endpoint. */
21
+ /** 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. */
22
22
  locationUrl?: string;
23
23
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
24
24
  specUrl?: string;
@@ -39,4 +39,3 @@ export interface RoxyProfectionCardProps extends ElementAttrs {
39
39
  }
40
40
  export declare const RoxyProfectionCard: React.ForwardRefExoticComponent<RoxyProfectionCardProps & React.RefAttributes<HTMLElement | null>>;
41
41
  export {};
42
- //# sourceMappingURL=profection-card.d.ts.map
@@ -1,2 +1 @@
1
- import*as n from"react";var _="0.53.2",h="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",u=null;function A(o){return!o||o==="latest"?$:`${M}${o}${O}`}function v(o=_,a){return typeof document>"u"?Promise.resolve():u||(u=new Promise((i,d)=>{let c=`${a??A(o)}/roxy-ui.js`,r=document.getElementById(h);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=h,r.src=c,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",i()}),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),u)}var D=n.forwardRef(function({data:a,className:i,style:d,endpoint:c,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:g,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:P,hideSections:k,...T},C){let t=n.useRef(null);n.useImperativeHandle(C,()=>t.current,[]);let[s,H]=n.useState(!1),[b,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return v().then(()=>{e&&H(!0)}).catch(S=>{e&&I(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,s]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.endpoint=c)},[c,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.hideReadings=P)},[P,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),b?n.createElement("div",{role:"alert",className:i,style:d},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-profection-card",{ref:t,className:i,style:d,...T})});export{D as RoxyProfectionCard};
2
- //# sourceMappingURL=profection-card.js.map
1
+ "use client";import*as n from"react";var _="1.1.1",h="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",u=null;function A(o){return!o||o==="latest"?$:`${M}${o}${O}`}function v(o=_,a){return typeof document>"u"?Promise.resolve():u||(u=new Promise((i,d)=>{let c=`${a??A(o)}/roxy-ui.js`,r=document.getElementById(h);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=h,r.src=c,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",i()}),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),u)}var D=n.forwardRef(function({data:a,className:i,style:d,endpoint:c,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:p,specUrl:g,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:P,hideSections:k,...T},C){let t=n.useRef(null);n.useImperativeHandle(C,()=>t.current,[]);let[s,H]=n.useState(!1),[b,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return v().then(()=>{e&&H(!0)}).catch(S=>{e&&I(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,s]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.endpoint=c)},[c,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.locationUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.hideReadings=P)},[P,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),b?n.createElement("div",{role:"alert",className:i,style:d},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-profection-card",{ref:t,className:i,style:d,suppressHydrationWarning:!0,...T})});export{D as RoxyProfectionCard};
@@ -6,19 +6,19 @@ export interface RoxyReferenceCardProps extends ElementAttrs {
6
6
  data?: GetZodiacSignResponse | GetPlanetMeaningResponse | GetRashiResponse | GetTrigramResponse | GetGateResponse | GetCenterResponse | GetNumberMeaningResponse | GetCompoundNumberResponse | GetAvasthaResponse;
7
7
  className?: string;
8
8
  style?: React.CSSProperties;
9
- /** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. "astrology/natal-chart". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */
9
+ /** 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. */
10
10
  endpoint?: string;
11
- /** HTTP method for the self-fetch request. Defaults to POST. */
11
+ /** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
12
12
  method?: 'GET' | 'POST';
13
13
  /** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
14
14
  publishableKey?: string;
15
15
  /** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */
16
16
  baseUrl?: string;
17
- /** Your own backend route, which holds the secret key. Self-fetch POSTs `{ path, method, body, query }` there instead of calling RoxyAPI directly and renders the JSON your route returns, so no key of any kind reaches the browser. */
17
+ /** 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. */
18
18
  submitUrl?: string;
19
19
  /** 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. */
20
20
  submitContext?: Record<string, unknown>;
21
- /** Where the self-fetch form city search sends its request, absolute or relative to the page. The companion of submitUrl: the city search is a GET the form issues on its own while a visitor types, so a page that routes its API traffic through its own server names that route here as well. Unset, the search calls the public location endpoint. */
21
+ /** 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. */
22
22
  locationUrl?: string;
23
23
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
24
24
  specUrl?: string;
@@ -39,4 +39,3 @@ export interface RoxyReferenceCardProps extends ElementAttrs {
39
39
  }
40
40
  export declare const RoxyReferenceCard: React.ForwardRefExoticComponent<RoxyReferenceCardProps & React.RefAttributes<HTMLElement | null>>;
41
41
  export {};
42
- //# sourceMappingURL=reference-card.d.ts.map
@@ -1,2 +1 @@
1
- import*as n from"react";var H="0.53.2",k="roxyapi-ui-loader",I="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",_="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",$="/dist/cdn",c=null;function A(o){return!o||o==="latest"?I:`${_}${o}${$}`}function v(o=H,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((a,d)=>{let u=`${i??A(o)}/roxy-ui.js`,r=document.getElementById(k);if(r){r.dataset.loaded==="true"?a():(r.addEventListener("load",()=>a()),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=k,r.src=u,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",a()}),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var U=n.forwardRef(function({data:i,className:a,style:d,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:R,submitContext:p,locationUrl:m,specUrl:E,lang:g,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:G,hideSections:S,...C},P){let t=n.useRef(null);n.useImperativeHandle(P,()=>t.current,[]);let[s,T]=n.useState(!1),[h,M]=n.useState(null);return n.useEffect(()=>{let e=!0;return v().then(()=>{e&&T(!0)}).catch(b=>{e&&M(b instanceof Error?b:new Error(String(b)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.endpoint=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.submitUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitContext=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.specUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.lang=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&G!==void 0&&(e.hideReadings=G)},[G,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,s]),h?n.createElement("div",{role:"alert",className:a,style:d},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-reference-card",{ref:t,className:a,style:d,...C})});export{U as RoxyReferenceCard};
2
- //# sourceMappingURL=reference-card.js.map
1
+ "use client";import*as n from"react";var H="1.1.1",k="roxyapi-ui-loader",I="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",_="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",$="/dist/cdn",c=null;function A(o){return!o||o==="latest"?I:`${_}${o}${$}`}function v(o=H,a){return typeof document>"u"?Promise.resolve():c||(c=new Promise((i,d)=>{let u=`${a??A(o)}/roxy-ui.js`,r=document.getElementById(k);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=k,r.src=u,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",i()}),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var U=n.forwardRef(function({data:a,className:i,style:d,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:p,submitContext:R,locationUrl:m,specUrl:E,lang:g,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:G,hideSections:S,...C},P){let t=n.useRef(null);n.useImperativeHandle(P,()=>t.current,[]);let[s,T]=n.useState(!1),[h,M]=n.useState(null);return n.useEffect(()=>{let e=!0;return v().then(()=>{e&&T(!0)}).catch(b=>{e&&M(b instanceof Error?b:new Error(String(b)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.endpoint=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.submitContext=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.specUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.lang=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&G!==void 0&&(e.hideReadings=G)},[G,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,s]),h?n.createElement("div",{role:"alert",className:i,style:d},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-reference-card",{ref:t,className:i,style:d,suppressHydrationWarning:!0,...C})});export{U as RoxyReferenceCard};
@@ -6,19 +6,19 @@ export interface RoxyRelocationWheelProps extends ElementAttrs {
6
6
  data?: RelocationChartResponse;
7
7
  className?: string;
8
8
  style?: React.CSSProperties;
9
- /** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. "astrology/natal-chart". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */
9
+ /** 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. */
10
10
  endpoint?: string;
11
- /** HTTP method for the self-fetch request. Defaults to POST. */
11
+ /** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
12
12
  method?: 'GET' | 'POST';
13
13
  /** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
14
14
  publishableKey?: string;
15
15
  /** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */
16
16
  baseUrl?: string;
17
- /** Your own backend route, which holds the secret key. Self-fetch POSTs `{ path, method, body, query }` there instead of calling RoxyAPI directly and renders the JSON your route returns, so no key of any kind reaches the browser. */
17
+ /** 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. */
18
18
  submitUrl?: string;
19
19
  /** 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. */
20
20
  submitContext?: Record<string, unknown>;
21
- /** Where the self-fetch form city search sends its request, absolute or relative to the page. The companion of submitUrl: the city search is a GET the form issues on its own while a visitor types, so a page that routes its API traffic through its own server names that route here as well. Unset, the search calls the public location endpoint. */
21
+ /** 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. */
22
22
  locationUrl?: string;
23
23
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
24
24
  specUrl?: string;
@@ -39,4 +39,3 @@ export interface RoxyRelocationWheelProps extends ElementAttrs {
39
39
  }
40
40
  export declare const RoxyRelocationWheel: React.ForwardRefExoticComponent<RoxyRelocationWheelProps & React.RefAttributes<HTMLElement | null>>;
41
41
  export {};
42
- //# sourceMappingURL=relocation-wheel.d.ts.map
@@ -1,2 +1 @@
1
- import*as n from"react";var _="0.53.2",v="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",u=null;function A(o){return!o||o==="latest"?$:`${M}${o}${O}`}function P(o=_,a){return typeof document>"u"?Promise.resolve():u||(u=new Promise((i,c)=>{let d=`${a??A(o)}/roxy-ui.js`,r=document.getElementById(v);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=v,r.src=d,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",i()}),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),u)}var D=n.forwardRef(function({data:a,className:i,style:c,endpoint:d,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:R,specUrl:g,lang:p,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:h,hideSections:k,...T},C){let t=n.useRef(null);n.useImperativeHandle(C,()=>t.current,[]);let[s,H]=n.useState(!1),[b,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return P().then(()=>{e&&H(!0)}).catch(S=>{e&&I(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.endpoint=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.locationUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.lang=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideReadings=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),b?n.createElement("div",{role:"alert",className:i,style:c},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-relocation-wheel",{ref:t,className:i,style:c,...T})});export{D as RoxyRelocationWheel};
2
- //# sourceMappingURL=relocation-wheel.js.map
1
+ "use client";import*as n from"react";var _="1.1.1",v="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",d=null;function A(o){return!o||o==="latest"?$:`${M}${o}${O}`}function P(o=_,a){return typeof document>"u"?Promise.resolve():d||(d=new Promise((i,c)=>{let u=`${a??A(o)}/roxy-ui.js`,r=document.getElementById(v);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=v,r.src=u,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",i()}),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),d)}var W=n.forwardRef(function({data:a,className:i,style:c,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:R,specUrl:g,lang:p,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:h,hideSections:k,...T},C){let t=n.useRef(null);n.useImperativeHandle(C,()=>t.current,[]);let[s,H]=n.useState(!1),[b,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return P().then(()=>{e&&H(!0)}).catch(S=>{e&&I(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.endpoint=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.locationUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.lang=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideReadings=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),b?n.createElement("div",{role:"alert",className:i,style:c},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-relocation-wheel",{ref:t,className:i,style:c,suppressHydrationWarning:!0,...T})});export{W as RoxyRelocationWheel};
@@ -6,19 +6,19 @@ export interface RoxyShadbalaTableProps extends ElementAttrs {
6
6
  data?: ShadbalaResponse;
7
7
  className?: string;
8
8
  style?: React.CSSProperties;
9
- /** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. "astrology/natal-chart". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */
9
+ /** 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. */
10
10
  endpoint?: string;
11
- /** HTTP method for the self-fetch request. Defaults to POST. */
11
+ /** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
12
12
  method?: 'GET' | 'POST';
13
13
  /** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
14
14
  publishableKey?: string;
15
15
  /** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */
16
16
  baseUrl?: string;
17
- /** Your own backend route, which holds the secret key. Self-fetch POSTs `{ path, method, body, query }` there instead of calling RoxyAPI directly and renders the JSON your route returns, so no key of any kind reaches the browser. */
17
+ /** 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. */
18
18
  submitUrl?: string;
19
19
  /** 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. */
20
20
  submitContext?: Record<string, unknown>;
21
- /** Where the self-fetch form city search sends its request, absolute or relative to the page. The companion of submitUrl: the city search is a GET the form issues on its own while a visitor types, so a page that routes its API traffic through its own server names that route here as well. Unset, the search calls the public location endpoint. */
21
+ /** 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. */
22
22
  locationUrl?: string;
23
23
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
24
24
  specUrl?: string;
@@ -39,4 +39,3 @@ export interface RoxyShadbalaTableProps extends ElementAttrs {
39
39
  }
40
40
  export declare const RoxyShadbalaTable: React.ForwardRefExoticComponent<RoxyShadbalaTableProps & React.RefAttributes<HTMLElement | null>>;
41
41
  export {};
42
- //# sourceMappingURL=shadbala-table.d.ts.map
@@ -1,2 +1 @@
1
- import*as n from"react";var $="0.53.2",T="roxyapi-ui-loader",C="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",c=null;function A(a){return!a||a==="latest"?C:`${M}${a}${O}`}function v(a=$,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,d)=>{let u=`${i??A(a)}/roxy-ui.js`,r=document.getElementById(T);if(r){r.dataset.loaded==="true"?o():(r.addEventListener("load",()=>o()),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=T,r.src=u,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var D=n.forwardRef(function({data:i,className:o,style:d,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:g,specUrl:p,lang:R,submitLabel:w,remember:b,errorMessage:y,attribution:L,hideReadings:x,hideSections:S,...P},H){let t=n.useRef(null);n.useImperativeHandle(H,()=>t.current,[]);let[s,I]=n.useState(!1),[k,_]=n.useState(null);return n.useEffect(()=>{let e=!0;return v().then(()=>{e&&I(!0)}).catch(h=>{e&&_(h instanceof Error?h:new Error(String(h)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.endpoint=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.remember=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.errorMessage=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.attribution=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.hideReadings=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,s]),k?n.createElement("div",{role:"alert",className:o,style:d},`Roxy UI script load failed: ${k.message}`):n.createElement("roxy-shadbala-table",{ref:t,className:o,style:d,...P})});export{D as RoxyShadbalaTable};
2
- //# sourceMappingURL=shadbala-table.js.map
1
+ "use client";import*as n from"react";var $="1.1.1",T="roxyapi-ui-loader",C="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",c=null;function A(a){return!a||a==="latest"?C:`${M}${a}${O}`}function v(a=$,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,d)=>{let u=`${i??A(a)}/roxy-ui.js`,r=document.getElementById(T);if(r){r.dataset.loaded==="true"?o():(r.addEventListener("load",()=>o()),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=T,r.src=u,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var D=n.forwardRef(function({data:i,className:o,style:d,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:g,specUrl:p,lang:R,submitLabel:w,remember:b,errorMessage:y,attribution:L,hideReadings:x,hideSections:S,...P},H){let t=n.useRef(null);n.useImperativeHandle(H,()=>t.current,[]);let[s,I]=n.useState(!1),[k,_]=n.useState(null);return n.useEffect(()=>{let e=!0;return v().then(()=>{e&&I(!0)}).catch(h=>{e&&_(h instanceof Error?h:new Error(String(h)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.endpoint=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.remember=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.errorMessage=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.attribution=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.hideReadings=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,s]),k?n.createElement("div",{role:"alert",className:o,style:d},`Roxy UI script load failed: ${k.message}`):n.createElement("roxy-shadbala-table",{ref:t,className:o,style:d,suppressHydrationWarning:!0,...P})});export{D as RoxyShadbalaTable};
@@ -13,19 +13,19 @@ export interface RoxySynastryChartProps extends ElementAttrs {
13
13
  };
14
14
  className?: string;
15
15
  style?: React.CSSProperties;
16
- /** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. "astrology/natal-chart". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */
16
+ /** 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. */
17
17
  endpoint?: string;
18
- /** HTTP method for the self-fetch request. Defaults to POST. */
18
+ /** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
19
19
  method?: 'GET' | 'POST';
20
20
  /** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
21
21
  publishableKey?: string;
22
22
  /** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */
23
23
  baseUrl?: string;
24
- /** Your own backend route, which holds the secret key. Self-fetch POSTs `{ path, method, body, query }` there instead of calling RoxyAPI directly and renders the JSON your route returns, so no key of any kind reaches the browser. */
24
+ /** 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. */
25
25
  submitUrl?: string;
26
26
  /** 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. */
27
27
  submitContext?: Record<string, unknown>;
28
- /** Where the self-fetch form city search sends its request, absolute or relative to the page. The companion of submitUrl: the city search is a GET the form issues on its own while a visitor types, so a page that routes its API traffic through its own server names that route here as well. Unset, the search calls the public location endpoint. */
28
+ /** 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. */
29
29
  locationUrl?: string;
30
30
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
31
31
  specUrl?: string;
@@ -46,4 +46,3 @@ export interface RoxySynastryChartProps extends ElementAttrs {
46
46
  }
47
47
  export declare const RoxySynastryChart: React.ForwardRefExoticComponent<RoxySynastryChartProps & React.RefAttributes<HTMLElement | null>>;
48
48
  export {};
49
- //# sourceMappingURL=synastry-chart.d.ts.map
@@ -1,2 +1 @@
1
- import*as n from"react";var _="0.53.2",b="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",c=null;function A(a){return!a||a==="latest"?$:`${M}${a}${O}`}function v(a=_,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,u)=>{let d=`${i??A(a)}/roxy-ui.js`,r=document.getElementById(b);if(r){r.dataset.loaded==="true"?o():(r.addEventListener("load",()=>o()),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=b,r.src=d,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var B=n.forwardRef(function({data:i,className:o,style:u,endpoint:d,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:p,locationUrl:m,specUrl:g,lang:R,submitLabel:y,remember:w,errorMessage:L,attribution:x,hideReadings:S,hideSections:h,...P},T){let t=n.useRef(null);n.useImperativeHandle(T,()=>t.current,[]);let[s,H]=n.useState(!1),[C,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return v().then(()=>{e&&H(!0)}).catch(k=>{e&&I(k instanceof Error?k:new Error(String(k)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.endpoint=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitContext=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.submitLabel=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.remember=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideReadings=S)},[S,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideSections=h)},[h,s]),C?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${C.message}`):n.createElement("roxy-synastry-chart",{ref:t,className:o,style:u,...P})});export{B as RoxySynastryChart};
2
- //# sourceMappingURL=synastry-chart.js.map
1
+ "use client";import*as n from"react";var _="1.1.1",b="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",c=null;function A(a){return!a||a==="latest"?$:`${M}${a}${O}`}function v(a=_,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,u)=>{let d=`${i??A(a)}/roxy-ui.js`,r=document.getElementById(b);if(r){r.dataset.loaded==="true"?o():(r.addEventListener("load",()=>o()),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=b,r.src=d,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var B=n.forwardRef(function({data:i,className:o,style:u,endpoint:d,method:r,publishableKey:l,baseUrl:f,submitUrl:p,submitContext:E,locationUrl:m,specUrl:g,lang:R,submitLabel:y,remember:w,errorMessage:L,attribution:x,hideReadings:S,hideSections:h,...P},T){let t=n.useRef(null);n.useImperativeHandle(T,()=>t.current,[]);let[s,H]=n.useState(!1),[C,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return v().then(()=>{e&&H(!0)}).catch(k=>{e&&I(k instanceof Error?k:new Error(String(k)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.endpoint=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitContext=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.submitLabel=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.remember=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideReadings=S)},[S,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideSections=h)},[h,s]),C?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${C.message}`):n.createElement("roxy-synastry-chart",{ref:t,className:o,style:u,suppressHydrationWarning:!0,...P})});export{B as RoxySynastryChart};
@@ -6,19 +6,19 @@ export interface RoxyTarotCardProps extends ElementAttrs {
6
6
  data?: GetCardResponse | GetDailyCardResponse;
7
7
  className?: string;
8
8
  style?: React.CSSProperties;
9
- /** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. "astrology/natal-chart". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */
9
+ /** 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. */
10
10
  endpoint?: string;
11
- /** HTTP method for the self-fetch request. Defaults to POST. */
11
+ /** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
12
12
  method?: 'GET' | 'POST';
13
13
  /** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
14
14
  publishableKey?: string;
15
15
  /** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */
16
16
  baseUrl?: string;
17
- /** Your own backend route, which holds the secret key. Self-fetch POSTs `{ path, method, body, query }` there instead of calling RoxyAPI directly and renders the JSON your route returns, so no key of any kind reaches the browser. */
17
+ /** 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. */
18
18
  submitUrl?: string;
19
19
  /** 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. */
20
20
  submitContext?: Record<string, unknown>;
21
- /** Where the self-fetch form city search sends its request, absolute or relative to the page. The companion of submitUrl: the city search is a GET the form issues on its own while a visitor types, so a page that routes its API traffic through its own server names that route here as well. Unset, the search calls the public location endpoint. */
21
+ /** 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. */
22
22
  locationUrl?: string;
23
23
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
24
24
  specUrl?: string;
@@ -39,4 +39,3 @@ export interface RoxyTarotCardProps extends ElementAttrs {
39
39
  }
40
40
  export declare const RoxyTarotCard: React.ForwardRefExoticComponent<RoxyTarotCardProps & React.RefAttributes<HTMLElement | null>>;
41
41
  export {};
42
- //# sourceMappingURL=tarot-card.d.ts.map
@@ -1,2 +1 @@
1
- import*as n from"react";var _="0.53.2",b="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",c=null;function A(o){return!o||o==="latest"?$:`${M}${o}${O}`}function h(o=_,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((a,d)=>{let u=`${i??A(o)}/roxy-ui.js`,r=document.getElementById(b);if(r){r.dataset.loaded==="true"?a():(r.addEventListener("load",()=>a()),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=b,r.src=u,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",a()}),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var D=n.forwardRef(function({data:i,className:a,style:d,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:p,specUrl:g,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:k,hideSections:S,...v},P){let t=n.useRef(null);n.useImperativeHandle(P,()=>t.current,[]);let[s,H]=n.useState(!1),[C,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return h().then(()=>{e&&H(!0)}).catch(T=>{e&&I(T instanceof Error?T:new Error(String(T)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.endpoint=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.locationUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideReadings=k)},[k,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,s]),C?n.createElement("div",{role:"alert",className:a,style:d},`Roxy UI script load failed: ${C.message}`):n.createElement("roxy-tarot-card",{ref:t,className:a,style:d,...v})});export{D as RoxyTarotCard};
2
- //# sourceMappingURL=tarot-card.js.map
1
+ "use client";import*as n from"react";var _="1.1.1",b="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",c=null;function A(o){return!o||o==="latest"?$:`${M}${o}${O}`}function h(o=_,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((a,d)=>{let u=`${i??A(o)}/roxy-ui.js`,r=document.getElementById(b);if(r){r.dataset.loaded==="true"?a():(r.addEventListener("load",()=>a()),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=b,r.src=u,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",a()}),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var D=n.forwardRef(function({data:i,className:a,style:d,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:p,specUrl:g,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:k,hideSections:S,...v},P){let t=n.useRef(null);n.useImperativeHandle(P,()=>t.current,[]);let[s,H]=n.useState(!1),[C,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return h().then(()=>{e&&H(!0)}).catch(T=>{e&&I(T instanceof Error?T:new Error(String(T)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.endpoint=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.locationUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideReadings=k)},[k,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,s]),C?n.createElement("div",{role:"alert",className:a,style:d},`Roxy UI script load failed: ${C.message}`):n.createElement("roxy-tarot-card",{ref:t,className:a,style:d,suppressHydrationWarning:!0,...v})});export{D as RoxyTarotCard};
@@ -8,19 +8,19 @@ export interface RoxyTarotCatalogProps extends ElementAttrs {
8
8
  style?: React.CSSProperties;
9
9
  /** Override the auto-derived gallery heading. Empty by default, in which case the heading is "Tarot deck". */
10
10
  heading?: string;
11
- /** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. "astrology/natal-chart". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */
11
+ /** 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. */
12
12
  endpoint?: string;
13
- /** HTTP method for the self-fetch request. Defaults to POST. */
13
+ /** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
14
14
  method?: 'GET' | 'POST';
15
15
  /** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
16
16
  publishableKey?: string;
17
17
  /** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */
18
18
  baseUrl?: string;
19
- /** Your own backend route, which holds the secret key. Self-fetch POSTs `{ path, method, body, query }` there instead of calling RoxyAPI directly and renders the JSON your route returns, so no key of any kind reaches the browser. */
19
+ /** 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. */
20
20
  submitUrl?: string;
21
21
  /** 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. */
22
22
  submitContext?: Record<string, unknown>;
23
- /** Where the self-fetch form city search sends its request, absolute or relative to the page. The companion of submitUrl: the city search is a GET the form issues on its own while a visitor types, so a page that routes its API traffic through its own server names that route here as well. Unset, the search calls the public location endpoint. */
23
+ /** 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. */
24
24
  locationUrl?: string;
25
25
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
26
26
  specUrl?: string;
@@ -46,4 +46,3 @@ export interface RoxyTarotCatalogProps extends ElementAttrs {
46
46
  }
47
47
  export declare const RoxyTarotCatalog: React.ForwardRefExoticComponent<RoxyTarotCatalogProps & React.RefAttributes<HTMLElement | null>>;
48
48
  export {};
49
- //# sourceMappingURL=tarot-catalog.d.ts.map