@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.
- package/AGENTS.md +41 -43
- package/README.md +45 -77
- package/dist/components/almanac-day.d.ts +4 -5
- package/dist/components/almanac-day.js +1 -2
- package/dist/components/angel-number-card.d.ts +4 -5
- package/dist/components/angel-number-card.js +1 -2
- package/dist/components/angel-number-lookup.d.ts +4 -5
- package/dist/components/angel-number-lookup.js +1 -2
- package/dist/components/arudha-padas.d.ts +4 -5
- package/dist/components/arudha-padas.js +1 -2
- package/dist/components/ashtakavarga-grid.d.ts +4 -5
- package/dist/components/ashtakavarga-grid.js +1 -2
- package/dist/components/aspects-table.d.ts +4 -5
- package/dist/components/aspects-table.js +1 -2
- package/dist/components/astrocartography-map.d.ts +4 -5
- package/dist/components/astrocartography-map.js +1 -2
- package/dist/components/bazi-chart.d.ts +4 -5
- package/dist/components/bazi-chart.js +1 -2
- package/dist/components/bhav-chalit-table.d.ts +4 -5
- package/dist/components/bhav-chalit-table.js +1 -2
- package/dist/components/bhava-bala-table.d.ts +4 -5
- package/dist/components/bhava-bala-table.js +1 -2
- package/dist/components/biorhythm-chart.d.ts +4 -5
- package/dist/components/biorhythm-chart.js +1 -2
- package/dist/components/bodygraph.d.ts +4 -5
- package/dist/components/bodygraph.js +1 -2
- package/dist/components/chara-karakas.d.ts +4 -5
- package/dist/components/chara-karakas.js +1 -2
- package/dist/components/choghadiya-grid.d.ts +4 -5
- package/dist/components/choghadiya-grid.js +1 -2
- package/dist/components/compatibility-card.d.ts +4 -5
- package/dist/components/compatibility-card.js +1 -2
- package/dist/components/compound-number.d.ts +4 -5
- package/dist/components/compound-number.js +1 -2
- package/dist/components/crystal-card.d.ts +4 -5
- package/dist/components/crystal-card.js +1 -2
- package/dist/components/crystal-grid.d.ts +4 -5
- package/dist/components/crystal-grid.js +1 -2
- package/dist/components/dasha-timeline.d.ts +4 -5
- package/dist/components/dasha-timeline.js +1 -2
- package/dist/components/data.d.ts +4 -5
- package/dist/components/data.js +1 -2
- package/dist/components/divisional-chart.d.ts +4 -5
- package/dist/components/divisional-chart.js +1 -2
- package/dist/components/dosha-card.d.ts +4 -5
- package/dist/components/dosha-card.js +1 -2
- package/dist/components/dosha-constitution.d.ts +4 -5
- package/dist/components/dosha-constitution.js +1 -2
- package/dist/components/dream-card.d.ts +4 -5
- package/dist/components/dream-card.js +1 -2
- package/dist/components/dream-search.d.ts +4 -5
- package/dist/components/dream-search.js +1 -2
- package/dist/components/endpoint-form.d.ts +0 -1
- package/dist/components/endpoint-form.js +1 -2
- package/dist/components/ephemeris-table.d.ts +4 -5
- package/dist/components/ephemeris-table.js +1 -2
- package/dist/components/fixed-stars.d.ts +4 -5
- package/dist/components/fixed-stars.js +1 -2
- package/dist/components/flying-star-chart.d.ts +4 -5
- package/dist/components/flying-star-chart.js +1 -2
- package/dist/components/forecast-digest.d.ts +4 -5
- package/dist/components/forecast-digest.js +1 -2
- package/dist/components/forecast-timeline.d.ts +4 -5
- package/dist/components/forecast-timeline.js +1 -2
- package/dist/components/gematria.d.ts +4 -5
- package/dist/components/gematria.js +1 -2
- package/dist/components/gochara-table.d.ts +4 -5
- package/dist/components/gochara-table.js +1 -2
- package/dist/components/guna-milan.d.ts +4 -5
- package/dist/components/guna-milan.js +1 -2
- package/dist/components/hd-connection.d.ts +4 -5
- package/dist/components/hd-connection.js +1 -2
- package/dist/components/hd-penta.d.ts +4 -5
- package/dist/components/hd-penta.js +1 -2
- package/dist/components/hd-type-card.d.ts +4 -5
- package/dist/components/hd-type-card.js +1 -2
- package/dist/components/hd-variables.d.ts +4 -5
- package/dist/components/hd-variables.js +1 -2
- package/dist/components/heliacal-table.d.ts +4 -5
- package/dist/components/heliacal-table.js +1 -2
- package/dist/components/hexagram.d.ts +4 -5
- package/dist/components/hexagram.js +1 -2
- package/dist/components/hora-table.d.ts +4 -5
- package/dist/components/hora-table.js +1 -2
- package/dist/components/horoscope-card.d.ts +4 -5
- package/dist/components/horoscope-card.js +1 -2
- package/dist/components/kp-chart.d.ts +4 -5
- package/dist/components/kp-chart.js +1 -2
- package/dist/components/kp-finance-card.d.ts +4 -5
- package/dist/components/kp-finance-card.js +1 -2
- package/dist/components/kp-planets-table.d.ts +4 -5
- package/dist/components/kp-planets-table.js +1 -2
- package/dist/components/kp-ruling-planets.d.ts +4 -5
- package/dist/components/kp-ruling-planets.js +1 -2
- package/dist/components/kua-card.d.ts +4 -5
- package/dist/components/kua-card.js +1 -2
- package/dist/components/local-space-compass.d.ts +4 -5
- package/dist/components/local-space-compass.js +1 -2
- package/dist/components/location-search.d.ts +6 -3
- package/dist/components/location-search.js +1 -2
- package/dist/components/luck-pillars.d.ts +4 -5
- package/dist/components/luck-pillars.js +1 -2
- package/dist/components/mayan-day-sign.d.ts +4 -5
- package/dist/components/mayan-day-sign.js +1 -2
- package/dist/components/moon-phase.d.ts +4 -5
- package/dist/components/moon-phase.js +1 -2
- package/dist/components/nakshatra-card.d.ts +4 -5
- package/dist/components/nakshatra-card.js +1 -2
- package/dist/components/natal-chart.d.ts +4 -5
- package/dist/components/natal-chart.js +1 -2
- package/dist/components/numerology-card.d.ts +4 -5
- package/dist/components/numerology-card.js +1 -2
- package/dist/components/panchang-table.d.ts +4 -5
- package/dist/components/panchang-table.js +1 -2
- package/dist/components/positions-table.d.ts +4 -5
- package/dist/components/positions-table.js +1 -2
- package/dist/components/profection-card.d.ts +4 -5
- package/dist/components/profection-card.js +1 -2
- package/dist/components/reference-card.d.ts +4 -5
- package/dist/components/reference-card.js +1 -2
- package/dist/components/relocation-wheel.d.ts +4 -5
- package/dist/components/relocation-wheel.js +1 -2
- package/dist/components/shadbala-table.d.ts +4 -5
- package/dist/components/shadbala-table.js +1 -2
- package/dist/components/synastry-chart.d.ts +4 -5
- package/dist/components/synastry-chart.js +1 -2
- package/dist/components/tarot-card.d.ts +4 -5
- package/dist/components/tarot-card.js +1 -2
- package/dist/components/tarot-catalog.d.ts +4 -5
- package/dist/components/tarot-catalog.js +1 -2
- package/dist/components/tarot-spread.d.ts +4 -5
- package/dist/components/tarot-spread.js +1 -2
- package/dist/components/transit-wheel.d.ts +4 -5
- package/dist/components/transit-wheel.js +1 -2
- package/dist/components/transits-table.d.ts +4 -5
- package/dist/components/transits-table.js +1 -2
- package/dist/components/upagraha-table.d.ts +4 -5
- package/dist/components/upagraha-table.js +1 -2
- package/dist/components/vastu-mandala.d.ts +4 -5
- package/dist/components/vastu-mandala.js +1 -2
- package/dist/components/vedic-aspects.d.ts +4 -5
- package/dist/components/vedic-aspects.js +1 -2
- package/dist/components/vedic-daily.d.ts +4 -5
- package/dist/components/vedic-daily.js +1 -2
- package/dist/components/vedic-kundli.d.ts +4 -5
- package/dist/components/vedic-kundli.js +1 -2
- package/dist/components/vedic-planets-table.d.ts +4 -5
- package/dist/components/vedic-planets-table.js +1 -2
- package/dist/components/western-planets-table.d.ts +4 -5
- package/dist/components/western-planets-table.js +1 -2
- package/dist/components/yoga-list.d.ts +4 -5
- package/dist/components/yoga-list.js +1 -2
- package/dist/components/zodiac-card.d.ts +4 -5
- package/dist/components/zodiac-card.js +1 -2
- package/dist/generated/tool-components.d.ts +0 -1
- package/dist/index.cjs +1 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -2
- package/dist/jsx.cjs +0 -1
- package/dist/jsx.d.ts +10 -7
- package/dist/jsx.js +0 -1
- package/dist/load-ui.d.ts +1 -2
- package/dist/load-ui.js +1 -2
- package/dist/tool-component.cjs +0 -1
- package/dist/tool-component.d.ts +0 -1
- package/dist/tool-component.js +0 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/types.gen.d.ts +5 -6
- package/dist/utils/compact.d.ts +0 -1
- package/dist/utils/tool-component.d.ts +0 -1
- package/package.json +1 -1
- package/dist/components/almanac-day.d.ts.map +0 -1
- package/dist/components/almanac-day.js.map +0 -7
- package/dist/components/angel-number-card.d.ts.map +0 -1
- package/dist/components/angel-number-card.js.map +0 -7
- package/dist/components/angel-number-lookup.d.ts.map +0 -1
- package/dist/components/angel-number-lookup.js.map +0 -7
- package/dist/components/arudha-padas.d.ts.map +0 -1
- package/dist/components/arudha-padas.js.map +0 -7
- package/dist/components/ashtakavarga-grid.d.ts.map +0 -1
- package/dist/components/ashtakavarga-grid.js.map +0 -7
- package/dist/components/aspects-table.d.ts.map +0 -1
- package/dist/components/aspects-table.js.map +0 -7
- package/dist/components/astrocartography-map.d.ts.map +0 -1
- package/dist/components/astrocartography-map.js.map +0 -7
- package/dist/components/bazi-chart.d.ts.map +0 -1
- package/dist/components/bazi-chart.js.map +0 -7
- package/dist/components/bhav-chalit-table.d.ts.map +0 -1
- package/dist/components/bhav-chalit-table.js.map +0 -7
- package/dist/components/bhava-bala-table.d.ts.map +0 -1
- package/dist/components/bhava-bala-table.js.map +0 -7
- package/dist/components/biorhythm-chart.d.ts.map +0 -1
- package/dist/components/biorhythm-chart.js.map +0 -7
- package/dist/components/bodygraph.d.ts.map +0 -1
- package/dist/components/bodygraph.js.map +0 -7
- package/dist/components/chara-karakas.d.ts.map +0 -1
- package/dist/components/chara-karakas.js.map +0 -7
- package/dist/components/choghadiya-grid.d.ts.map +0 -1
- package/dist/components/choghadiya-grid.js.map +0 -7
- package/dist/components/compatibility-card.d.ts.map +0 -1
- package/dist/components/compatibility-card.js.map +0 -7
- package/dist/components/compound-number.d.ts.map +0 -1
- package/dist/components/compound-number.js.map +0 -7
- package/dist/components/crystal-card.d.ts.map +0 -1
- package/dist/components/crystal-card.js.map +0 -7
- package/dist/components/crystal-grid.d.ts.map +0 -1
- package/dist/components/crystal-grid.js.map +0 -7
- package/dist/components/dasha-timeline.d.ts.map +0 -1
- package/dist/components/dasha-timeline.js.map +0 -7
- package/dist/components/data.d.ts.map +0 -1
- package/dist/components/data.js.map +0 -7
- package/dist/components/divisional-chart.d.ts.map +0 -1
- package/dist/components/divisional-chart.js.map +0 -7
- package/dist/components/dosha-card.d.ts.map +0 -1
- package/dist/components/dosha-card.js.map +0 -7
- package/dist/components/dosha-constitution.d.ts.map +0 -1
- package/dist/components/dosha-constitution.js.map +0 -7
- package/dist/components/dream-card.d.ts.map +0 -1
- package/dist/components/dream-card.js.map +0 -7
- package/dist/components/dream-search.d.ts.map +0 -1
- package/dist/components/dream-search.js.map +0 -7
- package/dist/components/endpoint-form.d.ts.map +0 -1
- package/dist/components/endpoint-form.js.map +0 -7
- package/dist/components/ephemeris-table.d.ts.map +0 -1
- package/dist/components/ephemeris-table.js.map +0 -7
- package/dist/components/fixed-stars.d.ts.map +0 -1
- package/dist/components/fixed-stars.js.map +0 -7
- package/dist/components/flying-star-chart.d.ts.map +0 -1
- package/dist/components/flying-star-chart.js.map +0 -7
- package/dist/components/forecast-digest.d.ts.map +0 -1
- package/dist/components/forecast-digest.js.map +0 -7
- package/dist/components/forecast-timeline.d.ts.map +0 -1
- package/dist/components/forecast-timeline.js.map +0 -7
- package/dist/components/gematria.d.ts.map +0 -1
- package/dist/components/gematria.js.map +0 -7
- package/dist/components/gochara-table.d.ts.map +0 -1
- package/dist/components/gochara-table.js.map +0 -7
- package/dist/components/guna-milan.d.ts.map +0 -1
- package/dist/components/guna-milan.js.map +0 -7
- package/dist/components/hd-connection.d.ts.map +0 -1
- package/dist/components/hd-connection.js.map +0 -7
- package/dist/components/hd-penta.d.ts.map +0 -1
- package/dist/components/hd-penta.js.map +0 -7
- package/dist/components/hd-type-card.d.ts.map +0 -1
- package/dist/components/hd-type-card.js.map +0 -7
- package/dist/components/hd-variables.d.ts.map +0 -1
- package/dist/components/hd-variables.js.map +0 -7
- package/dist/components/heliacal-table.d.ts.map +0 -1
- package/dist/components/heliacal-table.js.map +0 -7
- package/dist/components/hexagram.d.ts.map +0 -1
- package/dist/components/hexagram.js.map +0 -7
- package/dist/components/hora-table.d.ts.map +0 -1
- package/dist/components/hora-table.js.map +0 -7
- package/dist/components/horoscope-card.d.ts.map +0 -1
- package/dist/components/horoscope-card.js.map +0 -7
- package/dist/components/kp-chart.d.ts.map +0 -1
- package/dist/components/kp-chart.js.map +0 -7
- package/dist/components/kp-finance-card.d.ts.map +0 -1
- package/dist/components/kp-finance-card.js.map +0 -7
- package/dist/components/kp-planets-table.d.ts.map +0 -1
- package/dist/components/kp-planets-table.js.map +0 -7
- package/dist/components/kp-ruling-planets.d.ts.map +0 -1
- package/dist/components/kp-ruling-planets.js.map +0 -7
- package/dist/components/kua-card.d.ts.map +0 -1
- package/dist/components/kua-card.js.map +0 -7
- package/dist/components/local-space-compass.d.ts.map +0 -1
- package/dist/components/local-space-compass.js.map +0 -7
- package/dist/components/location-search.d.ts.map +0 -1
- package/dist/components/location-search.js.map +0 -7
- package/dist/components/luck-pillars.d.ts.map +0 -1
- package/dist/components/luck-pillars.js.map +0 -7
- package/dist/components/mayan-day-sign.d.ts.map +0 -1
- package/dist/components/mayan-day-sign.js.map +0 -7
- package/dist/components/moon-phase.d.ts.map +0 -1
- package/dist/components/moon-phase.js.map +0 -7
- package/dist/components/nakshatra-card.d.ts.map +0 -1
- package/dist/components/nakshatra-card.js.map +0 -7
- package/dist/components/natal-chart.d.ts.map +0 -1
- package/dist/components/natal-chart.js.map +0 -7
- package/dist/components/numerology-card.d.ts.map +0 -1
- package/dist/components/numerology-card.js.map +0 -7
- package/dist/components/panchang-table.d.ts.map +0 -1
- package/dist/components/panchang-table.js.map +0 -7
- package/dist/components/positions-table.d.ts.map +0 -1
- package/dist/components/positions-table.js.map +0 -7
- package/dist/components/profection-card.d.ts.map +0 -1
- package/dist/components/profection-card.js.map +0 -7
- package/dist/components/reference-card.d.ts.map +0 -1
- package/dist/components/reference-card.js.map +0 -7
- package/dist/components/relocation-wheel.d.ts.map +0 -1
- package/dist/components/relocation-wheel.js.map +0 -7
- package/dist/components/shadbala-table.d.ts.map +0 -1
- package/dist/components/shadbala-table.js.map +0 -7
- package/dist/components/synastry-chart.d.ts.map +0 -1
- package/dist/components/synastry-chart.js.map +0 -7
- package/dist/components/tarot-card.d.ts.map +0 -1
- package/dist/components/tarot-card.js.map +0 -7
- package/dist/components/tarot-catalog.d.ts.map +0 -1
- package/dist/components/tarot-catalog.js.map +0 -7
- package/dist/components/tarot-spread.d.ts.map +0 -1
- package/dist/components/tarot-spread.js.map +0 -7
- package/dist/components/transit-wheel.d.ts.map +0 -1
- package/dist/components/transit-wheel.js.map +0 -7
- package/dist/components/transits-table.d.ts.map +0 -1
- package/dist/components/transits-table.js.map +0 -7
- package/dist/components/upagraha-table.d.ts.map +0 -1
- package/dist/components/upagraha-table.js.map +0 -7
- package/dist/components/vastu-mandala.d.ts.map +0 -1
- package/dist/components/vastu-mandala.js.map +0 -7
- package/dist/components/vedic-aspects.d.ts.map +0 -1
- package/dist/components/vedic-aspects.js.map +0 -7
- package/dist/components/vedic-daily.d.ts.map +0 -1
- package/dist/components/vedic-daily.js.map +0 -7
- package/dist/components/vedic-kundli.d.ts.map +0 -1
- package/dist/components/vedic-kundli.js.map +0 -7
- package/dist/components/vedic-planets-table.d.ts.map +0 -1
- package/dist/components/vedic-planets-table.js.map +0 -7
- package/dist/components/western-planets-table.d.ts.map +0 -1
- package/dist/components/western-planets-table.js.map +0 -7
- package/dist/components/yoga-list.d.ts.map +0 -1
- package/dist/components/yoga-list.js.map +0 -7
- package/dist/components/zodiac-card.d.ts.map +0 -1
- package/dist/components/zodiac-card.js.map +0 -7
- package/dist/generated/tool-components.d.ts.map +0 -1
- package/dist/index.cjs.map +0 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -7
- package/dist/jsx.cjs.map +0 -7
- package/dist/jsx.d.ts.map +0 -1
- package/dist/jsx.js.map +0 -7
- package/dist/load-ui.d.ts.map +0 -1
- package/dist/load-ui.js.map +0 -7
- package/dist/tool-component.cjs.map +0 -7
- package/dist/tool-component.d.ts.map +0 -1
- package/dist/tool-component.js.map +0 -7
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/types.gen.d.ts.map +0 -1
- package/dist/utils/compact.d.ts.map +0 -1
- package/dist/utils/tool-component.d.ts.map +0 -1
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var A="
|
|
2
|
-
//# sourceMappingURL=tarot-catalog.js.map
|
|
1
|
+
"use client";import*as n from"react";var A="1.1.1",P="roxyapi-ui-loader",U="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",B="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",D="/dist/cdn",l=null;function N(o){return!o||o==="latest"?U:`${B}${o}${D}`}function H(o=A,d){return typeof document>"u"?Promise.resolve():l||(l=new Promise((i,u)=>{let c=`${d??N(o)}/roxy-ui.js`,s=document.getElementById(P);if(s){s.dataset.loaded==="true"?i():(s.addEventListener("load",()=>i()),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=P,s.src=c,s.async=!0,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",i()}),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),l)}var F=n.forwardRef(function({data:d,className:i,style:u,heading:c,endpoint:s,method:f,publishableKey:E,baseUrl:g,submitUrl:m,submitContext:p,locationUrl:R,specUrl:y,lang:w,submitLabel:L,remember:x,errorMessage:v,attribution:k,hideReadings:S,hideSections:T,onRoxySymbolSelect:b,...I},_){let t=n.useRef(null);n.useImperativeHandle(_,()=>t.current,[]);let[r,$]=n.useState(!1),[h,M]=n.useState(null);return n.useEffect(()=>{let e=!0;return H().then(()=>{e&&$(!0)}).catch(a=>{e&&M(a instanceof Error?a:new Error(String(a)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.data=d)},[d,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&&f!==void 0&&(e.method=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.publishableKey=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.baseUrl=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitUrl=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitContext=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.locationUrl=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.specUrl=y)},[y,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&&x!==void 0&&(e.remember=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.errorMessage=v)},[v,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.attribution=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideReadings=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&T!==void 0&&(e.hideSections=T)},[T,r]),n.useEffect(()=>{let e=t.current,a=b;if(!e||!a)return;let C=O=>a(O);return e.addEventListener("roxy-symbol-select",C),()=>e.removeEventListener("roxy-symbol-select",C)},[b,r]),h?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-tarot-catalog",{ref:t,className:i,style:u,suppressHydrationWarning:!0,...I})});export{F as RoxyTarotCatalog};
|
|
@@ -8,19 +8,19 @@ export interface RoxyTarotSpreadProps extends ElementAttrs {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
/** Which spread layout the response is for. Positions the cards and selects the reading template. */
|
|
10
10
|
spread?: 'three-card' | 'celtic-cross' | 'love' | 'career' | 'custom' | 'yes-no' | 'draw';
|
|
11
|
-
/** Endpoint path for built-in self-fetch
|
|
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.
|
|
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
|
|
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 RoxyTarotSpreadProps extends ElementAttrs {
|
|
|
41
41
|
}
|
|
42
42
|
export declare const RoxyTarotSpread: React.ForwardRefExoticComponent<RoxyTarotSpreadProps & React.RefAttributes<HTMLElement | null>>;
|
|
43
43
|
export {};
|
|
44
|
-
//# sourceMappingURL=tarot-spread.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var $="
|
|
2
|
-
//# sourceMappingURL=tarot-spread.js.map
|
|
1
|
+
"use client";import*as n from"react";var $="1.1.1",v="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 U(a){return!a||a==="latest"?M:`${O}${a}${A}`}function b(a=$,i){return typeof document>"u"?Promise.resolve():u||(u=new Promise((o,d)=>{let c=`${i??U(a)}/roxy-ui.js`,s=document.getElementById(v);if(s){s.dataset.loaded==="true"?o():(s.addEventListener("load",()=>o()),s.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=v,s.src=c,s.async=!0,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",o()}),s.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),u)}var N=n.forwardRef(function({data:i,className:o,style:d,spread:c,endpoint:s,method:l,publishableKey:f,baseUrl:p,submitUrl:R,submitContext:E,locationUrl:m,specUrl:g,lang:C,submitLabel:w,remember:y,errorMessage:S,attribution:L,hideReadings:x,hideSections:k,...P},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 b().then(()=>{e&&I(!0)}).catch(T=>{e&&_(T instanceof Error?T:new Error(String(T)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,r]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.spread=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&&p!==void 0&&(e.baseUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.submitUrl=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitContext=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&C!==void 0&&(e.lang=C)},[C,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.errorMessage=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.attribution=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.hideReadings=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,r]),h?n.createElement("div",{role:"alert",className:o,style:d},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-tarot-spread",{ref:t,className:o,style:d,suppressHydrationWarning:!0,...P})});export{N as RoxyTarotSpread};
|
|
@@ -15,19 +15,19 @@ export interface RoxyTransitWheelProps extends ElementAttrs {
|
|
|
15
15
|
number: number;
|
|
16
16
|
longitude: number;
|
|
17
17
|
}> | number[];
|
|
18
|
-
/** Endpoint path for built-in self-fetch
|
|
18
|
+
/** 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. */
|
|
19
19
|
endpoint?: string;
|
|
20
|
-
/** HTTP method for the self-fetch request. Defaults to POST. */
|
|
20
|
+
/** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
|
|
21
21
|
method?: 'GET' | 'POST';
|
|
22
22
|
/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
|
|
23
23
|
publishableKey?: string;
|
|
24
24
|
/** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */
|
|
25
25
|
baseUrl?: string;
|
|
26
|
-
/** Your own backend route, which holds the secret key.
|
|
26
|
+
/** 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. */
|
|
27
27
|
submitUrl?: string;
|
|
28
28
|
/** 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. */
|
|
29
29
|
submitContext?: Record<string, unknown>;
|
|
30
|
-
/** Where the self-fetch form city search sends its
|
|
30
|
+
/** 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. */
|
|
31
31
|
locationUrl?: string;
|
|
32
32
|
/** Override the OpenAPI spec URL the self-fetch form introspects. */
|
|
33
33
|
specUrl?: string;
|
|
@@ -48,4 +48,3 @@ export interface RoxyTransitWheelProps extends ElementAttrs {
|
|
|
48
48
|
}
|
|
49
49
|
export declare const RoxyTransitWheel: React.ForwardRefExoticComponent<RoxyTransitWheelProps & React.RefAttributes<HTMLElement | null>>;
|
|
50
50
|
export {};
|
|
51
|
-
//# sourceMappingURL=transit-wheel.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var M="
|
|
2
|
-
//# sourceMappingURL=transit-wheel.js.map
|
|
1
|
+
"use client";import*as n from"react";var M="1.1.1",A="roxyapi-ui-loader",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",U="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",B="/dist/cdn",d=null;function W(i){return!i||i==="latest"?O:`${U}${i}${B}`}function C(i=M,o){return typeof document>"u"?Promise.resolve():d||(d=new Promise((a,u)=>{let c=`${o??W(i)}/roxy-ui.js`,s=document.getElementById(A);if(s){s.dataset.loaded==="true"?a():(s.addEventListener("load",()=>a()),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=A,s.src=c,s.async=!0,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",a()}),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),d)}var X=n.forwardRef(function({data:o,className:a,style:u,heading:c,ascendant:s,houses:l,endpoint:f,method:m,publishableKey:E,baseUrl:g,submitUrl:p,submitContext:R,locationUrl:w,specUrl:y,lang:L,submitLabel:b,remember:x,errorMessage:h,attribution:k,hideReadings:T,hideSections:S,...H},I){let t=n.useRef(null);n.useImperativeHandle(I,()=>t.current,[]);let[r,_]=n.useState(!1),[P,$]=n.useState(null);return n.useEffect(()=>{let e=!0;return C().then(()=>{e&&_(!0)}).catch(v=>{e&&$(v instanceof Error?v:new Error(String(v)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&o!==void 0&&(e.data=o)},[o,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.ascendant=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.houses=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.endpoint=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.method=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.publishableKey=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.baseUrl=g)},[g,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&&w!==void 0&&(e.locationUrl=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.specUrl=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.lang=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.submitLabel=b)},[b,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.remember=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.errorMessage=h)},[h,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.attribution=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&T!==void 0&&(e.hideReadings=T)},[T,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,r]),P?n.createElement("div",{role:"alert",className:a,style:u},`Roxy UI script load failed: ${P.message}`):n.createElement("roxy-transit-wheel",{ref:t,className:a,style:u,suppressHydrationWarning:!0,...H})});export{X as RoxyTransitWheel};
|
|
@@ -6,19 +6,19 @@ export interface RoxyTransitsTableProps extends ElementAttrs {
|
|
|
6
6
|
data?: TransitsResponse;
|
|
7
7
|
className?: string;
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
|
-
/** Endpoint path for built-in self-fetch
|
|
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.
|
|
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
|
|
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 RoxyTransitsTableProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyTransitsTable: React.ForwardRefExoticComponent<RoxyTransitsTableProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=transits-table.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var $="
|
|
2
|
-
//# sourceMappingURL=transits-table.js.map
|
|
1
|
+
"use client";import*as n from"react";var $="1.1.1",h="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(i){return!i||i==="latest"?C:`${M}${i}${O}`}function v(i=$,a){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,u)=>{let d=`${a??A(i)}/roxy-ui.js`,r=document.getElementById(h);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=h,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 D=n.forwardRef(function({data:a,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:T,hideSections:b,...P},H){let t=n.useRef(null);n.useImperativeHandle(H,()=>t.current,[]);let[s,I]=n.useState(!1),[S,_]=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,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&&T!==void 0&&(e.hideReadings=T)},[T,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.hideSections=b)},[b,s]),S?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${S.message}`):n.createElement("roxy-transits-table",{ref:t,className:o,style:u,suppressHydrationWarning:!0,...P})});export{D as RoxyTransitsTable};
|
|
@@ -6,19 +6,19 @@ export interface RoxyUpagrahaTableProps extends ElementAttrs {
|
|
|
6
6
|
data?: UpagrahaResponse;
|
|
7
7
|
className?: string;
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
|
-
/** Endpoint path for built-in self-fetch
|
|
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.
|
|
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
|
|
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 RoxyUpagrahaTableProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyUpagrahaTable: React.ForwardRefExoticComponent<RoxyUpagrahaTableProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=upagraha-table.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=upagraha-table.js.map
|
|
1
|
+
"use client";import*as n from"react";var _="1.1.1",T="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",C="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",c=null;function O(a){return!a||a==="latest"?$:`${C}${a}${M}`}function v(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(T);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=T,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 D=n.forwardRef(function({data:i,className:o,style:u,endpoint:d,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:g,locationUrl:p,specUrl:m,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:h,hideSections:b,...P},U){let t=n.useRef(null);n.useImperativeHandle(U,()=>t.current,[]);let[s,H]=n.useState(!1),[S,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&&g!==void 0&&(e.submitContext=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.locationUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.specUrl=m)},[m,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&&b!==void 0&&(e.hideSections=b)},[b,s]),S?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${S.message}`):n.createElement("roxy-upagraha-table",{ref:t,className:o,style:u,suppressHydrationWarning:!0,...P})});export{D as RoxyUpagrahaTable};
|
|
@@ -8,19 +8,19 @@ export interface RoxyVastuMandalaProps extends ElementAttrs {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
/** Which read the response is: the projected pada grid with a devata on every square, or the entrance read, which lights the square the main door falls on. */
|
|
10
10
|
mode?: 'mandala' | 'entrance';
|
|
11
|
-
/** Endpoint path for built-in self-fetch
|
|
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.
|
|
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
|
|
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 RoxyVastuMandalaProps extends ElementAttrs {
|
|
|
41
41
|
}
|
|
42
42
|
export declare const RoxyVastuMandala: React.ForwardRefExoticComponent<RoxyVastuMandalaProps & React.RefAttributes<HTMLElement | null>>;
|
|
43
43
|
export {};
|
|
44
|
-
//# sourceMappingURL=vastu-mandala.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=vastu-mandala.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",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",A="/dist/cdn",c=null;function U(a){return!a||a==="latest"?$:`${O}${a}${A}`}function M(a=_,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,d)=>{let u=`${i??U(a)}/roxy-ui.js`,r=document.getElementById(h);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=h,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,mode:u,endpoint:r,method:l,publishableKey:f,baseUrl:E,submitUrl:m,submitContext:p,locationUrl:g,specUrl:R,lang:w,submitLabel:y,remember:L,errorMessage:x,attribution:k,hideReadings:S,hideSections:P,...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 M().then(()=>{e&&H(!0)}).catch(v=>{e&&I(v instanceof Error?v:new Error(String(v)))}),()=>{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.mode=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&&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&&m!==void 0&&(e.submitUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitContext=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,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&&k!==void 0&&(e.attribution=k)},[k,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideReadings=S)},[S,s]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.hideSections=P)},[P,s]),b?n.createElement("div",{role:"alert",className:o,style:d},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-vastu-mandala",{ref:t,className:o,style:d,suppressHydrationWarning:!0,...T})});export{D as RoxyVastuMandala};
|
|
@@ -6,19 +6,19 @@ export interface RoxyVedicAspectsProps extends ElementAttrs {
|
|
|
6
6
|
data?: CalculateDrishtiResponse;
|
|
7
7
|
className?: string;
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
|
-
/** Endpoint path for built-in self-fetch
|
|
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.
|
|
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
|
|
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 RoxyVedicAspectsProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyVedicAspects: React.ForwardRefExoticComponent<RoxyVedicAspectsProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=vedic-aspects.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var I="
|
|
2
|
-
//# sourceMappingURL=vedic-aspects.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@",M="/dist/cdn",u=null;function O(i){return!i||i==="latest"?_:`${$}${i}${M}`}function P(i=I,a){return typeof document>"u"?Promise.resolve():u||(u=new Promise((o,c)=>{let d=`${a??O(i)}/roxy-ui.js`,r=document.getElementById(b);if(r){r.dataset.loaded==="true"?o():(r.addEventListener("load",()=>o()),r.addEventListener("error",()=>c(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",()=>c(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),u)}var D=n.forwardRef(function({data:a,className:o,style:c,endpoint:d,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:p,locationUrl:m,specUrl:g,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:k,hideSections:S,...T},A){let t=n.useRef(null);n.useImperativeHandle(A,()=>t.current,[]);let[s,C]=n.useState(!1),[v,H]=n.useState(null);return n.useEffect(()=>{let e=!0;return P().then(()=>{e&&C(!0)}).catch(h=>{e&&H(h instanceof Error?h:new Error(String(h)))}),()=>{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&&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&&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]),v?n.createElement("div",{role:"alert",className:o,style:c},`Roxy UI script load failed: ${v.message}`):n.createElement("roxy-vedic-aspects",{ref:t,className:o,style:c,suppressHydrationWarning:!0,...T})});export{D as RoxyVedicAspects};
|
|
@@ -6,19 +6,19 @@ export interface RoxyVedicDailyProps extends ElementAttrs {
|
|
|
6
6
|
data?: GetVedicDailyReadingResponse;
|
|
7
7
|
className?: string;
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
|
-
/** Endpoint path for built-in self-fetch
|
|
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.
|
|
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
|
|
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 RoxyVedicDailyProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyVedicDaily: React.ForwardRefExoticComponent<RoxyVedicDailyProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=vedic-daily.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var $="
|
|
2
|
-
//# sourceMappingURL=vedic-daily.js.map
|
|
1
|
+
"use client";import*as n from"react";var $="1.1.1",h="roxyapi-ui-loader",C="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",D="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",u=null;function O(i){return!i||i==="latest"?C:`${D}${i}${M}`}function P(i=$,a){return typeof document>"u"?Promise.resolve():u||(u=new Promise((o,d)=>{let c=`${a??O(i)}/roxy-ui.js`,r=document.getElementById(h);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=h,r.src=c,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)}),u)}var V=n.forwardRef(function({data:a,className:o,style:d,endpoint:c,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:g,specUrl:p,lang:R,submitLabel:y,remember:w,errorMessage:L,attribution:x,hideReadings:k,hideSections:S,...T},H){let t=n.useRef(null);n.useImperativeHandle(H,()=>t.current,[]);let[s,I]=n.useState(!1),[b,_]=n.useState(null);return n.useEffect(()=>{let e=!0;return P().then(()=>{e&&I(!0)}).catch(v=>{e&&_(v instanceof Error?v:new Error(String(v)))}),()=>{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&&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&&k!==void 0&&(e.hideReadings=k)},[k,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,s]),b?n.createElement("div",{role:"alert",className:o,style:d},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-vedic-daily",{ref:t,className:o,style:d,suppressHydrationWarning:!0,...T})});export{V as RoxyVedicDaily};
|
|
@@ -12,19 +12,19 @@ export interface RoxyVedicKundliProps extends ElementAttrs {
|
|
|
12
12
|
chartReference?: 'lagna' | 'moon';
|
|
13
13
|
/** Explicit rashi/sign name to pin as the ascendant, overriding both the Janma Lagna and chartReference. Empty by default. Use for Surya Lagna, Arudha Lagna, or any custom reference chart. */
|
|
14
14
|
lagnaOverride?: string;
|
|
15
|
-
/** Endpoint path for built-in self-fetch
|
|
15
|
+
/** 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. */
|
|
16
16
|
endpoint?: string;
|
|
17
|
-
/** HTTP method for the self-fetch request. Defaults to POST. */
|
|
17
|
+
/** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
|
|
18
18
|
method?: 'GET' | 'POST';
|
|
19
19
|
/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
|
|
20
20
|
publishableKey?: string;
|
|
21
21
|
/** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */
|
|
22
22
|
baseUrl?: string;
|
|
23
|
-
/** Your own backend route, which holds the secret key.
|
|
23
|
+
/** 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. */
|
|
24
24
|
submitUrl?: string;
|
|
25
25
|
/** 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. */
|
|
26
26
|
submitContext?: Record<string, unknown>;
|
|
27
|
-
/** Where the self-fetch form city search sends its
|
|
27
|
+
/** 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. */
|
|
28
28
|
locationUrl?: string;
|
|
29
29
|
/** Override the OpenAPI spec URL the self-fetch form introspects. */
|
|
30
30
|
specUrl?: string;
|
|
@@ -45,4 +45,3 @@ export interface RoxyVedicKundliProps extends ElementAttrs {
|
|
|
45
45
|
}
|
|
46
46
|
export declare const RoxyVedicKundli: React.ForwardRefExoticComponent<RoxyVedicKundliProps & React.RefAttributes<HTMLElement | null>>;
|
|
47
47
|
export {};
|
|
48
|
-
//# sourceMappingURL=vedic-kundli.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var O="
|
|
2
|
-
//# sourceMappingURL=vedic-kundli.js.map
|
|
1
|
+
"use client";import*as n from"react";var O="1.1.1",C="roxyapi-ui-loader",A="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",B="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",U="/dist/cdn",c=null;function K(i){return!i||i==="latest"?A:`${B}${i}${U}`}function H(i=O,a){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,u)=>{let d=`${a??K(i)}/roxy-ui.js`,s=document.getElementById(C);if(s){s.dataset.loaded==="true"?o():(s.addEventListener("load",()=>o()),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=C,s.src=d,s.async=!0,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",o()}),s.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),c)}var N=n.forwardRef(function({data:a,className:o,style:u,chartStyle:d,chartReference:s,lagnaOverride:l,endpoint:f,method:E,publishableKey:g,baseUrl:m,submitUrl:p,submitContext:R,locationUrl:w,specUrl:y,lang:L,submitLabel:h,remember:x,errorMessage:k,attribution:S,hideReadings:v,hideSections:b,...I},_){let t=n.useRef(null);n.useImperativeHandle(_,()=>t.current,[]);let[r,$]=n.useState(!1),[T,M]=n.useState(null);return n.useEffect(()=>{let e=!0;return H().then(()=>{e&&$(!0)}).catch(P=>{e&&M(P instanceof Error?P:new Error(String(P)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,r]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.chartStyle=d)},[d,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.chartReference=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.lagnaOverride=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.endpoint=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.method=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.publishableKey=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.baseUrl=m)},[m,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&&w!==void 0&&(e.locationUrl=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.specUrl=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.lang=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.submitLabel=h)},[h,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.remember=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.errorMessage=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.attribution=S)},[S,r]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.hideReadings=v)},[v,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.hideSections=b)},[b,r]),T?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${T.message}`):n.createElement("roxy-vedic-kundli",{ref:t,className:o,style:u,suppressHydrationWarning:!0,...I})});export{N as RoxyVedicKundli};
|
|
@@ -6,19 +6,19 @@ export interface RoxyVedicPlanetsTableProps extends ElementAttrs {
|
|
|
6
6
|
data?: BirthChartResponse;
|
|
7
7
|
className?: string;
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
|
-
/** Endpoint path for built-in self-fetch
|
|
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.
|
|
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
|
|
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 RoxyVedicPlanetsTableProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyVedicPlanetsTable: React.ForwardRefExoticComponent<RoxyVedicPlanetsTableProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=vedic-planets-table.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=vedic-planets-table.js.map
|
|
1
|
+
"use client";import*as n from"react";var _="1.1.1",S="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(i){return!i||i==="latest"?$:`${M}${i}${O}`}function T(i=_,a){return typeof document>"u"?Promise.resolve():u||(u=new Promise((o,d)=>{let c=`${a??A(i)}/roxy-ui.js`,r=document.getElementById(S);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=S,r.src=c,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)}),u)}var V=n.forwardRef(function({data:a,className:o,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:b,hideSections:h,...v},C){let t=n.useRef(null);n.useImperativeHandle(C,()=>t.current,[]);let[s,H]=n.useState(!1),[P,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return T().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&&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&&b!==void 0&&(e.hideReadings=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideSections=h)},[h,s]),P?n.createElement("div",{role:"alert",className:o,style:d},`Roxy UI script load failed: ${P.message}`):n.createElement("roxy-vedic-planets-table",{ref:t,className:o,style:d,suppressHydrationWarning:!0,...v})});export{V as RoxyVedicPlanetsTable};
|
|
@@ -6,19 +6,19 @@ export interface RoxyWesternPlanetsTableProps extends ElementAttrs {
|
|
|
6
6
|
data?: NatalChartResponse;
|
|
7
7
|
className?: string;
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
|
-
/** Endpoint path for built-in self-fetch
|
|
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.
|
|
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
|
|
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 RoxyWesternPlanetsTableProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyWesternPlanetsTable: React.ForwardRefExoticComponent<RoxyWesternPlanetsTableProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=western-planets-table.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=western-planets-table.js.map
|
|
1
|
+
"use client";import*as n from"react";var _="1.1.1",T="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 h(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(T);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=T,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 N=n.forwardRef(function({data:i,className:o,style:u,endpoint:d,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:b,hideSections:k,...v},C){let t=n.useRef(null);n.useImperativeHandle(C,()=>t.current,[]);let[s,H]=n.useState(!1),[S,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return h().then(()=>{e&&H(!0)}).catch(P=>{e&&I(P instanceof Error?P:new Error(String(P)))}),()=>{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&&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&&b!==void 0&&(e.hideReadings=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),S?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${S.message}`):n.createElement("roxy-western-planets-table",{ref:t,className:o,style:u,suppressHydrationWarning:!0,...v})});export{N as RoxyWesternPlanetsTable};
|