@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 _="
|
|
2
|
-
//# sourceMappingURL=biorhythm-chart.js.map
|
|
1
|
+
"use client";import*as n from"react";var _="1.1.1",C="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 P(i=_,a){return typeof document>"u"?Promise.resolve():u||(u=new Promise((o,c)=>{let d=`${a??A(i)}/roxy-ui.js`,r=document.getElementById(C);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=C,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 U=n.forwardRef(function({data:a,className:o,style:c,mode:d,endpoint:r,method:l,publishableKey:f,baseUrl:m,submitUrl:E,submitContext:p,locationUrl:R,specUrl:g,lang:y,submitLabel:h,remember:w,errorMessage:L,attribution:x,hideReadings:k,hideSections:S,...T},B){let t=n.useRef(null);n.useImperativeHandle(B,()=>t.current,[]);let[s,H]=n.useState(!1),[v,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return P().then(()=>{e&&H(!0)}).catch(b=>{e&&I(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&&d!==void 0&&(e.mode=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&&m!==void 0&&(e.baseUrl=m)},[m,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&&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&&y!==void 0&&(e.lang=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.submitLabel=h)},[h,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]),v?n.createElement("div",{role:"alert",className:o,style:c},`Roxy UI script load failed: ${v.message}`):n.createElement("roxy-biorhythm-chart",{ref:t,className:o,style:c,suppressHydrationWarning:!0,...T})});export{U as RoxyBiorhythmChart};
|
|
@@ -6,19 +6,19 @@ export interface RoxyBodygraphProps extends ElementAttrs {
|
|
|
6
6
|
data?: GenerateBodygraphResponse;
|
|
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 RoxyBodygraphProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyBodygraph: React.ForwardRefExoticComponent<RoxyBodygraphProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=bodygraph.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=bodygraph.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",C="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",c=null;function O(o){return!o||o==="latest"?$:`${C}${o}${M}`}function P(o=_,a){return typeof document>"u"?Promise.resolve():c||(c=new Promise((i,d)=>{let u=`${a??O(o)}/roxy-ui.js`,r=document.getElementById(v);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=v,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 D=n.forwardRef(function({data:a,className:i,style:d,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:g,locationUrl:p,specUrl:m,lang:R,submitLabel:y,remember:w,errorMessage:L,attribution:x,hideReadings:h,hideSections:k,...T},B){let t=n.useRef(null);n.useImperativeHandle(B,()=>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&&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&&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&&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:d},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-bodygraph",{ref:t,className:i,style:d,suppressHydrationWarning:!0,...T})});export{D as RoxyBodygraph};
|
|
@@ -6,19 +6,19 @@ export interface RoxyCharaKarakasProps extends ElementAttrs {
|
|
|
6
6
|
data?: CharaKarakaResponse;
|
|
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 RoxyCharaKarakasProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyCharaKarakas: React.ForwardRefExoticComponent<RoxyCharaKarakasProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=chara-karakas.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=chara-karakas.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",c=null;function A(a){return!a||a==="latest"?$:`${M}${a}${O}`}function C(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(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:k,errorMessage:y,attribution:L,hideReadings:x,hideSections:h,...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&&k!==void 0&&(e.remember=k)},[k,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&&h!==void 0&&(e.hideSections=h)},[h,s]),b?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-chara-karakas",{ref:t,className:o,style:u,suppressHydrationWarning:!0,...P})});export{B as RoxyCharaKarakas};
|
|
@@ -6,19 +6,19 @@ export interface RoxyChoghadiyaGridProps extends ElementAttrs {
|
|
|
6
6
|
data?: GetChoghadiyaResponse;
|
|
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 RoxyChoghadiyaGridProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyChoghadiyaGrid: React.ForwardRefExoticComponent<RoxyChoghadiyaGridProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=choghadiya-grid.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=choghadiya-grid.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",c=null;function A(i){return!i||i==="latest"?$:`${M}${i}${O}`}function C(i=_,a){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,d)=>{let u=`${a??A(i)}/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:a,className:o,style:d,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:g,locationUrl:m,specUrl:p,lang:R,submitLabel:y,remember:h,errorMessage:w,attribution:L,hideReadings:x,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&&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&&g!==void 0&&(e.submitContext=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,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&&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&&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&&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-choghadiya-grid",{ref:t,className:o,style:d,suppressHydrationWarning:!0,...P})});export{B as RoxyChoghadiyaGrid};
|
|
@@ -8,19 +8,19 @@ export interface RoxyCompatibilityCardProps extends ElementAttrs {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
/** Which compatibility domain the response is from. Themes the card and labels the category breakdown. */
|
|
10
10
|
mode?: 'astrology' | 'numerology' | 'biorhythm';
|
|
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 RoxyCompatibilityCardProps extends ElementAttrs {
|
|
|
41
41
|
}
|
|
42
42
|
export declare const RoxyCompatibilityCard: React.ForwardRefExoticComponent<RoxyCompatibilityCardProps & React.RefAttributes<HTMLElement | null>>;
|
|
43
43
|
export {};
|
|
44
|
-
//# sourceMappingURL=compatibility-card.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as t from"react";var $="
|
|
2
|
-
//# sourceMappingURL=compatibility-card.js.map
|
|
1
|
+
"use client";import*as t 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",d=null;function B(i){return!i||i==="latest"?M:`${O}${i}${A}`}function P(i=$,a){return typeof document>"u"?Promise.resolve():d||(d=new Promise((o,u)=>{let c=`${a??B(i)}/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=c,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)}),d)}var D=t.forwardRef(function({data:a,className:o,style:u,mode:c,endpoint:r,method:l,publishableKey:f,baseUrl:m,submitUrl:p,submitContext:E,locationUrl:g,specUrl:R,lang:y,submitLabel:w,remember:C,errorMessage:b,attribution:L,hideReadings:x,hideSections:k,...T},H){let n=t.useRef(null);t.useImperativeHandle(H,()=>n.current,[]);let[s,I]=t.useState(!1),[S,_]=t.useState(null);return t.useEffect(()=>{let e=!0;return P().then(()=>{e&&I(!0)}).catch(h=>{e&&_(h instanceof Error?h:new Error(String(h)))}),()=>{e=!1}},[]),t.useEffect(()=>{let e=n.current;e&&a!==void 0&&(e.data=a)},[a,s]),t.useEffect(()=>{let e=n.current;e&&c!==void 0&&(e.mode=c)},[c,s]),t.useEffect(()=>{let e=n.current;e&&r!==void 0&&(e.endpoint=r)},[r,s]),t.useEffect(()=>{let e=n.current;e&&l!==void 0&&(e.method=l)},[l,s]),t.useEffect(()=>{let e=n.current;e&&f!==void 0&&(e.publishableKey=f)},[f,s]),t.useEffect(()=>{let e=n.current;e&&m!==void 0&&(e.baseUrl=m)},[m,s]),t.useEffect(()=>{let e=n.current;e&&p!==void 0&&(e.submitUrl=p)},[p,s]),t.useEffect(()=>{let e=n.current;e&&E!==void 0&&(e.submitContext=E)},[E,s]),t.useEffect(()=>{let e=n.current;e&&g!==void 0&&(e.locationUrl=g)},[g,s]),t.useEffect(()=>{let e=n.current;e&&R!==void 0&&(e.specUrl=R)},[R,s]),t.useEffect(()=>{let e=n.current;e&&y!==void 0&&(e.lang=y)},[y,s]),t.useEffect(()=>{let e=n.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),t.useEffect(()=>{let e=n.current;e&&C!==void 0&&(e.remember=C)},[C,s]),t.useEffect(()=>{let e=n.current;e&&b!==void 0&&(e.errorMessage=b)},[b,s]),t.useEffect(()=>{let e=n.current;e&&L!==void 0&&(e.attribution=L)},[L,s]),t.useEffect(()=>{let e=n.current;e&&x!==void 0&&(e.hideReadings=x)},[x,s]),t.useEffect(()=>{let e=n.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),S?t.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${S.message}`):t.createElement("roxy-compatibility-card",{ref:n,className:o,style:u,suppressHydrationWarning:!0,...T})});export{D as RoxyCompatibilityCard};
|
|
@@ -6,19 +6,19 @@ export interface RoxyCompoundNumberProps extends ElementAttrs {
|
|
|
6
6
|
data?: GetCompoundNumberResponse;
|
|
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 RoxyCompoundNumberProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyCompoundNumber: React.ForwardRefExoticComponent<RoxyCompoundNumberProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=compound-number.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=compound-number.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(o){return!o||o==="latest"?$:`${M}${o}${N}`}function C(o=_,a){return typeof document>"u"?Promise.resolve():c||(c=new Promise((i,u)=>{let d=`${a??O(o)}/roxy-ui.js`,r=document.getElementById(v);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),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",i()}),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var B=n.forwardRef(function({data:a,className:i,style:u,endpoint:d,method:r,publishableKey:l,baseUrl:f,submitUrl:m,submitContext:E,locationUrl:p,specUrl:g,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:b,hideSections:k,...P},T){let t=n.useRef(null);n.useImperativeHandle(T,()=>t.current,[]);let[s,H]=n.useState(!1),[h,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&&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&&m!==void 0&&(e.submitUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitContext=E)},[E,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]),h?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-compound-number",{ref:t,className:i,style:u,suppressHydrationWarning:!0,...P})});export{B as RoxyCompoundNumber};
|
|
@@ -6,19 +6,19 @@ export interface RoxyCrystalCardProps extends ElementAttrs {
|
|
|
6
6
|
data?: GetCrystalResponse;
|
|
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 RoxyCrystalCardProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyCrystalCard: React.ForwardRefExoticComponent<RoxyCrystalCardProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=crystal-card.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=crystal-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",c=null;function A(o){return!o||o==="latest"?$:`${M}${o}${O}`}function v(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(h);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=h,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:g,specUrl:p,lang:R,submitLabel:y,remember:w,errorMessage:L,attribution:x,hideReadings:k,hideSections:C,...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 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&&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&&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&&C!==void 0&&(e.hideSections=C)},[C,s]),b?n.createElement("div",{role:"alert",className:a,style:d},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-crystal-card",{ref:t,className:a,style:d,suppressHydrationWarning:!0,...P})});export{D as RoxyCrystalCard};
|
|
@@ -8,19 +8,19 @@ export interface RoxyCrystalGridProps extends ElementAttrs {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
/** Override the auto-derived grid heading. Empty by default, in which case the heading is derived from the response filter (chakra, element, zodiac sign, or birth month). */
|
|
10
10
|
heading?: string;
|
|
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;
|
|
@@ -46,4 +46,3 @@ export interface RoxyCrystalGridProps extends ElementAttrs {
|
|
|
46
46
|
}
|
|
47
47
|
export declare const RoxyCrystalGrid: React.ForwardRefExoticComponent<RoxyCrystalGridProps & React.RefAttributes<HTMLElement | null>>;
|
|
48
48
|
export {};
|
|
49
|
-
//# sourceMappingURL=crystal-grid.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var M="
|
|
2
|
-
//# sourceMappingURL=crystal-grid.js.map
|
|
1
|
+
"use client";import*as n from"react";var M="1.1.1",T="roxyapi-ui-loader",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",A="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",U="/dist/cdn",l=null;function D(o){return!o||o==="latest"?O:`${A}${o}${U}`}function B(o=M,d){return typeof document>"u"?Promise.resolve():l||(l=new Promise((i,c)=>{let u=`${d??D(o)}/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=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)}),l)}var j=n.forwardRef(function({data:d,className:i,style:c,heading:u,endpoint:r,method:f,publishableKey:E,baseUrl:m,submitUrl:p,submitContext:g,locationUrl:R,specUrl:y,lang:w,submitLabel:L,remember:x,errorMessage:C,attribution:h,hideReadings:v,hideSections:k,onRoxySymbolSelect:S,...G},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 B().then(()=>{e&&I(!0)}).catch(a=>{e&&_(a instanceof Error?a:new Error(String(a)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.data=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.heading=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&&f!==void 0&&(e.method=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.publishableKey=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.baseUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.submitContext=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.locationUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.specUrl=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.lang=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.submitLabel=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.remember=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&C!==void 0&&(e.errorMessage=C)},[C,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.attribution=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.hideReadings=v)},[v,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),n.useEffect(()=>{let e=t.current,a=S;if(!e||!a)return;let P=$=>a($);return e.addEventListener("roxy-symbol-select",P),()=>e.removeEventListener("roxy-symbol-select",P)},[S,s]),b?n.createElement("div",{role:"alert",className:i,style:c},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-crystal-grid",{ref:t,className:i,style:c,suppressHydrationWarning:!0,...G})});export{j as RoxyCrystalGrid};
|
|
@@ -8,19 +8,19 @@ export interface RoxyDashaTimelineProps extends ElementAttrs {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
/** Which dasha response shape to render: the running periods, the major mahadashas, or one of the four drill-down levels (antardashas, pratyantardashas, sookshma dashas, prana dashas). */
|
|
10
10
|
period?: 'current' | 'major' | 'sub' | 'antara' | 'sookshma' | 'prana';
|
|
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 RoxyDashaTimelineProps extends ElementAttrs {
|
|
|
41
41
|
}
|
|
42
42
|
export declare const RoxyDashaTimeline: React.ForwardRefExoticComponent<RoxyDashaTimelineProps & React.RefAttributes<HTMLElement | null>>;
|
|
43
43
|
export {};
|
|
44
|
-
//# sourceMappingURL=dasha-timeline.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var
|
|
2
|
-
//# sourceMappingURL=dasha-timeline.js.map
|
|
1
|
+
"use client";import*as n from"react";var M="1.1.1",T="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 O(a){return!a||a==="latest"?I:`${_}${a}${$}`}function D(a=M,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,u)=>{let d=`${i??O(a)}/roxy-ui.js`,s=document.getElementById(T);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=T,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 j=n.forwardRef(function({data:i,className:o,style:u,period:d,endpoint:s,method:l,publishableKey:f,baseUrl:m,submitUrl:p,submitContext:E,locationUrl:R,specUrl:g,lang:h,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:k,hideSections:S,...v},G){let t=n.useRef(null);n.useImperativeHandle(G,()=>t.current,[]);let[r,C]=n.useState(!1),[P,H]=n.useState(null);return n.useEffect(()=>{let e=!0;return D().then(()=>{e&&C(!0)}).catch(b=>{e&&H(b instanceof Error?b:new Error(String(b)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,r]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.period=d)},[d,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&&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&&E!==void 0&&(e.submitContext=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.locationUrl=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.lang=h)},[h,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&&L!==void 0&&(e.errorMessage=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideReadings=k)},[k,r]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,r]),P?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${P.message}`):n.createElement("roxy-dasha-timeline",{ref:t,className:o,style:u,suppressHydrationWarning:!0,...v})});export{j as RoxyDashaTimeline};
|
|
@@ -5,19 +5,19 @@ export interface RoxyDataProps extends ElementAttrs {
|
|
|
5
5
|
data?: unknown;
|
|
6
6
|
className?: string;
|
|
7
7
|
style?: React.CSSProperties;
|
|
8
|
-
/** Endpoint path for built-in self-fetch
|
|
8
|
+
/** 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. */
|
|
9
9
|
endpoint?: string;
|
|
10
|
-
/** HTTP method for the self-fetch request. Defaults to POST. */
|
|
10
|
+
/** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
|
|
11
11
|
method?: 'GET' | 'POST';
|
|
12
12
|
/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
|
|
13
13
|
publishableKey?: string;
|
|
14
14
|
/** Override the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route. */
|
|
15
15
|
baseUrl?: string;
|
|
16
|
-
/** Your own backend route, which holds the secret key.
|
|
16
|
+
/** 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. */
|
|
17
17
|
submitUrl?: string;
|
|
18
18
|
/** 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. */
|
|
19
19
|
submitContext?: Record<string, unknown>;
|
|
20
|
-
/** Where the self-fetch form city search sends its
|
|
20
|
+
/** 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. */
|
|
21
21
|
locationUrl?: string;
|
|
22
22
|
/** Override the OpenAPI spec URL the self-fetch form introspects. */
|
|
23
23
|
specUrl?: string;
|
|
@@ -38,4 +38,3 @@ export interface RoxyDataProps extends ElementAttrs {
|
|
|
38
38
|
}
|
|
39
39
|
export declare const RoxyData: React.ForwardRefExoticComponent<RoxyDataProps & React.RefAttributes<HTMLElement | null>>;
|
|
40
40
|
export {};
|
|
41
|
-
//# sourceMappingURL=data.d.ts.map
|
package/dist/components/data.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var $="
|
|
2
|
-
//# sourceMappingURL=data.js.map
|
|
1
|
+
"use client";import*as n from"react";var $="1.1.1",v="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 P(a=$,o){return typeof document>"u"?Promise.resolve():c||(c=new Promise((i,u)=>{let d=`${o??A(a)}/roxy-ui.js`,r=document.getElementById(v);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),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",i()}),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var B=n.forwardRef(function({data:o,className:i,style:u,endpoint:d,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:g,specUrl:p,lang:R,submitLabel:w,remember:L,errorMessage:y,attribution:x,hideReadings:k,hideSections:S,...T},H){let t=n.useRef(null);n.useImperativeHandle(H,()=>t.current,[]);let[s,I]=n.useState(!1),[h,_]=n.useState(null);return n.useEffect(()=>{let e=!0;return P().then(()=>{e&&I(!0)}).catch(b=>{e&&_(b instanceof Error?b:new Error(String(b)))}),()=>{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.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&&L!==void 0&&(e.remember=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.errorMessage=y)},[y,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]),h?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-data",{ref:t,className:i,style:u,suppressHydrationWarning:!0,...T})});export{B as RoxyData};
|
|
@@ -8,19 +8,19 @@ export interface RoxyDivisionalChartProps extends ElementAttrs {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
/** Initial regional varga layout. The end user can switch styles at runtime via the visible tablist. */
|
|
10
10
|
chartStyle?: 'south' | 'north' | 'east';
|
|
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 RoxyDivisionalChartProps extends ElementAttrs {
|
|
|
41
41
|
}
|
|
42
42
|
export declare const RoxyDivisionalChart: React.ForwardRefExoticComponent<RoxyDivisionalChartProps & React.RefAttributes<HTMLElement | null>>;
|
|
43
43
|
export {};
|
|
44
|
-
//# sourceMappingURL=divisional-chart.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var $="
|
|
2
|
-
//# sourceMappingURL=divisional-chart.js.map
|
|
1
|
+
"use client";import*as n from"react";var $="1.1.1",C="roxyapi-ui-loader",D="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"?D:`${M}${i}${O}`}function P(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(C);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=C,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:a,className:o,style:u,chartStyle:d,endpoint:r,method:l,publishableKey:f,baseUrl:E,submitUrl:m,submitContext:g,locationUrl:p,specUrl:R,lang:w,submitLabel:y,remember:h,errorMessage:L,attribution:x,hideReadings:v,hideSections:k,...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(S=>{e&&_(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.chartStyle=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&&m!==void 0&&(e.submitUrl=m)},[m,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&&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&&h!==void 0&&(e.remember=h)},[h,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&&v!==void 0&&(e.hideReadings=v)},[v,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-divisional-chart",{ref:t,className:o,style:u,suppressHydrationWarning:!0,...T})});export{N as RoxyDivisionalChart};
|