@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 RoxyAlmanacDayProps extends ElementAttrs {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
/** Which read the response is: one almanac day as a card, a whole month of them as rows, or the days a search returned for one activity. */
|
|
10
10
|
mode?: 'day' | 'month' | 'auspicious';
|
|
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 RoxyAlmanacDayProps extends ElementAttrs {
|
|
|
41
41
|
}
|
|
42
42
|
export declare const RoxyAlmanacDay: React.ForwardRefExoticComponent<RoxyAlmanacDayProps & React.RefAttributes<HTMLElement | null>>;
|
|
43
43
|
export {};
|
|
44
|
-
//# sourceMappingURL=almanac-day.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var I="
|
|
2
|
-
//# sourceMappingURL=almanac-day.js.map
|
|
1
|
+
"use client";import*as n from"react";var I="1.1.1",v="roxyapi-ui-loader",_="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",C="/dist/cdn",d=null;function O(a){return!a||a==="latest"?_:`${$}${a}${C}`}function P(a=I,i){return typeof document>"u"?Promise.resolve():d||(d=new Promise((o,u)=>{let c=`${i??O(a)}/roxy-ui.js`,r=document.getElementById(v);if(r){r.dataset.loaded==="true"?o():(r.addEventListener("load",()=>o()),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=v,r.src=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 G=n.forwardRef(function({data:i,className:o,style:u,mode:c,endpoint:r,method:l,publishableKey:f,baseUrl:m,submitUrl:p,submitContext:E,locationUrl:R,specUrl:g,lang:y,submitLabel:w,remember:L,errorMessage:x,attribution:k,hideReadings:h,hideSections:S,...T},D){let t=n.useRef(null);n.useImperativeHandle(D,()=>t.current,[]);let[s,H]=n.useState(!1),[b,M]=n.useState(null);return n.useEffect(()=>{let e=!0;return P().then(()=>{e&&H(!0)}).catch(A=>{e&&M(A instanceof Error?A:new Error(String(A)))}),()=>{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&&m!==void 0&&(e.baseUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitContext=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.locationUrl=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.lang=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&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&&k!==void 0&&(e.attribution=k)},[k,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]),b?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-almanac-day",{ref:t,className:o,style:u,suppressHydrationWarning:!0,...T})});export{G as RoxyAlmanacDay};
|
|
@@ -6,19 +6,19 @@ export interface RoxyAngelNumberCardProps extends ElementAttrs {
|
|
|
6
6
|
data?: GetAngelNumberResponse;
|
|
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 RoxyAngelNumberCardProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyAngelNumberCard: React.ForwardRefExoticComponent<RoxyAngelNumberCardProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=angel-number-card.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var I="
|
|
2
|
-
//# sourceMappingURL=angel-number-card.js.map
|
|
1
|
+
"use client";import*as n from"react";var I="1.1.1",v="roxyapi-ui-loader",_="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",c=null;function N(o){return!o||o==="latest"?_:`${$}${o}${M}`}function P(o=I,a){return typeof document>"u"?Promise.resolve():c||(c=new Promise((i,u)=>{let d=`${a??N(o)}/roxy-ui.js`,r=document.getElementById(v);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=v,r.src=d,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",i()}),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var B=n.forwardRef(function({data:a,className:i,style:u,endpoint:d,method:r,publishableKey:l,baseUrl:f,submitUrl:m,submitContext:E,locationUrl:g,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:b,hideSections:k,...T},A){let t=n.useRef(null);n.useImperativeHandle(A,()=>t.current,[]);let[s,C]=n.useState(!1),[h,H]=n.useState(null);return n.useEffect(()=>{let e=!0;return P().then(()=>{e&&C(!0)}).catch(S=>{e&&H(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.endpoint=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitContext=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&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&&b!==void 0&&(e.hideReadings=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),h?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-angel-number-card",{ref:t,className:i,style:u,suppressHydrationWarning:!0,...T})});export{B as RoxyAngelNumberCard};
|
|
@@ -6,19 +6,19 @@ export interface RoxyAngelNumberLookupProps extends ElementAttrs {
|
|
|
6
6
|
data?: AnalyzeNumberSequenceResponse;
|
|
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 RoxyAngelNumberLookupProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyAngelNumberLookup: React.ForwardRefExoticComponent<RoxyAngelNumberLookupProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=angel-number-lookup.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=angel-number-lookup.js.map
|
|
1
|
+
"use client";import*as n from"react";var _="1.1.1",v="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",C="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",c=null;function N(o){return!o||o==="latest"?$:`${C}${o}${M}`}function P(o=_,a){return typeof document>"u"?Promise.resolve():c||(c=new Promise((i,u)=>{let d=`${a??N(o)}/roxy-ui.js`,r=document.getElementById(v);if(r){r.dataset.loaded==="true"?i():(r.addEventListener("load",()=>i()),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=v,r.src=d,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",i()}),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var B=n.forwardRef(function({data:a,className:i,style:u,endpoint:d,method:r,publishableKey:l,baseUrl:f,submitUrl:m,submitContext:E,locationUrl:g,specUrl:p,lang:R,submitLabel:L,remember:w,errorMessage:y,attribution:x,hideReadings:k,hideSections:b,...T},A){let t=n.useRef(null);n.useImperativeHandle(A,()=>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(S=>{e&&I(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&a!==void 0&&(e.data=a)},[a,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.endpoint=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitContext=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&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&&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&&k!==void 0&&(e.hideReadings=k)},[k,s]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.hideSections=b)},[b,s]),h?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${h.message}`):n.createElement("roxy-angel-number-lookup",{ref:t,className:i,style:u,suppressHydrationWarning:!0,...T})});export{B as RoxyAngelNumberLookup};
|
|
@@ -6,19 +6,19 @@ export interface RoxyArudhaPadasProps extends ElementAttrs {
|
|
|
6
6
|
data?: ArudhaResponse;
|
|
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 RoxyArudhaPadasProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyArudhaPadas: React.ForwardRefExoticComponent<RoxyArudhaPadasProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=arudha-padas.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=arudha-padas.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",C="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",c=null;function O(a){return!a||a==="latest"?$:`${C}${a}${M}`}function v(a=_,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,d)=>{let u=`${i??O(a)}/roxy-ui.js`,r=document.getElementById(b);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=b,r.src=u,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var D=n.forwardRef(function({data:i,className:o,style:d,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:p,specUrl:g,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:h,hideSections:k,...T},A){let t=n.useRef(null);n.useImperativeHandle(A,()=>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(P=>{e&&I(P instanceof Error?P:new Error(String(P)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.endpoint=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.locationUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideReadings=h)},[h,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:d},`Roxy UI script load failed: ${S.message}`):n.createElement("roxy-arudha-padas",{ref:t,className:o,style:d,suppressHydrationWarning:!0,...T})});export{D as RoxyArudhaPadas};
|
|
@@ -6,19 +6,19 @@ export interface RoxyAshtakavargaGridProps extends ElementAttrs {
|
|
|
6
6
|
data?: AshtakavargaResponse;
|
|
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 RoxyAshtakavargaGridProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyAshtakavargaGrid: React.ForwardRefExoticComponent<RoxyAshtakavargaGridProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=ashtakavarga-grid.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=ashtakavarga-grid.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",C="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",c=null;function O(a){return!a||a==="latest"?$:`${C}${a}${M}`}function P(a=_,o){return typeof document>"u"?Promise.resolve():c||(c=new Promise((i,d)=>{let u=`${o??O(a)}/roxy-ui.js`,r=document.getElementById(b);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=b,r.src=u,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",i()}),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var G=n.forwardRef(function({data:o,className:i,style:d,endpoint:u,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:g,locationUrl:m,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:k,attribution:L,hideReadings:x,hideSections:h,...T},A){let t=n.useRef(null);n.useImperativeHandle(A,()=>t.current,[]);let[s,H]=n.useState(!1),[S,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return P().then(()=>{e&&H(!0)}).catch(v=>{e&&I(v instanceof Error?v:new Error(String(v)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&o!==void 0&&(e.data=o)},[o,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.endpoint=u)},[u,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.submitContext=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&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]),S?n.createElement("div",{role:"alert",className:i,style:d},`Roxy UI script load failed: ${S.message}`):n.createElement("roxy-ashtakavarga-grid",{ref:t,className:i,style:d,suppressHydrationWarning:!0,...T})});export{G as RoxyAshtakavargaGrid};
|
|
@@ -6,19 +6,19 @@ export interface RoxyAspectsTableProps extends ElementAttrs {
|
|
|
6
6
|
data?: CalculateAspectsResponse | CalculateTransitAspectsResponse | DetectAspectPatternsResponse;
|
|
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 RoxyAspectsTableProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyAspectsTable: React.ForwardRefExoticComponent<RoxyAspectsTableProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=aspects-table.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var I="
|
|
2
|
-
//# sourceMappingURL=aspects-table.js.map
|
|
1
|
+
"use client";import*as n from"react";var I="1.1.1",A="roxyapi-ui-loader",_="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",d=null;function O(a){return!a||a==="latest"?_:`${$}${a}${M}`}function P(a=I,i){return typeof document>"u"?Promise.resolve():d||(d=new Promise((o,c)=>{let u=`${i??O(a)}/roxy-ui.js`,s=document.getElementById(A);if(s){s.dataset.loaded==="true"?o():(s.addEventListener("load",()=>o()),s.addEventListener("error",()=>c(new Error("roxy-ui load failed"))));return}s=document.createElement("script"),s.id=A,s.src=u,s.async=!0,s.crossOrigin="anonymous",s.addEventListener("load",()=>{s.dataset.loaded="true",o()}),s.addEventListener("error",()=>c(new Error("roxy-ui load failed"))),document.head.appendChild(s)}),d)}var D=n.forwardRef(function({data:i,className:o,style:c,endpoint:u,method:s,publishableKey:l,baseUrl:f,submitUrl:p,submitContext:E,locationUrl:m,specUrl:g,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:b,hideSections:T,...h},v){let t=n.useRef(null);n.useImperativeHandle(v,()=>t.current,[]);let[r,C]=n.useState(!1),[S,H]=n.useState(null);return n.useEffect(()=>{let e=!0;return P().then(()=>{e&&C(!0)}).catch(k=>{e&&H(k instanceof Error?k:new Error(String(k)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,r]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.endpoint=u)},[u,r]),n.useEffect(()=>{let e=t.current;e&&s!==void 0&&(e.method=s)},[s,r]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,r]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,r]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.submitUrl=p)},[p,r]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitContext=E)},[E,r]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.locationUrl=m)},[m,r]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.specUrl=g)},[g,r]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,r]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,r]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.remember=y)},[y,r]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,r]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,r]),n.useEffect(()=>{let e=t.current;e&&b!==void 0&&(e.hideReadings=b)},[b,r]),n.useEffect(()=>{let e=t.current;e&&T!==void 0&&(e.hideSections=T)},[T,r]),S?n.createElement("div",{role:"alert",className:o,style:c},`Roxy UI script load failed: ${S.message}`):n.createElement("roxy-aspects-table",{ref:t,className:o,style:c,suppressHydrationWarning:!0,...h})});export{D as RoxyAspectsTable};
|
|
@@ -6,19 +6,19 @@ export interface RoxyAstrocartographyMapProps extends ElementAttrs {
|
|
|
6
6
|
data?: AstrocartographyResponse;
|
|
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 RoxyAstrocartographyMapProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyAstrocartographyMap: React.ForwardRefExoticComponent<RoxyAstrocartographyMapProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=astrocartography-map.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var I="
|
|
2
|
-
//# sourceMappingURL=astrocartography-map.js.map
|
|
1
|
+
"use client";import*as n from"react";var I="1.1.1",v="roxyapi-ui-loader",_="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",C="/dist/cdn",d=null;function O(o){return!o||o==="latest"?_:`${$}${o}${C}`}function P(o=I,i){return typeof document>"u"?Promise.resolve():d||(d=new Promise((a,c)=>{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",()=>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:g,specUrl:m,lang:R,submitLabel:y,remember:w,errorMessage:L,attribution:x,hideReadings:h,hideSections:k,...T},A){let t=n.useRef(null);n.useImperativeHandle(A,()=>t.current,[]);let[s,M]=n.useState(!1),[b,H]=n.useState(null);return n.useEffect(()=>{let e=!0;return P().then(()=>{e&&M(!0)}).catch(S=>{e&&H(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&u!==void 0&&(e.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&&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&&y!==void 0&&(e.submitLabel=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.remember=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.errorMessage=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.attribution=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideReadings=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&k!==void 0&&(e.hideSections=k)},[k,s]),b?n.createElement("div",{role:"alert",className:a,style:c},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-astrocartography-map",{ref:t,className:a,style:c,suppressHydrationWarning:!0,...T})});export{D as RoxyAstrocartographyMap};
|
|
@@ -6,19 +6,19 @@ export interface RoxyBaziChartProps extends ElementAttrs {
|
|
|
6
6
|
data?: GenerateBaziChartResponse;
|
|
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 RoxyBaziChartProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyBaziChart: React.ForwardRefExoticComponent<RoxyBaziChartProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=bazi-chart.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var I="
|
|
2
|
-
//# sourceMappingURL=bazi-chart.js.map
|
|
1
|
+
"use client";import*as n from"react";var I="1.1.1",v="roxyapi-ui-loader",_="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",c=null;function z(i){return!i||i==="latest"?_:`${$}${i}${M}`}function C(i=I,o){return typeof document>"u"?Promise.resolve():c||(c=new Promise((a,u)=>{let d=`${o??z(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 U=n.forwardRef(function({data:o,className:a,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,B]=n.useState(!1),[b,H]=n.useState(null);return n.useEffect(()=>{let e=!0;return C().then(()=>{e&&B(!0)}).catch(S=>{e&&H(S instanceof Error?S:new Error(String(S)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&o!==void 0&&(e.data=o)},[o,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.endpoint=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.submitLabel=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&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:a,style:u},`Roxy UI script load failed: ${b.message}`):n.createElement("roxy-bazi-chart",{ref:t,className:a,style:u,suppressHydrationWarning:!0,...P})});export{U as RoxyBaziChart};
|
|
@@ -6,19 +6,19 @@ export interface RoxyBhavChalitTableProps extends ElementAttrs {
|
|
|
6
6
|
data?: BhavChalitResponse;
|
|
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 RoxyBhavChalitTableProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyBhavChalitTable: React.ForwardRefExoticComponent<RoxyBhavChalitTableProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=bhav-chalit-table.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var I="
|
|
2
|
-
//# sourceMappingURL=bhav-chalit-table.js.map
|
|
1
|
+
"use client";import*as n from"react";var I="1.1.1",S="roxyapi-ui-loader",_="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",c=null;function O(a){return!a||a==="latest"?_:`${$}${a}${M}`}function T(a=I,o){return typeof document>"u"?Promise.resolve():c||(c=new Promise((i,u)=>{let d=`${o??O(a)}/roxy-ui.js`,r=document.getElementById(S);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=S,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 D=n.forwardRef(function({data:o,className:i,style:u,endpoint:d,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:g,specUrl:p,lang:R,submitLabel:h,remember:w,errorMessage:y,attribution:L,hideReadings:x,hideSections:v,...C},P){let t=n.useRef(null);n.useImperativeHandle(P,()=>t.current,[]);let[s,B]=n.useState(!1),[k,H]=n.useState(null);return n.useEffect(()=>{let e=!0;return T().then(()=>{e&&B(!0)}).catch(b=>{e&&H(b instanceof Error?b:new Error(String(b)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&o!==void 0&&(e.data=o)},[o,s]),n.useEffect(()=>{let e=t.current;e&&d!==void 0&&(e.endpoint=d)},[d,s]),n.useEffect(()=>{let e=t.current;e&&r!==void 0&&(e.method=r)},[r,s]),n.useEffect(()=>{let e=t.current;e&&l!==void 0&&(e.publishableKey=l)},[l,s]),n.useEffect(()=>{let e=t.current;e&&f!==void 0&&(e.baseUrl=f)},[f,s]),n.useEffect(()=>{let e=t.current;e&&E!==void 0&&(e.submitUrl=E)},[E,s]),n.useEffect(()=>{let e=t.current;e&&m!==void 0&&(e.submitContext=m)},[m,s]),n.useEffect(()=>{let e=t.current;e&&g!==void 0&&(e.locationUrl=g)},[g,s]),n.useEffect(()=>{let e=t.current;e&&p!==void 0&&(e.specUrl=p)},[p,s]),n.useEffect(()=>{let e=t.current;e&&R!==void 0&&(e.lang=R)},[R,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.submitLabel=h)},[h,s]),n.useEffect(()=>{let e=t.current;e&&w!==void 0&&(e.remember=w)},[w,s]),n.useEffect(()=>{let e=t.current;e&&y!==void 0&&(e.errorMessage=y)},[y,s]),n.useEffect(()=>{let e=t.current;e&&L!==void 0&&(e.attribution=L)},[L,s]),n.useEffect(()=>{let e=t.current;e&&x!==void 0&&(e.hideReadings=x)},[x,s]),n.useEffect(()=>{let e=t.current;e&&v!==void 0&&(e.hideSections=v)},[v,s]),k?n.createElement("div",{role:"alert",className:i,style:u},`Roxy UI script load failed: ${k.message}`):n.createElement("roxy-bhav-chalit-table",{ref:t,className:i,style:u,suppressHydrationWarning:!0,...C})});export{D as RoxyBhavChalitTable};
|
|
@@ -6,19 +6,19 @@ export interface RoxyBhavaBalaTableProps extends ElementAttrs {
|
|
|
6
6
|
data?: BhavaBalaResponse;
|
|
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 RoxyBhavaBalaTableProps extends ElementAttrs {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const RoxyBhavaBalaTable: React.ForwardRefExoticComponent<RoxyBhavaBalaTableProps & React.RefAttributes<HTMLElement | null>>;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=bhava-bala-table.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import*as n from"react";var _="
|
|
2
|
-
//# sourceMappingURL=bhava-bala-table.js.map
|
|
1
|
+
"use client";import*as n from"react";var _="1.1.1",S="roxyapi-ui-loader",$="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",C="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",M="/dist/cdn",c=null;function O(a){return!a||a==="latest"?$:`${C}${a}${M}`}function T(a=_,i){return typeof document>"u"?Promise.resolve():c||(c=new Promise((o,u)=>{let d=`${i??O(a)}/roxy-ui.js`,r=document.getElementById(S);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=S,r.src=d,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",o()}),r.addEventListener("error",()=>u(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),c)}var D=n.forwardRef(function({data:i,className:o,style:u,endpoint:d,method:r,publishableKey:l,baseUrl:f,submitUrl:E,submitContext:m,locationUrl:g,specUrl:p,lang:R,submitLabel:w,remember:y,errorMessage:L,attribution:x,hideReadings:b,hideSections:h,...B},P){let t=n.useRef(null);n.useImperativeHandle(P,()=>t.current,[]);let[s,H]=n.useState(!1),[k,I]=n.useState(null);return n.useEffect(()=>{let e=!0;return T().then(()=>{e&&H(!0)}).catch(v=>{e&&I(v instanceof Error?v:new Error(String(v)))}),()=>{e=!1}},[]),n.useEffect(()=>{let e=t.current;e&&i!==void 0&&(e.data=i)},[i,s]),n.useEffect(()=>{let e=t.current;e&&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&&b!==void 0&&(e.hideReadings=b)},[b,s]),n.useEffect(()=>{let e=t.current;e&&h!==void 0&&(e.hideSections=h)},[h,s]),k?n.createElement("div",{role:"alert",className:o,style:u},`Roxy UI script load failed: ${k.message}`):n.createElement("roxy-bhava-bala-table",{ref:t,className:o,style:u,suppressHydrationWarning:!0,...B})});export{D as RoxyBhavaBalaTable};
|
|
@@ -8,19 +8,19 @@ export interface RoxyBiorhythmChartProps extends ElementAttrs {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
/** Which biorhythm response shape to render: a single day, a multi-day forecast, or the critical days list. */
|
|
10
10
|
mode?: 'daily' | 'forecast' | 'critical-days';
|
|
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 RoxyBiorhythmChartProps extends ElementAttrs {
|
|
|
41
41
|
}
|
|
42
42
|
export declare const RoxyBiorhythmChart: React.ForwardRefExoticComponent<RoxyBiorhythmChartProps & React.RefAttributes<HTMLElement | null>>;
|
|
43
43
|
export {};
|
|
44
|
-
//# sourceMappingURL=biorhythm-chart.d.ts.map
|