@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=kp-chart.js.map
|
|
1
|
+
"use client";import*as n from"react";var _="1.1.1",v="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",c=null;function A(o){return!o||o==="latest"?$:`${M}${o}${O}`}function C(o=_,a){return typeof document>"u"?Promise.resolve():c||(c=new Promise((i,u)=>{let d=`${a??A(o)}/roxy-ui.js`,r=document.getElementById(v);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),r.addEventListener("error",()=>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:E,submitContext:p,locationUrl:m,specUrl:g,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:h,hideSections:k,...P},T){let t=n.useRef(null);n.useImperativeHandle(T,()=>t.current,[]);let[s,H]=n.useState(!1),[b,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return C().then(()=>{e&&H(!0)}).catch(S=>{e&&I(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&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&&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:u},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-kp-chart",{ref:t,className:i,style:u,suppressHydrationWarning:!0,...P})});export{B as RoxyKpChart};
|
|
@@ -6,19 +6,19 @@ export interface RoxyKpFinanceCardProps extends ElementAttrs {
|
|
|
6
6
|
data?: GetKpDailyFinanceResponse;
|
|
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 RoxyKpFinanceCardProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyKpFinanceCard: React.ForwardRefExoticComponent<RoxyKpFinanceCardProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=kp-finance-card.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=kp-finance-card.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@",F="/dist/cdn",u=null;function O(i){return!i||i==="latest"?$:`${M}${i}${F}`}function P(i=_,o){return typeof document>"u"?Promise.resolve():u||(u=new Promise((a,d)=>{let c=`${o??O(i)}/roxy-ui.js`,r=document.getElementById(v);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=v,r.src=c,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)}),u)}var K=n.forwardRef(function({data:o,className:a,style:d,endpoint:c,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},C){let t=n.useRef(null);n.useImperativeHandle(C,()=>t.current,[]);let[s,H]=n.useState(!1),[h,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&&o!==void 0&&(e.data=o)},[o,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&&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]),h?n.createElement("div",{role:"alert",className:a,style:d},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-kp-finance-card",{ref:t,className:a,style:d,suppressHydrationWarning:!0,...T})});export{K as RoxyKpFinanceCard};
|
|
@@ -6,19 +6,19 @@ export interface RoxyKpPlanetsTableProps extends ElementAttrs {
|
|
|
6
6
|
data?: KpPlanetsResponse;
|
|
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 RoxyKpPlanetsTableProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyKpPlanetsTable: React.ForwardRefExoticComponent<RoxyKpPlanetsTableProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=kp-planets-table.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var $="
|
|
2
|
-
//# sourceMappingURL=kp-planets-table.js.map
|
|
1
|
+
"use client";import*as n from"react";var $="1.1.1",T="roxyapi-ui-loader",C="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",c=null;function A(o){return!o||o==="latest"?C:`${M}${o}${O}`}function h(o=$,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((a,u)=>{let d=`${i??A(o)}/roxy-ui.js`,r=document.getElementById(T);if(r){r.dataset.loaded==="true"?a():(r.addEventListener("load",()=>a()),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",a()}),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var B=n.forwardRef(function({data:i,className:a,style:u,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:P,hideSections:b,...v},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 h().then(()=>{e&&I(!0)}).catch(k=>{e&&_(k instanceof Error?k:new Error(String(k)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.endpoint=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitContext=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.hideReadings=P)},[P,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.hideSections=b)},[b,s]),S?n.createElement("div",{role:"alert",className:a,style:u},`Roxy UI script load failed: ${S.message}`):n.createElement("roxy-kp-planets-table",{ref:t,className:a,style:u,suppressHydrationWarning:!0,...v})});export{B as RoxyKpPlanetsTable};
|
|
@@ -6,19 +6,19 @@ export interface RoxyKpRulingPlanetsProps extends ElementAttrs {
|
|
|
6
6
|
data?: KpRulingPlanetsResponse;
|
|
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 RoxyKpRulingPlanetsProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyKpRulingPlanets: React.ForwardRefExoticComponent<RoxyKpRulingPlanetsProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=kp-ruling-planets.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var $="
|
|
2
|
-
//# sourceMappingURL=kp-ruling-planets.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 B=n.forwardRef(function({data:a,className:o,style:u,endpoint:d,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:p,locationUrl:g,specUrl:m,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:P,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 v().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.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&&g!==void 0&&(e.locationUrl=g)},[g,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&&P!==void 0&&(e.hideReadings=P)},[P,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),b?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-kp-ruling-planets",{ref:t,className:o,style:u,suppressHydrationWarning:!0,...T})});export{B as RoxyKpRulingPlanets};
|
|
@@ -8,19 +8,19 @@ export interface RoxyKuaCardProps extends ElementAttrs {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
/** Which read the response is: the Kua number alone, or the full Eight Mansions map, which adds a reading per sector and names the best and worst of them. */
|
|
10
10
|
mode?: 'kua' | 'mansions';
|
|
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 RoxyKuaCardProps extends ElementAttrs {
|
|
|
41
41
|
}
|
|
42
42
|
export declare const RoxyKuaCard: React.ForwardRefExoticComponent<RoxyKuaCardProps & React.RefAttributes<HTMLElement | null>>;
|
|
43
43
|
export {};
|
|
44
|
-
//# sourceMappingURL=kua-card.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=kua-card.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",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",A="/dist/cdn",c=null;function U(a){return!a||a==="latest"?$:`${O}${a}${A}`}function P(a=_,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,u)=>{let d=`${i??U(a)}/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:i,className:o,style:u,mode:d,endpoint:r,method:l,publishableKey:f,baseUrl:E,submitUrl:m,submitContext:g,locationUrl:p,specUrl:R,lang:w,submitLabel:y,remember:L,errorMessage:x,attribution:k,hideReadings:S,hideSections:b,...T},H){let t=n.useRef(null);n.useImperativeHandle(H,()=>t.current,[]);let[s,M]=n.useState(!1),[v,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return P().then(()=>{e&&M(!0)}).catch(h=>{e&&I(h instanceof Error?h:new Error(String(h)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&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&&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&&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&&b!==void 0&&(e.hideSections=b)},[b,s]),v?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${v.message}`):n.createElement("roxy-kua-card",{ref:t,className:o,style:u,suppressHydrationWarning:!0,...T})});export{N as RoxyKuaCard};
|
|
@@ -6,19 +6,19 @@ export interface RoxyLocalSpaceCompassProps extends ElementAttrs {
|
|
|
6
6
|
data?: LocalSpaceResponse;
|
|
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 RoxyLocalSpaceCompassProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyLocalSpaceCompass: React.ForwardRefExoticComponent<RoxyLocalSpaceCompassProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=local-space-compass.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=local-space-compass.js.map
|
|
1
|
+
"use client";import*as n from"react";var _="1.1.1",v="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",d=null;function A(o){return!o||o==="latest"?$:`${M}${o}${O}`}function P(o=_,i){return typeof document>"u"?Promise.resolve():d||(d=new Promise((a,c)=>{let u=`${i??A(o)}/roxy-ui.js`,r=document.getElementById(v);if(r){r.dataset.loaded==="true"?a():(r.addEventListener("load",()=>a()),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=v,r.src=u,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",a()}),r.addEventListener("error",()=>c(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),d)}var D=n.forwardRef(function({data:i,className:a,style:c,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:p,submitContext:E,locationUrl:m,specUrl:g,lang:R,submitLabel:L,remember:w,errorMessage:y,attribution:x,hideReadings:S,hideSections:k,...T},C){let t=n.useRef(null);n.useImperativeHandle(C,()=>t.current,[]);let[s,H]=n.useState(!1),[h,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&&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&&p!==void 0&&(e.submitUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitContext=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.submitLabel=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.remember=w)},[w,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&&S!==void 0&&(e.hideReadings=S)},[S,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),h?n.createElement("div",{role:"alert",className:a,style:c},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-local-space-compass",{ref:t,className:a,style:c,suppressHydrationWarning:!0,...T})});export{D as RoxyLocalSpaceCompass};
|
|
@@ -4,10 +4,14 @@ type ElementAttrs = Omit<React.HTMLAttributes<HTMLElement>, 'children'>;
|
|
|
4
4
|
export interface RoxyLocationSearchProps extends ElementAttrs {
|
|
5
5
|
className?: string;
|
|
6
6
|
style?: React.CSSProperties;
|
|
7
|
-
/** Browser-safe publishable key (pk_) the search sends with its request. A secret key is refused client-side and never sent. Leave unset when `endpoint` points at your own server route. */
|
|
7
|
+
/** Browser-safe publishable key (pk_) the search sends with its request. A secret key is refused client-side and never sent. Leave unset when `endpoint` or `submitUrl` points at your own server route. */
|
|
8
8
|
publishableKey?: string;
|
|
9
|
-
/** Where the search sends its GET while the visitor types
|
|
9
|
+
/** Where the search sends its GET while the visitor types, as an absolute URL or a page-relative path such as "/api/roxy/location". Wins over submitUrl. Unset with no submitUrl, the search calls the RoxyAPI location search. */
|
|
10
10
|
endpoint?: string;
|
|
11
|
+
/** Your own backend route, which holds the secret key. With no endpoint set, each search is POSTed there as `{ path: "/location/search", method: "GET", query: { q, limit } }`, the shape every component request takes there. */
|
|
12
|
+
submitUrl?: string;
|
|
13
|
+
/** An object of your own, sent to your submitUrl route as `context` beside the search. Passed through untouched and never read. */
|
|
14
|
+
submitContext?: Record<string, unknown>;
|
|
11
15
|
/** Input placeholder. The default renders in the page language; a caller-supplied one is printed as given. */
|
|
12
16
|
placeholder?: string;
|
|
13
17
|
/** Initial text in the input, for restoring a previous search. */
|
|
@@ -30,4 +34,3 @@ export interface RoxyLocationSearchProps extends ElementAttrs {
|
|
|
30
34
|
}
|
|
31
35
|
export declare const RoxyLocationSearch: React.ForwardRefExoticComponent<RoxyLocationSearchProps & React.RefAttributes<HTMLElement | null>>;
|
|
32
36
|
export {};
|
|
33
|
-
//# sourceMappingURL=location-search.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as t from"react";var C="
|
|
2
|
-
//# sourceMappingURL=location-search.js.map
|
|
1
|
+
"use client";import*as t from"react";var C="1.1.1",L="roxyapi-ui-loader",P="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",H="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",I="/dist/cdn",f=null;function T(i){return!i||i==="latest"?P:`${H}${i}${I}`}function x(i=C,l){return typeof document>"u"?Promise.resolve():f||(f=new Promise((a,c)=>{let d=`${l??T(i)}/roxy-ui.js`,n=document.getElementById(L);if(n){n.dataset.loaded==="true"?a():(n.addEventListener("load",()=>a()),n.addEventListener("error",()=>c(new Error("roxy-ui load failed"))));return}n=document.createElement("script"),n.id=L,n.src=d,n.async=!0,n.crossOrigin="anonymous",n.addEventListener("load",()=>{n.dataset.loaded="true",a()}),n.addEventListener("error",()=>c(new Error("roxy-ui load failed"))),document.head.appendChild(n)}),f)}var k=t.forwardRef(function({className:l,style:a,publishableKey:c,endpoint:d,submitUrl:n,submitContext:m,placeholder:E,defaultValue:p,onRoxyLocationSelect:v,onRoxyValidationError:y,...h},S){let r=t.useRef(null);t.useImperativeHandle(S,()=>r.current,[]);let[o,w]=t.useState(!1),[R,b]=t.useState(null);return t.useEffect(()=>{let e=!0;return x().then(()=>{e&&w(!0)}).catch(s=>{e&&b(s instanceof Error?s:new Error(String(s)))}),()=>{e=!1}},[]),t.useEffect(()=>{let e=r.current;e&&c!==void 0&&(e.publishableKey=c)},[c,o]),t.useEffect(()=>{let e=r.current;e&&d!==void 0&&(e.endpoint=d)},[d,o]),t.useEffect(()=>{let e=r.current;e&&n!==void 0&&(e.submitUrl=n)},[n,o]),t.useEffect(()=>{let e=r.current;e&&m!==void 0&&(e.submitContext=m)},[m,o]),t.useEffect(()=>{let e=r.current;e&&E!==void 0&&(e.placeholder=E)},[E,o]),t.useEffect(()=>{let e=r.current;e&&p!==void 0&&(e.defaultValue=p)},[p,o]),t.useEffect(()=>{let e=r.current,s=v;if(!e||!s)return;let u=g=>s(g);return e.addEventListener("roxy-location-select",u),()=>e.removeEventListener("roxy-location-select",u)},[v,o]),t.useEffect(()=>{let e=r.current,s=y;if(!e||!s)return;let u=g=>s(g);return e.addEventListener("roxy-validation-error",u),()=>e.removeEventListener("roxy-validation-error",u)},[y,o]),R?t.createElement("div",{role:"alert",className:l,style:a},`Roxy UI script load failed: ${R.message}`):t.createElement("roxy-location-search",{ref:r,className:l,style:a,suppressHydrationWarning:!0,...h})});export{k as RoxyLocationSearch};
|
|
@@ -6,19 +6,19 @@ export interface RoxyLuckPillarsProps extends ElementAttrs {
|
|
|
6
6
|
data?: CalculateLuckPillarsResponse;
|
|
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 RoxyLuckPillarsProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyLuckPillars: React.ForwardRefExoticComponent<RoxyLuckPillarsProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=luck-pillars.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=luck-pillars.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",d=null;function A(i){return!i||i==="latest"?$:`${M}${i}${O}`}function v(i=_,a){return typeof document>"u"?Promise.resolve():d||(d=new Promise((o,u)=>{let c=`${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=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=n.forwardRef(function({data:a,className:o,style:u,endpoint:c,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:p,specUrl:g,lang:R,submitLabel:L,remember:w,errorMessage:y,attribution:k,hideReadings:x,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 v().then(()=>{e&&H(!0)}).catch(S=>{e&&I(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,s]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.endpoint=c)},[c,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.locationUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.submitLabel=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.remember=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.errorMessage=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.attribution=k)},[k,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.hideReadings=x)},[x,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:u},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-luck-pillars",{ref:t,className:o,style:u,suppressHydrationWarning:!0,...T})});export{D as RoxyLuckPillars};
|
|
@@ -8,19 +8,19 @@ export interface RoxyMayanDaySignProps extends ElementAttrs {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
/** Which read the response is: the Tzolkin day sign alone, or the full Calendar Round chart, which adds the Haab date, the Long Count, the year bearer and the four-fold cross. */
|
|
10
10
|
mode?: 'day' | 'chart';
|
|
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 RoxyMayanDaySignProps extends ElementAttrs {
|
|
|
41
41
|
}
|
|
42
42
|
export declare const RoxyMayanDaySign: React.ForwardRefExoticComponent<RoxyMayanDaySignProps & React.RefAttributes<HTMLElement | null>>;
|
|
43
43
|
export {};
|
|
44
|
-
//# sourceMappingURL=mayan-day-sign.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=mayan-day-sign.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",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",A="/dist/cdn",c=null;function D(a){return!a||a==="latest"?$:`${O}${a}${A}`}function M(a=_,o){return typeof document>"u"?Promise.resolve():c||(c=new Promise((i,u)=>{let d=`${o??D(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 z=n.forwardRef(function({data:o,className:i,style:u,mode:d,endpoint:r,method:l,publishableKey:f,baseUrl:E,submitUrl:g,submitContext:m,locationUrl:p,specUrl:R,lang:y,submitLabel:w,remember:L,errorMessage:x,attribution:S,hideReadings:k,hideSections:h,...P},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(T=>{e&&I(T instanceof Error?T:new Error(String(T)))}),()=>{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.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&&E!==void 0&&(e.baseUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.submitUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.locationUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.specUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.lang=y)},[y,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&&x!==void 0&&(e.errorMessage=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.attribution=S)},[S,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideReadings=k)},[k,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideSections=h)},[h,s]),b?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-mayan-day-sign",{ref:t,className:i,style:u,suppressHydrationWarning:!0,...P})});export{z as RoxyMayanDaySign};
|
|
@@ -8,19 +8,19 @@ export interface RoxyMoonPhaseProps extends ElementAttrs {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
/** Which moon-phase response shape to render: a single current phase, an upcoming list, or a calendar. */
|
|
10
10
|
mode?: 'current' | 'upcoming' | 'calendar';
|
|
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 RoxyMoonPhaseProps extends ElementAttrs {
|
|
|
41
41
|
}
|
|
42
42
|
export declare const RoxyMoonPhase: React.ForwardRefExoticComponent<RoxyMoonPhaseProps & React.RefAttributes<HTMLElement | null>>;
|
|
43
43
|
export {};
|
|
44
|
-
//# sourceMappingURL=moon-phase.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=moon-phase.js.map
|
|
1
|
+
"use client";import*as n from"react";var _="1.1.1",b="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",U="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",O="/dist/cdn",d=null;function A(o){return!o||o==="latest"?$:`${U}${o}${O}`}function v(o=_,i){return typeof document>"u"?Promise.resolve():d||(d=new Promise((a,u)=>{let c=`${i??A(o)}/roxy-ui.js`,r=document.getElementById(b);if(r){r.dataset.loaded==="true"?a():(r.addEventListener("load",()=>a()),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=b,r.src=c,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",a()}),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),d)}var D=n.forwardRef(function({data:i,className:a,style:u,mode:c,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:h,hideReadings:P,hideSections:k,...T},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 v().then(()=>{e&&H(!0)}).catch(M=>{e&&I(M instanceof Error?M:new Error(String(M)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.mode=c)},[c,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&&h!==void 0&&(e.attribution=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&P!==void 0&&(e.hideReadings=P)},[P,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),S?n.createElement("div",{role:"alert",className:a,style:u},`Roxy UI script load failed: ${S.message}`):n.createElement("roxy-moon-phase",{ref:t,className:a,style:u,suppressHydrationWarning:!0,...T})});export{D as RoxyMoonPhase};
|
|
@@ -6,19 +6,19 @@ export interface RoxyNakshatraCardProps extends ElementAttrs {
|
|
|
6
6
|
data?: NakshatraResponse;
|
|
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 RoxyNakshatraCardProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyNakshatraCard: React.ForwardRefExoticComponent<RoxyNakshatraCardProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=nakshatra-card.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=nakshatra-card.js.map
|
|
1
|
+
"use client";import*as n from"react";var _="1.1.1",v="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",M="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",N="/dist/cdn",c=null;function O(a){return!a||a==="latest"?$:`${M}${a}${N}`}function P(a=_,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,d)=>{let u=`${i??O(a)}/roxy-ui.js`,r=document.getElementById(v);if(r){r.dataset.loaded==="true"?o():(r.addEventListener("load",()=>o()),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=v,r.src=u,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var B=n.forwardRef(function({data:i,className:o,style:d,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:g,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:k,attribution:L,hideReadings:x,hideSections:h,...T},C){let t=n.useRef(null);n.useImperativeHandle(C,()=>t.current,[]);let[s,H]=n.useState(!1),[b,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return P().then(()=>{e&&H(!0)}).catch(S=>{e&&I(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.endpoint=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.errorMessage=k)},[k,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:d},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-nakshatra-card",{ref:t,className:o,style:d,suppressHydrationWarning:!0,...T})});export{B as RoxyNakshatraCard};
|