@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
|
@@ -8,19 +8,19 @@ export interface RoxyDoshaCardProps extends ElementAttrs {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
/** Which dosha to title and theme. The three dosha responses share a shape, so the card cannot infer this. Defaults to manglik, so set it explicitly per card. */
|
|
10
10
|
type?: 'manglik' | 'kalsarpa' | 'sadhesati';
|
|
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 RoxyDoshaCardProps extends ElementAttrs {
|
|
|
41
41
|
}
|
|
42
42
|
export declare const RoxyDoshaCard: React.ForwardRefExoticComponent<RoxyDoshaCardProps & React.RefAttributes<HTMLElement | null>>;
|
|
43
43
|
export {};
|
|
44
|
-
//# sourceMappingURL=dosha-card.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=dosha-card.js.map
|
|
1
|
+
"use client";import*as n from"react";var _="1.1.1",P="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 T(a=_,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,d)=>{let u=`${i??D(a)}/roxy-ui.js`,r=document.getElementById(P);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=P,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 N=n.forwardRef(function({data:i,className:o,style:d,type:u,endpoint:r,method:l,publishableKey:f,baseUrl:E,submitUrl:p,submitContext:m,locationUrl:g,specUrl:R,lang:w,submitLabel:y,remember:k,errorMessage:L,attribution:x,hideReadings:h,hideSections:S,...C},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 T().then(()=>{e&&M(!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.type=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.endpoint=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&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&&p!==void 0&&(e.submitUrl=p)},[p,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&&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&&k!==void 0&&(e.remember=k)},[k,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&&S!==void 0&&(e.hideSections=S)},[S,s]),v?n.createElement("div",{role:"alert",className:o,style:d},`Roxy UI script load failed: ${v.message}`):n.createElement("roxy-dosha-card",{ref:t,className:o,style:d,suppressHydrationWarning:!0,...C})});export{N as RoxyDoshaCard};
|
|
@@ -6,19 +6,19 @@ export interface RoxyDoshaConstitutionProps extends ElementAttrs {
|
|
|
6
6
|
data?: CalculateAyurvedicConstitutionResponse;
|
|
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 RoxyDoshaConstitutionProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyDoshaConstitution: React.ForwardRefExoticComponent<RoxyDoshaConstitutionProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=dosha-constitution.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=dosha-constitution.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",A="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",c=null;function O(o){return!o||o==="latest"?$:`${A}${o}${M}`}function b(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(C);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=C,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:m,locationUrl:g,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:h,hideSections:k,...P},T){let t=n.useRef(null);n.useImperativeHandle(T,()=>t.current,[]);let[s,H]=n.useState(!1),[v,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return b().then(()=>{e&&H(!0)}).catch(S=>{e&&I(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.endpoint=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideReadings=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),v?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${v.message}`):n.createElement("roxy-dosha-constitution",{ref:t,className:i,style:u,suppressHydrationWarning:!0,...P})});export{B as RoxyDoshaConstitution};
|
|
@@ -6,19 +6,19 @@ export interface RoxyDreamCardProps extends ElementAttrs {
|
|
|
6
6
|
data?: GetDreamSymbolResponse;
|
|
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 RoxyDreamCardProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyDreamCard: React.ForwardRefExoticComponent<RoxyDreamCardProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=dream-card.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=dream-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",D="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",c=null;function O(o){return!o||o==="latest"?$:`${D}${o}${M}`}function P(o=_,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((a,d)=>{let u=`${i??O(o)}/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=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 B=n.forwardRef(function({data:i,className:a,style:d,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:m,submitContext:E,locationUrl:g,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:L,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&&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&&g!==void 0&&(e.locationUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&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:d},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-dream-card",{ref:t,className:a,style:d,suppressHydrationWarning:!0,...T})});export{B as RoxyDreamCard};
|
|
@@ -6,19 +6,19 @@ export interface RoxyDreamSearchProps extends ElementAttrs {
|
|
|
6
6
|
data?: SearchDreamSymbolsResponse;
|
|
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;
|
|
@@ -45,4 +45,3 @@ export interface RoxyDreamSearchProps extends ElementAttrs {
|
|
|
45
45
|
}
|
|
46
46
|
export declare const RoxyDreamSearch: React.ForwardRefExoticComponent<RoxyDreamSearchProps & React.RefAttributes<HTMLElement | null>>;
|
|
47
47
|
export {};
|
|
48
|
-
//# sourceMappingURL=dream-search.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var M="
|
|
2
|
-
//# sourceMappingURL=dream-search.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 B(o){return!o||o==="latest"?O:`${A}${o}${U}`}function C(o=M,c){return typeof document>"u"?Promise.resolve():l||(l=new Promise((i,d)=>{let u=`${c??B(o)}/roxy-ui.js`,r=document.getElementById(T);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=T,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)}),l)}var j=n.forwardRef(function({data:c,className:i,style:d,endpoint:u,method:r,publishableKey:f,baseUrl:m,submitUrl:E,submitContext:g,locationUrl:p,specUrl:R,lang:y,submitLabel:w,remember:L,errorMessage:x,attribution:S,hideReadings:h,hideSections:v,onRoxySymbolSelect:b,...H},I){let t=n.useRef(null);n.useImperativeHandle(I,()=>t.current,[]);let[s,_]=n.useState(!1),[k,$]=n.useState(null);return n.useEffect(()=>{let e=!0;return C().then(()=>{e&&_(!0)}).catch(a=>{e&&$(a instanceof Error?a:new Error(String(a)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&c!==void 0&&(e.data=c)},[c,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&&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&&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&&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&&h!==void 0&&(e.hideReadings=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.hideSections=v)},[v,s]),n.useEffect(()=>{let e=t.current,a=b;if(!e||!a)return;let P=D=>a(D);return e.addEventListener("roxy-symbol-select",P),()=>e.removeEventListener("roxy-symbol-select",P)},[b,s]),k?n.createElement("div",{role:"alert",className:i,style:d},`Roxy UI script load failed: ${k.message}`):n.createElement("roxy-dream-search",{ref:t,className:i,style:d,suppressHydrationWarning:!0,...H})});export{j as RoxyDreamSearch};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as t from"react";var k="
|
|
2
|
-
//# sourceMappingURL=endpoint-form.js.map
|
|
1
|
+
"use client";import*as t from"react";var k="1.1.1",w="roxyapi-ui-loader",H="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",b="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",I="/dist/cdn",E=null;function _(a){return!a||a==="latest"?H:`${b}${a}${I}`}function S(a=k,f){return typeof document>"u"?Promise.resolve():E||(E=new Promise((d,u)=>{let c=`${f??_(a)}/roxy-ui.js`,n=document.getElementById(w);if(n){n.dataset.loaded==="true"?d():(n.addEventListener("load",()=>d()),n.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}n=document.createElement("script"),n.id=w,n.src=c,n.async=!0,n.crossOrigin="anonymous",n.addEventListener("load",()=>{n.dataset.loaded="true",d()}),n.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(n)}),E)}var O=t.forwardRef(function({className:f,style:d,endpoint:u,method:c,specUrl:n,submitLabel:m,publishableKey:p,locationUrl:g,initialValues:v,onRoxySubmit:y,onRoxyValidationError:R,onRoxySpecError:L,...h},P){let r=t.useRef(null);t.useImperativeHandle(P,()=>r.current,[]);let[o,C]=t.useState(!1),[x,T]=t.useState(null);return t.useEffect(()=>{let e=!0;return S().then(()=>{e&&C(!0)}).catch(s=>{e&&T(s instanceof Error?s:new Error(String(s)))}),()=>{e=!1}},[]),t.useEffect(()=>{let e=r.current;e&&u!==void 0&&(e.endpoint=u)},[u,o]),t.useEffect(()=>{let e=r.current;e&&c!==void 0&&(e.method=c)},[c,o]),t.useEffect(()=>{let e=r.current;e&&n!==void 0&&(e.specUrl=n)},[n,o]),t.useEffect(()=>{let e=r.current;e&&m!==void 0&&(e.submitLabel=m)},[m,o]),t.useEffect(()=>{let e=r.current;e&&p!==void 0&&(e.publishableKey=p)},[p,o]),t.useEffect(()=>{let e=r.current;e&&g!==void 0&&(e.locationUrl=g)},[g,o]),t.useEffect(()=>{let e=r.current;e&&v!==void 0&&(e.initialValues=v)},[v,o]),t.useEffect(()=>{let e=r.current,s=y;if(!e||!s)return;let i=l=>s(l);return e.addEventListener("roxy-submit",i),()=>e.removeEventListener("roxy-submit",i)},[y,o]),t.useEffect(()=>{let e=r.current,s=R;if(!e||!s)return;let i=l=>s(l);return e.addEventListener("roxy-validation-error",i),()=>e.removeEventListener("roxy-validation-error",i)},[R,o]),t.useEffect(()=>{let e=r.current,s=L;if(!e||!s)return;let i=l=>s(l);return e.addEventListener("roxy-spec-error",i),()=>e.removeEventListener("roxy-spec-error",i)},[L,o]),x?t.createElement("div",{role:"alert",className:f,style:d},`Roxy UI script load failed: ${x.message}`):t.createElement("roxy-endpoint-form",{ref:r,className:f,style:d,suppressHydrationWarning:!0,...h})});export{O as RoxyEndpointForm};
|
|
@@ -8,19 +8,19 @@ export interface RoxyEphemerisTableProps extends ElementAttrs {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
/** Card heading above the month. Defaults to "Ephemeris", translated into the page language like every other label the component writes. */
|
|
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;
|
|
@@ -41,4 +41,3 @@ export interface RoxyEphemerisTableProps extends ElementAttrs {
|
|
|
41
41
|
}
|
|
42
42
|
export declare const RoxyEphemerisTable: React.ForwardRefExoticComponent<RoxyEphemerisTableProps & React.RefAttributes<HTMLElement | null>>;
|
|
43
43
|
export {};
|
|
44
|
-
//# sourceMappingURL=ephemeris-table.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var $="
|
|
2
|
-
//# sourceMappingURL=ephemeris-table.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",O="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",A="/dist/cdn",c=null;function U(i){return!i||i==="latest"?C:`${O}${i}${A}`}function P(i=$,a){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,u)=>{let d=`${a??U(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=d,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var D=n.forwardRef(function({data:a,className:o,style:u,heading:d,endpoint:r,method:l,publishableKey:f,baseUrl:E,submitUrl:p,submitContext:m,locationUrl:g,specUrl:R,lang:y,submitLabel:w,remember:h,errorMessage:L,attribution:x,hideReadings:b,hideSections:k,...M},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 P().then(()=>{e&&I(!0)}).catch(T=>{e&&_(T instanceof Error?T:new Error(String(T)))}),()=>{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.heading=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&&p!==void 0&&(e.submitUrl=p)},[p,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&&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&&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&&b!==void 0&&(e.hideReadings=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),S?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${S.message}`):n.createElement("roxy-ephemeris-table",{ref:t,className:o,style:u,suppressHydrationWarning:!0,...M})});export{D as RoxyEphemerisTable};
|
|
@@ -6,19 +6,19 @@ export interface RoxyFixedStarsProps extends ElementAttrs {
|
|
|
6
6
|
data?: FixedStarsResponse;
|
|
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 RoxyFixedStarsProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyFixedStars: React.ForwardRefExoticComponent<RoxyFixedStarsProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=fixed-stars.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var $="
|
|
2
|
-
//# sourceMappingURL=fixed-stars.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@",F="/dist/cdn",c=null;function O(i){return!i||i==="latest"?C:`${M}${i}${F}`}function P(i=$,a){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,d)=>{let u=`${a??O(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:m,locationUrl:g,specUrl:p,lang:R,submitLabel:x,remember:w,errorMessage:y,attribution:L,hideReadings:S,hideSections:k,...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&&a!==void 0&&(e.data=a)},[a,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.endpoint=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&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&&x!==void 0&&(e.submitLabel=x)},[x,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&&L!==void 0&&(e.attribution=L)},[L,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:o,style:d},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-fixed-stars",{ref:t,className:o,style:d,suppressHydrationWarning:!0,...T})});export{B as RoxyFixedStars};
|
|
@@ -8,19 +8,19 @@ export interface RoxyFlyingStarChartProps extends ElementAttrs {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
/** Which plate the response is: the natal chart of a building, which carries a mountain and a water star per palace, or one year of stars over it, which carries one. */
|
|
10
10
|
mode?: 'natal' | 'annual';
|
|
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 RoxyFlyingStarChartProps extends ElementAttrs {
|
|
|
41
41
|
}
|
|
42
42
|
export declare const RoxyFlyingStarChart: React.ForwardRefExoticComponent<RoxyFlyingStarChartProps & React.RefAttributes<HTMLElement | null>>;
|
|
43
43
|
export {};
|
|
44
|
-
//# sourceMappingURL=flying-star-chart.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=flying-star-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",A="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",c=null;function O(a){return!a||a==="latest"?$:`${A}${a}${M}`}function P(a=_,o){return typeof document>"u"?Promise.resolve():c||(c=new Promise((i,u)=>{let d=`${o??O(a)}/roxy-ui.js`,r=document.getElementById(C);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=C,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 G=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:S,errorMessage:L,attribution:x,hideReadings:h,hideSections:k,...T},H){let t=n.useRef(null);n.useImperativeHandle(H,()=>t.current,[]);let[s,F]=n.useState(!1),[v,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return P().then(()=>{e&&F(!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&&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&&S!==void 0&&(e.remember=S)},[S,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]),v?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${v.message}`):n.createElement("roxy-flying-star-chart",{ref:t,className:i,style:u,suppressHydrationWarning:!0,...T})});export{G as RoxyFlyingStarChart};
|
|
@@ -6,19 +6,19 @@ export interface RoxyForecastDigestProps extends ElementAttrs {
|
|
|
6
6
|
data?: GenerateDigestResponse;
|
|
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 RoxyForecastDigestProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyForecastDigest: React.ForwardRefExoticComponent<RoxyForecastDigestProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=forecast-digest.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var $="
|
|
2
|
-
//# sourceMappingURL=forecast-digest.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",D="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",u=null;function O(i){return!i||i==="latest"?C:`${D}${i}${M}`}function P(i=$,a){return typeof document>"u"?Promise.resolve():u||(u=new Promise((o,c)=>{let d=`${a??O(i)}/roxy-ui.js`,r=document.getElementById(v);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=v,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 F=n.forwardRef(function({data:a,className:o,style:c,endpoint:d,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:g,locationUrl:m,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:k,hideSections:S,...T},H){let t=n.useRef(null);n.useImperativeHandle(H,()=>t.current,[]);let[s,I]=n.useState(!1),[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&&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&&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&&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:o,style:c},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-forecast-digest",{ref:t,className:o,style:c,suppressHydrationWarning:!0,...T})});export{F as RoxyForecastDigest};
|
|
@@ -6,19 +6,19 @@ export interface RoxyForecastTimelineProps extends ElementAttrs {
|
|
|
6
6
|
data?: GenerateTimelineResponse | FindSignificantDatesResponse | ForecastTransitsResponse;
|
|
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 RoxyForecastTimelineProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyForecastTimeline: React.ForwardRefExoticComponent<RoxyForecastTimelineProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=forecast-timeline.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=forecast-timeline.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",C="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",u=null;function O(i){return!i||i==="latest"?$:`${C}${i}${M}`}function v(i=_,a){return typeof document>"u"?Promise.resolve():u||(u=new Promise((o,c)=>{let d=`${a??O(i)}/roxy-ui.js`,r=document.getElementById(h);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=h,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 B=n.forwardRef(function({data:a,className:o,style:c,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:T,hideSections:S,...P},H){let t=n.useRef(null);n.useImperativeHandle(H,()=>t.current,[]);let[s,F]=n.useState(!1),[b,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return v().then(()=>{e&&F(!0)}).catch(k=>{e&&I(k instanceof Error?k:new Error(String(k)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,s]),n.useEffect(()=>{let e=t.current;e&&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&&T!==void 0&&(e.hideReadings=T)},[T,s]),n.useEffect(()=>{let e=t.current;e&&S!==void 0&&(e.hideSections=S)},[S,s]),b?n.createElement("div",{role:"alert",className:o,style:c},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-forecast-timeline",{ref:t,className:o,style:c,suppressHydrationWarning:!0,...P})});export{B as RoxyForecastTimeline};
|
|
@@ -6,19 +6,19 @@ export interface RoxyGematriaProps extends ElementAttrs {
|
|
|
6
6
|
data?: CalculateGematriaResponse;
|
|
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 RoxyGematriaProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyGematria: React.ForwardRefExoticComponent<RoxyGematriaProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=gematria.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=gematria.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 P(i=_,o){return typeof document>"u"?Promise.resolve():c||(c=new Promise((a,u)=>{let d=`${o??A(i)}/roxy-ui.js`,r=document.getElementById(v);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=v,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:o,className:a,style:u,endpoint:d,method:r,publishableKey:l,baseUrl:f,submitUrl:m,submitContext:E,locationUrl:g,specUrl:p,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&&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&&g!==void 0&&(e.locationUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&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:u},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-gematria",{ref:t,className:a,style:u,suppressHydrationWarning:!0,...T})});export{B as RoxyGematria};
|