@roxyapi/ui-react 0.53.1 → 0.53.3
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 +12 -9
- package/README.md +14 -4
- package/dist/components/almanac-day.d.ts +4 -4
- package/dist/components/almanac-day.d.ts.map +1 -1
- package/dist/components/almanac-day.js +1 -1
- package/dist/components/almanac-day.js.map +1 -1
- package/dist/components/angel-number-card.d.ts +4 -4
- package/dist/components/angel-number-card.d.ts.map +1 -1
- package/dist/components/angel-number-card.js +1 -1
- package/dist/components/angel-number-card.js.map +1 -1
- package/dist/components/angel-number-lookup.d.ts +4 -4
- package/dist/components/angel-number-lookup.d.ts.map +1 -1
- package/dist/components/angel-number-lookup.js +1 -1
- package/dist/components/angel-number-lookup.js.map +1 -1
- package/dist/components/arudha-padas.d.ts +4 -4
- package/dist/components/arudha-padas.d.ts.map +1 -1
- package/dist/components/arudha-padas.js +1 -1
- package/dist/components/arudha-padas.js.map +1 -1
- package/dist/components/ashtakavarga-grid.d.ts +4 -4
- package/dist/components/ashtakavarga-grid.d.ts.map +1 -1
- package/dist/components/ashtakavarga-grid.js +1 -1
- package/dist/components/ashtakavarga-grid.js.map +1 -1
- package/dist/components/aspects-table.d.ts +4 -4
- package/dist/components/aspects-table.d.ts.map +1 -1
- package/dist/components/aspects-table.js +1 -1
- package/dist/components/aspects-table.js.map +1 -1
- package/dist/components/astrocartography-map.d.ts +4 -4
- package/dist/components/astrocartography-map.d.ts.map +1 -1
- package/dist/components/astrocartography-map.js +1 -1
- package/dist/components/astrocartography-map.js.map +1 -1
- package/dist/components/bazi-chart.d.ts +4 -4
- package/dist/components/bazi-chart.d.ts.map +1 -1
- package/dist/components/bazi-chart.js +1 -1
- package/dist/components/bazi-chart.js.map +1 -1
- package/dist/components/bhav-chalit-table.d.ts +4 -4
- package/dist/components/bhav-chalit-table.d.ts.map +1 -1
- package/dist/components/bhav-chalit-table.js +1 -1
- package/dist/components/bhav-chalit-table.js.map +1 -1
- package/dist/components/bhava-bala-table.d.ts +4 -4
- package/dist/components/bhava-bala-table.d.ts.map +1 -1
- package/dist/components/bhava-bala-table.js +1 -1
- package/dist/components/bhava-bala-table.js.map +1 -1
- package/dist/components/biorhythm-chart.d.ts +4 -4
- package/dist/components/biorhythm-chart.d.ts.map +1 -1
- package/dist/components/biorhythm-chart.js +1 -1
- package/dist/components/biorhythm-chart.js.map +1 -1
- package/dist/components/bodygraph.d.ts +4 -4
- package/dist/components/bodygraph.d.ts.map +1 -1
- package/dist/components/bodygraph.js +1 -1
- package/dist/components/bodygraph.js.map +1 -1
- package/dist/components/chara-karakas.d.ts +4 -4
- package/dist/components/chara-karakas.d.ts.map +1 -1
- package/dist/components/chara-karakas.js +1 -1
- package/dist/components/chara-karakas.js.map +1 -1
- package/dist/components/choghadiya-grid.d.ts +4 -4
- package/dist/components/choghadiya-grid.d.ts.map +1 -1
- package/dist/components/choghadiya-grid.js +1 -1
- package/dist/components/choghadiya-grid.js.map +1 -1
- package/dist/components/compatibility-card.d.ts +4 -4
- package/dist/components/compatibility-card.d.ts.map +1 -1
- package/dist/components/compatibility-card.js +1 -1
- package/dist/components/compatibility-card.js.map +1 -1
- package/dist/components/compound-number.d.ts +4 -4
- package/dist/components/compound-number.d.ts.map +1 -1
- package/dist/components/compound-number.js +1 -1
- package/dist/components/compound-number.js.map +1 -1
- package/dist/components/crystal-card.d.ts +4 -4
- package/dist/components/crystal-card.d.ts.map +1 -1
- package/dist/components/crystal-card.js +1 -1
- package/dist/components/crystal-card.js.map +1 -1
- package/dist/components/crystal-grid.d.ts +4 -4
- package/dist/components/crystal-grid.d.ts.map +1 -1
- package/dist/components/crystal-grid.js +1 -1
- package/dist/components/crystal-grid.js.map +1 -1
- package/dist/components/dasha-timeline.d.ts +4 -4
- package/dist/components/dasha-timeline.d.ts.map +1 -1
- package/dist/components/dasha-timeline.js +1 -1
- package/dist/components/dasha-timeline.js.map +1 -1
- package/dist/components/data.d.ts +4 -4
- package/dist/components/data.d.ts.map +1 -1
- package/dist/components/data.js +1 -1
- package/dist/components/data.js.map +1 -1
- package/dist/components/divisional-chart.d.ts +4 -4
- package/dist/components/divisional-chart.d.ts.map +1 -1
- package/dist/components/divisional-chart.js +1 -1
- package/dist/components/divisional-chart.js.map +1 -1
- package/dist/components/dosha-card.d.ts +4 -4
- package/dist/components/dosha-card.d.ts.map +1 -1
- package/dist/components/dosha-card.js +1 -1
- package/dist/components/dosha-card.js.map +1 -1
- package/dist/components/dosha-constitution.d.ts +4 -4
- package/dist/components/dosha-constitution.d.ts.map +1 -1
- package/dist/components/dosha-constitution.js +1 -1
- package/dist/components/dosha-constitution.js.map +1 -1
- package/dist/components/dream-card.d.ts +4 -4
- package/dist/components/dream-card.d.ts.map +1 -1
- package/dist/components/dream-card.js +1 -1
- package/dist/components/dream-card.js.map +1 -1
- package/dist/components/dream-search.d.ts +4 -4
- package/dist/components/dream-search.d.ts.map +1 -1
- package/dist/components/dream-search.js +1 -1
- package/dist/components/dream-search.js.map +1 -1
- package/dist/components/endpoint-form.js +1 -1
- package/dist/components/endpoint-form.js.map +1 -1
- package/dist/components/ephemeris-table.d.ts +4 -4
- package/dist/components/ephemeris-table.d.ts.map +1 -1
- package/dist/components/ephemeris-table.js +1 -1
- package/dist/components/ephemeris-table.js.map +1 -1
- package/dist/components/fixed-stars.d.ts +4 -4
- package/dist/components/fixed-stars.d.ts.map +1 -1
- package/dist/components/fixed-stars.js +1 -1
- package/dist/components/fixed-stars.js.map +1 -1
- package/dist/components/flying-star-chart.d.ts +4 -4
- package/dist/components/flying-star-chart.d.ts.map +1 -1
- package/dist/components/flying-star-chart.js +1 -1
- package/dist/components/flying-star-chart.js.map +1 -1
- package/dist/components/forecast-digest.d.ts +4 -4
- package/dist/components/forecast-digest.d.ts.map +1 -1
- package/dist/components/forecast-digest.js +1 -1
- package/dist/components/forecast-digest.js.map +1 -1
- package/dist/components/forecast-timeline.d.ts +4 -4
- package/dist/components/forecast-timeline.d.ts.map +1 -1
- package/dist/components/forecast-timeline.js +1 -1
- package/dist/components/forecast-timeline.js.map +1 -1
- package/dist/components/gematria.d.ts +4 -4
- package/dist/components/gematria.d.ts.map +1 -1
- package/dist/components/gematria.js +1 -1
- package/dist/components/gematria.js.map +1 -1
- package/dist/components/gochara-table.d.ts +4 -4
- package/dist/components/gochara-table.d.ts.map +1 -1
- package/dist/components/gochara-table.js +1 -1
- package/dist/components/gochara-table.js.map +1 -1
- package/dist/components/guna-milan.d.ts +4 -4
- package/dist/components/guna-milan.d.ts.map +1 -1
- package/dist/components/guna-milan.js +1 -1
- package/dist/components/guna-milan.js.map +1 -1
- package/dist/components/hd-connection.d.ts +4 -4
- package/dist/components/hd-connection.d.ts.map +1 -1
- package/dist/components/hd-connection.js +1 -1
- package/dist/components/hd-connection.js.map +1 -1
- package/dist/components/hd-penta.d.ts +4 -4
- package/dist/components/hd-penta.d.ts.map +1 -1
- package/dist/components/hd-penta.js +1 -1
- package/dist/components/hd-penta.js.map +1 -1
- package/dist/components/hd-type-card.d.ts +4 -4
- package/dist/components/hd-type-card.d.ts.map +1 -1
- package/dist/components/hd-type-card.js +1 -1
- package/dist/components/hd-type-card.js.map +1 -1
- package/dist/components/hd-variables.d.ts +4 -4
- package/dist/components/hd-variables.d.ts.map +1 -1
- package/dist/components/hd-variables.js +1 -1
- package/dist/components/hd-variables.js.map +1 -1
- package/dist/components/heliacal-table.d.ts +4 -4
- package/dist/components/heliacal-table.d.ts.map +1 -1
- package/dist/components/heliacal-table.js +1 -1
- package/dist/components/heliacal-table.js.map +1 -1
- package/dist/components/hexagram.d.ts +4 -4
- package/dist/components/hexagram.d.ts.map +1 -1
- package/dist/components/hexagram.js +1 -1
- package/dist/components/hexagram.js.map +1 -1
- package/dist/components/hora-table.d.ts +4 -4
- package/dist/components/hora-table.d.ts.map +1 -1
- package/dist/components/hora-table.js +1 -1
- package/dist/components/hora-table.js.map +1 -1
- package/dist/components/horoscope-card.d.ts +4 -4
- package/dist/components/horoscope-card.d.ts.map +1 -1
- package/dist/components/horoscope-card.js +1 -1
- package/dist/components/horoscope-card.js.map +1 -1
- package/dist/components/kp-chart.d.ts +4 -4
- package/dist/components/kp-chart.d.ts.map +1 -1
- package/dist/components/kp-chart.js +1 -1
- package/dist/components/kp-chart.js.map +1 -1
- package/dist/components/kp-finance-card.d.ts +4 -4
- package/dist/components/kp-finance-card.d.ts.map +1 -1
- package/dist/components/kp-finance-card.js +1 -1
- package/dist/components/kp-finance-card.js.map +1 -1
- package/dist/components/kp-planets-table.d.ts +4 -4
- package/dist/components/kp-planets-table.d.ts.map +1 -1
- package/dist/components/kp-planets-table.js +1 -1
- package/dist/components/kp-planets-table.js.map +1 -1
- package/dist/components/kp-ruling-planets.d.ts +4 -4
- package/dist/components/kp-ruling-planets.d.ts.map +1 -1
- package/dist/components/kp-ruling-planets.js +1 -1
- package/dist/components/kp-ruling-planets.js.map +1 -1
- package/dist/components/kua-card.d.ts +4 -4
- package/dist/components/kua-card.d.ts.map +1 -1
- package/dist/components/kua-card.js +1 -1
- package/dist/components/kua-card.js.map +1 -1
- package/dist/components/local-space-compass.d.ts +4 -4
- package/dist/components/local-space-compass.d.ts.map +1 -1
- package/dist/components/local-space-compass.js +1 -1
- package/dist/components/local-space-compass.js.map +1 -1
- package/dist/components/location-search.d.ts +6 -2
- package/dist/components/location-search.d.ts.map +1 -1
- package/dist/components/location-search.js +1 -1
- package/dist/components/location-search.js.map +3 -3
- package/dist/components/luck-pillars.d.ts +4 -4
- package/dist/components/luck-pillars.d.ts.map +1 -1
- package/dist/components/luck-pillars.js +1 -1
- package/dist/components/luck-pillars.js.map +1 -1
- package/dist/components/mayan-day-sign.d.ts +4 -4
- package/dist/components/mayan-day-sign.d.ts.map +1 -1
- package/dist/components/mayan-day-sign.js +1 -1
- package/dist/components/mayan-day-sign.js.map +1 -1
- package/dist/components/moon-phase.d.ts +4 -4
- package/dist/components/moon-phase.d.ts.map +1 -1
- package/dist/components/moon-phase.js +1 -1
- package/dist/components/moon-phase.js.map +1 -1
- package/dist/components/nakshatra-card.d.ts +4 -4
- package/dist/components/nakshatra-card.d.ts.map +1 -1
- package/dist/components/nakshatra-card.js +1 -1
- package/dist/components/nakshatra-card.js.map +1 -1
- package/dist/components/natal-chart.d.ts +4 -4
- package/dist/components/natal-chart.d.ts.map +1 -1
- package/dist/components/natal-chart.js +1 -1
- package/dist/components/natal-chart.js.map +1 -1
- package/dist/components/numerology-card.d.ts +4 -4
- package/dist/components/numerology-card.d.ts.map +1 -1
- package/dist/components/numerology-card.js +1 -1
- package/dist/components/numerology-card.js.map +1 -1
- package/dist/components/panchang-table.d.ts +4 -4
- package/dist/components/panchang-table.d.ts.map +1 -1
- package/dist/components/panchang-table.js +1 -1
- package/dist/components/panchang-table.js.map +1 -1
- package/dist/components/positions-table.d.ts +4 -4
- package/dist/components/positions-table.d.ts.map +1 -1
- package/dist/components/positions-table.js +1 -1
- package/dist/components/positions-table.js.map +1 -1
- package/dist/components/profection-card.d.ts +4 -4
- package/dist/components/profection-card.d.ts.map +1 -1
- package/dist/components/profection-card.js +1 -1
- package/dist/components/profection-card.js.map +1 -1
- package/dist/components/reference-card.d.ts +4 -4
- package/dist/components/reference-card.d.ts.map +1 -1
- package/dist/components/reference-card.js +1 -1
- package/dist/components/reference-card.js.map +1 -1
- package/dist/components/relocation-wheel.d.ts +4 -4
- package/dist/components/relocation-wheel.d.ts.map +1 -1
- package/dist/components/relocation-wheel.js +1 -1
- package/dist/components/relocation-wheel.js.map +1 -1
- package/dist/components/shadbala-table.d.ts +4 -4
- package/dist/components/shadbala-table.d.ts.map +1 -1
- package/dist/components/shadbala-table.js +1 -1
- package/dist/components/shadbala-table.js.map +1 -1
- package/dist/components/synastry-chart.d.ts +4 -4
- package/dist/components/synastry-chart.d.ts.map +1 -1
- package/dist/components/synastry-chart.js +1 -1
- package/dist/components/synastry-chart.js.map +1 -1
- package/dist/components/tarot-card.d.ts +4 -4
- package/dist/components/tarot-card.d.ts.map +1 -1
- package/dist/components/tarot-card.js +1 -1
- package/dist/components/tarot-card.js.map +1 -1
- package/dist/components/tarot-catalog.d.ts +4 -4
- package/dist/components/tarot-catalog.d.ts.map +1 -1
- package/dist/components/tarot-catalog.js +1 -1
- package/dist/components/tarot-catalog.js.map +1 -1
- package/dist/components/tarot-spread.d.ts +4 -4
- package/dist/components/tarot-spread.d.ts.map +1 -1
- package/dist/components/tarot-spread.js +1 -1
- package/dist/components/tarot-spread.js.map +1 -1
- package/dist/components/transit-wheel.d.ts +4 -4
- package/dist/components/transit-wheel.d.ts.map +1 -1
- package/dist/components/transit-wheel.js +1 -1
- package/dist/components/transit-wheel.js.map +1 -1
- package/dist/components/transits-table.d.ts +4 -4
- package/dist/components/transits-table.d.ts.map +1 -1
- package/dist/components/transits-table.js +1 -1
- package/dist/components/transits-table.js.map +1 -1
- package/dist/components/upagraha-table.d.ts +4 -4
- package/dist/components/upagraha-table.d.ts.map +1 -1
- package/dist/components/upagraha-table.js +1 -1
- package/dist/components/upagraha-table.js.map +1 -1
- package/dist/components/vastu-mandala.d.ts +4 -4
- package/dist/components/vastu-mandala.d.ts.map +1 -1
- package/dist/components/vastu-mandala.js +1 -1
- package/dist/components/vastu-mandala.js.map +1 -1
- package/dist/components/vedic-aspects.d.ts +4 -4
- package/dist/components/vedic-aspects.d.ts.map +1 -1
- package/dist/components/vedic-aspects.js +1 -1
- package/dist/components/vedic-aspects.js.map +1 -1
- package/dist/components/vedic-daily.d.ts +4 -4
- package/dist/components/vedic-daily.d.ts.map +1 -1
- package/dist/components/vedic-daily.js +1 -1
- package/dist/components/vedic-daily.js.map +1 -1
- package/dist/components/vedic-kundli.d.ts +4 -4
- package/dist/components/vedic-kundli.d.ts.map +1 -1
- package/dist/components/vedic-kundli.js +1 -1
- package/dist/components/vedic-kundli.js.map +1 -1
- package/dist/components/vedic-planets-table.d.ts +4 -4
- package/dist/components/vedic-planets-table.d.ts.map +1 -1
- package/dist/components/vedic-planets-table.js +1 -1
- package/dist/components/vedic-planets-table.js.map +1 -1
- package/dist/components/western-planets-table.d.ts +4 -4
- package/dist/components/western-planets-table.d.ts.map +1 -1
- package/dist/components/western-planets-table.js +1 -1
- package/dist/components/western-planets-table.js.map +1 -1
- package/dist/components/yoga-list.d.ts +4 -4
- package/dist/components/yoga-list.d.ts.map +1 -1
- package/dist/components/yoga-list.js +1 -1
- package/dist/components/yoga-list.js.map +1 -1
- package/dist/components/zodiac-card.d.ts +4 -4
- package/dist/components/zodiac-card.d.ts.map +1 -1
- package/dist/components/zodiac-card.js +1 -1
- package/dist/components/zodiac-card.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/jsx.d.ts +10 -6
- package/dist/jsx.d.ts.map +1 -1
- package/dist/load-ui.d.ts +1 -1
- package/dist/load-ui.js +1 -1
- package/dist/load-ui.js.map +1 -1
- package/dist/types/types.gen.d.ts +10 -10
- package/package.json +1 -1
package/dist/jsx.d.ts
CHANGED
|
@@ -17,9 +17,9 @@ import type * as React from 'react';
|
|
|
17
17
|
type RoxyElement<A> = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & A;
|
|
18
18
|
/** The attributes every data component takes, from the shared base element. Referenced by the rows below, not exported: the public surface of this module is the tag typings themselves. */
|
|
19
19
|
interface RoxyBaseAttributes {
|
|
20
|
-
/** Endpoint path for built-in self-fetch
|
|
20
|
+
/** 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. */
|
|
21
21
|
"data-endpoint"?: string;
|
|
22
|
-
/** HTTP method for the self-fetch request. Defaults to POST. */
|
|
22
|
+
/** HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint. */
|
|
23
23
|
"method"?: 'GET' | 'POST';
|
|
24
24
|
/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */
|
|
25
25
|
"publishable-key"?: string;
|
|
@@ -27,11 +27,11 @@ interface RoxyBaseAttributes {
|
|
|
27
27
|
"base-url"?: string;
|
|
28
28
|
/** Override the OpenAPI spec URL the self-fetch form introspects. */
|
|
29
29
|
"spec-url"?: string;
|
|
30
|
-
/** Your own backend route, which holds the secret key.
|
|
30
|
+
/** 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. */
|
|
31
31
|
"submit-url"?: string;
|
|
32
32
|
/** 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. */
|
|
33
33
|
"submit-context"?: string;
|
|
34
|
-
/** Where the self-fetch form city search sends its
|
|
34
|
+
/** 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. */
|
|
35
35
|
"location-url"?: string;
|
|
36
36
|
/** Persist the last self-fetch form values in sessionStorage, keyed by endpoint, and prefill the form when the visitor returns. Off by default. */
|
|
37
37
|
"remember"?: boolean;
|
|
@@ -291,10 +291,14 @@ declare module 'react' {
|
|
|
291
291
|
/** `<RoxyLocationSearch>` as a tag. */
|
|
292
292
|
"roxy-location-search": RoxyElement<{
|
|
293
293
|
"api-key"?: string;
|
|
294
|
-
/** Browser-safe publishable key (pk_) the search sends with its request. A secret key is refused client-side and never sent. Leave unset when `endpoint` points at your own server route. */
|
|
294
|
+
/** Browser-safe publishable key (pk_) the search sends with its request. A secret key is refused client-side and never sent. Leave unset when `endpoint` or `submitUrl` points at your own server route. */
|
|
295
295
|
"publishable-key"?: string;
|
|
296
|
-
/** Where the search sends its GET while the visitor types
|
|
296
|
+
/** Where the search sends its GET while the visitor types, as an absolute URL or a page-relative path such as "/api/roxy/location". Wins over submitUrl. Unset with no submitUrl, the search calls the RoxyAPI location search. */
|
|
297
297
|
"endpoint"?: string;
|
|
298
|
+
/** Your own backend route, which holds the secret key. With no endpoint set, each search is POSTed there as `{ path: "/location/search", method: "GET", query: { q, limit } }`, the shape every component request takes there. */
|
|
299
|
+
"submit-url"?: string;
|
|
300
|
+
/** An object of your own, sent to your submitUrl route as `context` beside the search. Passed through untouched and never read. */
|
|
301
|
+
"submit-context"?: string;
|
|
298
302
|
/** Input placeholder. The default renders in the page language; a caller-supplied one is printed as given. */
|
|
299
303
|
"placeholder"?: string;
|
|
300
304
|
/** Initial text in the input, for restoring a previous search. */
|
package/dist/jsx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx.d.ts","sourceRoot":"","sources":["../src/jsx.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,iGAAiG;AACjG,KAAK,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAC5C,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACjC,WAAW,CACX,GACA,CAAC,CAAC;AAEH,4LAA4L;AAC5L,UAAU,kBAAkB;IAC3B,
|
|
1
|
+
{"version":3,"file":"jsx.d.ts","sourceRoot":"","sources":["../src/jsx.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,iGAAiG;AACjG,KAAK,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAC5C,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACjC,WAAW,CACX,GACA,CAAC,CAAC;AAEH,4LAA4L;AAC5L,UAAU,kBAAkB;IAC3B,mWAAmW;IACnW,eAAe,C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E,MAAM,CAAC;gBAC3B,mOAAmO;gBACnO,UAAU,CAAC,EAAE,MAAM,CAAC;gBACpB,kOAAkO;gBAClO,YAAY,CAAC,EAAE,MAAM,CAAC;gBACtB,mIAAmI;gBACnI,gBAAgB,CAAC,EAAE,MAAM,CAAC;gBAC1B,8GAA8G;gBAC9G,aAAa,CAAC,EAAE,MAAM,CAAC;gBACvB,kEAAkE;gBAClE,eAAe,CAAC,EAAE,MAAM,CAAC;aACzB,CAAC,CAAC;YACF,6BAA6B;YAC7B,WAAW,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;SAC7C;KACD;CACD"}
|
package/dist/load-ui.d.ts
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* call wins and every component reuses it.
|
|
23
23
|
*/
|
|
24
24
|
/** The @roxyapi/ui release this wrapper was generated against. The loader defaults to it, so the wrapper version in your lockfile is the runtime you actually get. */
|
|
25
|
-
export declare const ROXY_UI_VERSION = "0.53.
|
|
25
|
+
export declare const ROXY_UI_VERSION = "0.53.3";
|
|
26
26
|
export declare function ensureScriptLoaded(version?: string, baseUrl?: string): Promise<void>;
|
|
27
27
|
/** Every language a label catalogue ships for. English is absent on purpose: the catalogue key IS the English string, so an English page downloads nothing. */
|
|
28
28
|
export declare const ROXY_UI_LOCALES: readonly ["de", "es", "fr", "hi", "pt", "ru", "tr", "zh-Hans", "zh-Hant"];
|
package/dist/load-ui.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var p="0.53.
|
|
1
|
+
var p="0.53.3",l="roxyapi-ui-loader",f="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",L="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",g="/dist/cdn",i=null;function E(r){return!r||r==="latest"?f:`${L}${r}${g}`}function y(r=p,s){return typeof document>"u"?Promise.resolve():i||(i=new Promise((d,n)=>{let o=`${s??E(r)}/roxy-ui.js`,e=document.getElementById(l);if(e){e.dataset.loaded==="true"?d():(e.addEventListener("load",()=>d()),e.addEventListener("error",()=>n(new Error("roxy-ui load failed"))));return}e=document.createElement("script"),e.id=l,e.src=o,e.async=!0,e.crossOrigin="anonymous",e.addEventListener("load",()=>{e.dataset.loaded="true",d()}),e.addEventListener("error",()=>n(new Error("roxy-ui load failed"))),document.head.appendChild(e)}),i)}var x=["de","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"],m=new Map;function v(r,s=p,d){if(typeof document>"u")return Promise.resolve();let n=(r||"").toLowerCase().split("-")[0]??"";if(!x.includes(n))return Promise.resolve();let o=m.get(n);if(o)return o;let e=new Promise((a,u)=>{let c=`${l}-locale-${n}`,t=document.getElementById(c);if(t){t.dataset.loaded==="true"?a():(t.addEventListener("load",()=>a()),t.addEventListener("error",()=>u(new Error(`roxy-ui locale ${n} load failed`))));return}t=document.createElement("script"),t.id=c,t.src=`${d??E(s)}/locales/${n}.js`,t.async=!0,t.crossOrigin="anonymous",t.addEventListener("load",()=>{t.dataset.loaded="true",a()}),t.addEventListener("error",()=>u(new Error(`roxy-ui locale ${n} load failed`))),document.head.appendChild(t)});return m.set(n,e),e}var P=y;export{x as ROXY_UI_LOCALES,p as ROXY_UI_VERSION,P as default,v as ensureLocaleLoaded,y as ensureScriptLoaded};
|
|
2
2
|
//# sourceMappingURL=load-ui.js.map
|
package/dist/load-ui.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/load-ui.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Loads the matching component bundle on first mount. Idempotent across\n * many components on the same page. Skips on the server (no document) so\n * React server components and Next.js SSR work without a flash.\n *\n * {@link ensureLocaleLoaded} is the other half and is OPT-IN: it loads the label\n * catalogue for one language from the same release, so a non-English app calls\n * both. There is one catalogue, shipped by `@roxyapi/ui` and read by every\n * wrapper, so nothing is restated here.\n *\n * Defaults to the EXACT @roxyapi/ui release this wrapper was built against, so\n * `@roxyapi/ui-vue@x.y.z` always runs `@roxyapi/ui@x.y.z` and a lockfile actually\n * pins the runtime: it is a fixed version rather than a moving alias, so a later\n * @roxyapi/ui release cannot change the elements under an existing install.\n *\n * Pass an explicit `version` to override, or 'latest' to opt back into floating.\n *\n * Pass `baseUrl` to serve the bundle from your own origin instead of the CDN, which is\n * what an air-gapped install or a strict Content-Security-Policy needs: copy\n * `node_modules/@roxyapi/ui/dist/cdn/` onto your host and call this once at app entry,\n * before any component mounts. The loader keeps a single shared promise, so the first\n * call wins and every component reuses it.\n */\n/** The @roxyapi/ui release this wrapper was generated against. The loader defaults to it, so the wrapper version in your lockfile is the runtime you actually get. */\nexport const ROXY_UI_VERSION = \"0.53.
|
|
4
|
+
"sourcesContent": ["/**\n * Loads the matching component bundle on first mount. Idempotent across\n * many components on the same page. Skips on the server (no document) so\n * React server components and Next.js SSR work without a flash.\n *\n * {@link ensureLocaleLoaded} is the other half and is OPT-IN: it loads the label\n * catalogue for one language from the same release, so a non-English app calls\n * both. There is one catalogue, shipped by `@roxyapi/ui` and read by every\n * wrapper, so nothing is restated here.\n *\n * Defaults to the EXACT @roxyapi/ui release this wrapper was built against, so\n * `@roxyapi/ui-vue@x.y.z` always runs `@roxyapi/ui@x.y.z` and a lockfile actually\n * pins the runtime: it is a fixed version rather than a moving alias, so a later\n * @roxyapi/ui release cannot change the elements under an existing install.\n *\n * Pass an explicit `version` to override, or 'latest' to opt back into floating.\n *\n * Pass `baseUrl` to serve the bundle from your own origin instead of the CDN, which is\n * what an air-gapped install or a strict Content-Security-Policy needs: copy\n * `node_modules/@roxyapi/ui/dist/cdn/` onto your host and call this once at app entry,\n * before any component mounts. The loader keeps a single shared promise, so the first\n * call wins and every component reuses it.\n */\n/** The @roxyapi/ui release this wrapper was generated against. The loader defaults to it, so the wrapper version in your lockfile is the runtime you actually get. */\nexport const ROXY_UI_VERSION = \"0.53.3\";\n\nconst SCRIPT_ID = 'roxyapi-ui-loader';\nconst CDN_BASE_LATEST = \"https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn\";\nconst CDN_BASE_PREFIX = \"https://cdn.jsdelivr.net/npm/@roxyapi/ui@\";\nconst CDN_BASE_SUFFIX = \"/dist/cdn\";\n\nlet loaded: Promise<void> | null = null;\n\nfunction buildBase(version: string): string {\n\tif (!version || version === 'latest') return CDN_BASE_LATEST;\n\treturn `${CDN_BASE_PREFIX}${version}${CDN_BASE_SUFFIX}`;\n}\n\nexport function ensureScriptLoaded(\n\tversion: string = ROXY_UI_VERSION,\n\tbaseUrl?: string,\n): Promise<void> {\n\tif (typeof document === 'undefined') return Promise.resolve();\n\tif (loaded) return loaded;\n\n\tloaded = new Promise<void>((resolve, reject) => {\n\t\tconst url = `${baseUrl ?? buildBase(version)}/roxy-ui.js`;\n\t\tlet existing = document.getElementById(SCRIPT_ID) as HTMLScriptElement | null;\n\t\tif (existing) {\n\t\t\tif (existing.dataset.loaded === 'true') {\n\t\t\t\tresolve();\n\t\t\t} else {\n\t\t\t\texisting.addEventListener('load', () => resolve());\n\t\t\t\texisting.addEventListener('error', () => reject(new Error('roxy-ui load failed')));\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\texisting = document.createElement('script');\n\t\texisting.id = SCRIPT_ID;\n\t\texisting.src = url;\n\t\texisting.async = true;\n\t\texisting.crossOrigin = 'anonymous';\n\t\texisting.addEventListener('load', () => {\n\t\t\texisting!.dataset.loaded = 'true';\n\t\t\tresolve();\n\t\t});\n\t\texisting.addEventListener('error', () => reject(new Error('roxy-ui load failed')));\n\t\tdocument.head.appendChild(existing);\n\t});\n\treturn loaded;\n}\n\n/** Every language a label catalogue ships for. English is absent on purpose: the catalogue key IS the English string, so an English page downloads nothing. */\nexport const ROXY_UI_LOCALES = [\"de\",\"es\",\"fr\",\"hi\",\"pt\",\"ru\",\"tr\",\"zh-Hans\",\"zh-Hant\"] as const;\n\nconst localesLoaded = new Map<string, Promise<void>>();\n\n/**\n * Load the label catalogue for one language, so the components write their own\n * headings, buttons, empty states and form labels in it.\n *\n * Call it once at app entry, beside `ensureScriptLoaded`. The components read the\n * language from the page (their own `lang` attribute, the nearest ancestor\n * carrying one, or `<html lang>`), so this call supplies the WORDS and the page\n * supplies the CHOICE. Loading a catalogue a page never asks for is harmless.\n *\n * `es-AR`, `es-MX` and `es-419` all resolve to the `es` catalogue, so pass the\n * page tag as it stands. English resolves to nothing at all and is not an error:\n * the catalogue is keyed by the English text, so an English page needs no payload.\n * A language outside `ROXY_UI_LOCALES` resolves the same way rather than appending\n * a script tag that 404s.\n *\n * `version` and `baseUrl` behave exactly as they do for {@link ensureScriptLoaded},\n * and passing the same `baseUrl` to both is what an air-gapped or strict-CSP host\n * needs: copy `node_modules/@roxyapi/ui/dist/cdn/` onto your own origin, which\n * carries `locales/` beside `roxy-ui.js`.\n *\n * @example\n * ```ts\n * import { ensureScriptLoaded, ensureLocaleLoaded } from '@roxyapi/ui-react';\n *\n * ensureScriptLoaded();\n * ensureLocaleLoaded(document.documentElement.lang);\n * ```\n */\nexport function ensureLocaleLoaded(\n\tlang: string,\n\tversion: string = ROXY_UI_VERSION,\n\tbaseUrl?: string,\n): Promise<void> {\n\tif (typeof document === 'undefined') return Promise.resolve();\n\tconst base = (lang || '').toLowerCase().split('-')[0] ?? '';\n\tif (!(ROXY_UI_LOCALES as readonly string[]).includes(base)) {\n\t\treturn Promise.resolve();\n\t}\n\tconst existing = localesLoaded.get(base);\n\tif (existing) return existing;\n\n\tconst pending = new Promise<void>((resolve, reject) => {\n\t\tconst id = `${SCRIPT_ID}-locale-${base}`;\n\t\tlet el = document.getElementById(id) as HTMLScriptElement | null;\n\t\tif (el) {\n\t\t\tif (el.dataset.loaded === 'true') resolve();\n\t\t\telse {\n\t\t\t\tel.addEventListener('load', () => resolve());\n\t\t\t\tel.addEventListener('error', () => reject(new Error(`roxy-ui locale ${base} load failed`)));\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tel = document.createElement('script');\n\t\tel.id = id;\n\t\tel.src = `${baseUrl ?? buildBase(version)}/locales/${base}.js`;\n\t\tel.async = true;\n\t\tel.crossOrigin = 'anonymous';\n\t\tel.addEventListener('load', () => {\n\t\t\tel!.dataset.loaded = 'true';\n\t\t\tresolve();\n\t\t});\n\t\tel.addEventListener('error', () => reject(new Error(`roxy-ui locale ${base} load failed`)));\n\t\tdocument.head.appendChild(el);\n\t});\n\tlocalesLoaded.set(base, pending);\n\treturn pending;\n}\n\n// Default export retained for convenience; matches the named export.\nexport default ensureScriptLoaded;\n// Surfaces the embedded @roxyapi/ui version this build of @roxyapi/ui-react\n// was generated against. Useful for diagnostics; not load-bearing.\n"],
|
|
5
5
|
"mappings": "AAwBO,IAAMA,EAAkB,SAEzBC,EAAY,oBACZC,EAAkB,2DAClBC,EAAkB,4CAClBC,EAAkB,YAEpBC,EAA+B,KAEnC,SAASC,EAAUC,EAAyB,CAC3C,MAAI,CAACA,GAAWA,IAAY,SAAiBL,EACtC,GAAGC,CAAe,GAAGI,CAAO,GAAGH,CAAe,EACtD,CAEO,SAASI,EACfD,EAAkBP,EAClBS,EACgB,CAChB,OAAI,OAAO,SAAa,IAAoB,QAAQ,QAAQ,EACxDJ,IAEJA,EAAS,IAAI,QAAc,CAACK,EAASC,IAAW,CAC/C,IAAMC,EAAM,GAAGH,GAAWH,EAAUC,CAAO,CAAC,cACxCM,EAAW,SAAS,eAAeZ,CAAS,EAChD,GAAIY,EAAU,CACTA,EAAS,QAAQ,SAAW,OAC/BH,EAAQ,GAERG,EAAS,iBAAiB,OAAQ,IAAMH,EAAQ,CAAC,EACjDG,EAAS,iBAAiB,QAAS,IAAMF,EAAO,IAAI,MAAM,qBAAqB,CAAC,CAAC,GAElF,MACD,CACAE,EAAW,SAAS,cAAc,QAAQ,EAC1CA,EAAS,GAAKZ,EACdY,EAAS,IAAMD,EACfC,EAAS,MAAQ,GACjBA,EAAS,YAAc,YACvBA,EAAS,iBAAiB,OAAQ,IAAM,CACvCA,EAAU,QAAQ,OAAS,OAC3BH,EAAQ,CACT,CAA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CAAE,CAC7B,CAAC,EACD,OAAAN,EAAc,IAAIG,EAAMC,CAAO,EACxBA,CACR,CAGA,IAAOG,EAAQd",
|
|
6
6
|
"names": ["ROXY_UI_VERSION", "SCRIPT_ID", "CDN_BASE_LATEST", "CDN_BASE_PREFIX", "CDN_BASE_SUFFIX", "loaded", "buildBase", "version", "ensureScriptLoaded", "baseUrl", "resolve", "reject", "url", "existing", "ROXY_UI_LOCALES", "localesLoaded", "ensureLocaleLoaded", "lang", "base", "pending", "id", "el", "load_ui_default"]
|
|
7
7
|
}
|
|
@@ -32,7 +32,7 @@ export type NatalChartResponse = {
|
|
|
32
32
|
*/
|
|
33
33
|
planets: Array<{
|
|
34
34
|
/**
|
|
35
|
-
* Planet or point name (Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto, North Node, South Node, Chiron, Black Moon Lilith). Always English, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees. The lunar nodes follow the request nodeType, which defaults to the true (osculating) node; pass "mean" for the smoothed node. The two differ by up to about 1.8 degrees and no other body is affected.
|
|
35
|
+
* Planet or point name (Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto, North Node, South Node, Chiron, Black Moon Lilith). Always English, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees. The lunar nodes follow the request nodeType, which defaults to the true (osculating) node; pass "mean" for the smoothed node. The two differ by up to about 1.8 degrees and no other body is affected. Black Moon Lilith is always the mean lunar apogee, whatever nodeType says. POST /lilith returns the mean and the true (osculating) apogee side by side, each labelled by its variant.
|
|
36
36
|
*/
|
|
37
37
|
name: string;
|
|
38
38
|
/**
|
|
@@ -848,7 +848,7 @@ export type TransitsResponse = {
|
|
|
848
848
|
*/
|
|
849
849
|
transitPlanets: Array<{
|
|
850
850
|
/**
|
|
851
|
-
* Planet name (Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto, North Node, South Node, Chiron, Black Moon Lilith). Always English, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees. The lunar nodes follow the request nodeType, which defaults to the true (osculating) node; pass "mean" for the smoothed node. The two differ by up to about 1.8 degrees and no other body is affected.
|
|
851
|
+
* Planet name (Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto, North Node, South Node, Chiron, Black Moon Lilith). Always English, whatever the lang parameter says, so it stays safe to compare against in code. Use nameLocalized for anything a reader sees. The lunar nodes follow the request nodeType, which defaults to the true (osculating) node; pass "mean" for the smoothed node. The two differ by up to about 1.8 degrees and no other body is affected. Black Moon Lilith is always the mean lunar apogee, whatever nodeType says. POST /lilith returns the mean and the true (osculating) apogee side by side, each labelled by its variant.
|
|
852
852
|
*/
|
|
853
853
|
name: string;
|
|
854
854
|
/**
|
|
@@ -990,7 +990,7 @@ export type TransitsRequest = {
|
|
|
990
990
|
*/
|
|
991
991
|
time?: string;
|
|
992
992
|
/**
|
|
993
|
-
* Transit timezone: decimal hours from UTC OR IANA name (e.g. "America/New_York"). IANA resolved to the DST-correct offset for the transit date. Defaults to 0 (UTC).
|
|
993
|
+
* Transit timezone: decimal hours from UTC OR IANA name (e.g. "America/New_York"). IANA resolved to the DST-correct offset for the transit date. When `date` or `time` is omitted, the current moment is read in this zone, so `transitDate` and `transitTime` come back as its local clock. Defaults to 0 (UTC).
|
|
994
994
|
*/
|
|
995
995
|
timezone?: number | string;
|
|
996
996
|
/**
|
|
@@ -5550,7 +5550,7 @@ export type KpSublordChangesResponse = {
|
|
|
5550
5550
|
*/
|
|
5551
5551
|
date: string;
|
|
5552
5552
|
/**
|
|
5553
|
-
* Sublord transition time (HH:MM, 24-hour): the instant is found to the second and shown to the minute
|
|
5553
|
+
* Sublord transition time (HH:MM, 24-hour): the instant is found to the second and shown rounded to the nearest minute. Adjusted to requested timezone.
|
|
5554
5554
|
*/
|
|
5555
5555
|
time: string;
|
|
5556
5556
|
/**
|
|
@@ -5635,7 +5635,7 @@ export type KpRasiChangesResponse = {
|
|
|
5635
5635
|
*/
|
|
5636
5636
|
date: string;
|
|
5637
5637
|
/**
|
|
5638
|
-
* Ingress time (HH:MM, 24-hour): the instant is found to the second and shown to the minute
|
|
5638
|
+
* Ingress time (HH:MM, 24-hour): the instant is found to the second and shown rounded to the nearest minute. Adjusted to requested timezone.
|
|
5639
5639
|
*/
|
|
5640
5640
|
time: string;
|
|
5641
5641
|
/**
|
|
@@ -9492,7 +9492,7 @@ export type GetPlanetaryPositionsResponses = {
|
|
|
9492
9492
|
*/
|
|
9493
9493
|
planets: Array<{
|
|
9494
9494
|
/**
|
|
9495
|
-
* Planet name (Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto, North Node, South Node, Chiron, Black Moon Lilith). The lunar nodes follow the request nodeType, which defaults to the true (osculating) node; pass "mean" for the smoothed node. The two differ by up to about 1.8 degrees and no other body is affected.
|
|
9495
|
+
* Planet name (Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto, North Node, South Node, Chiron, Black Moon Lilith). The lunar nodes follow the request nodeType, which defaults to the true (osculating) node; pass "mean" for the smoothed node. The two differ by up to about 1.8 degrees and no other body is affected. Black Moon Lilith is always the mean lunar apogee, whatever nodeType says. POST /lilith returns the mean and the true (osculating) apogee side by side, each labelled by its variant.
|
|
9496
9496
|
*/
|
|
9497
9497
|
name: string;
|
|
9498
9498
|
/**
|
|
@@ -9777,7 +9777,7 @@ export type GetCurrentMoonPhaseData = {
|
|
|
9777
9777
|
*/
|
|
9778
9778
|
time?: string;
|
|
9779
9779
|
/**
|
|
9780
|
-
* IANA name (e.g. "America/New_York", "Europe/London"), decimal hours (e.g. -5 for EST, 1 for CET), or a fixed UTC offset (e.g. "-05:00"). IANA resolved to the DST-correct offset for the given date. Defaults to 0 (UTC).
|
|
9780
|
+
* IANA name (e.g. "America/New_York", "Europe/London"), decimal hours (e.g. -5 for EST, 1 for CET), or a fixed UTC offset (e.g. "-05:00"). IANA resolved to the DST-correct offset for the given date. With `date` omitted, today is the date in this zone. Defaults to 0 (UTC).
|
|
9781
9781
|
*/
|
|
9782
9782
|
timezone?: string;
|
|
9783
9783
|
};
|
|
@@ -71582,7 +71582,7 @@ export type SearchCitiesResponses = {
|
|
|
71582
71582
|
*/
|
|
71583
71583
|
utcOffset: number;
|
|
71584
71584
|
/**
|
|
71585
|
-
* Population estimate for the place.
|
|
71585
|
+
* Population estimate for the place. Weighs the ranking, so among places matching a query alike the larger leads, while a full name typed still outranks a namesake many times its size. 0 for a place with no published figure, as most villages are.
|
|
71586
71586
|
*/
|
|
71587
71587
|
population: number;
|
|
71588
71588
|
}>;
|
|
@@ -71760,7 +71760,7 @@ export type ListCountriesResponses = {
|
|
|
71760
71760
|
*/
|
|
71761
71761
|
iso3: string;
|
|
71762
71762
|
/**
|
|
71763
|
-
* Number of searchable places in this country,
|
|
71763
|
+
* Number of searchable places in this country, every town and village included. Useful for showing coverage in a UI or sizing a dependent city dropdown.
|
|
71764
71764
|
*/
|
|
71765
71765
|
cityCount: number;
|
|
71766
71766
|
}>;
|
|
@@ -71963,7 +71963,7 @@ export type GetCitiesByCountryResponses = {
|
|
|
71963
71963
|
*/
|
|
71964
71964
|
utcOffset: number;
|
|
71965
71965
|
/**
|
|
71966
|
-
* Population estimate for the place.
|
|
71966
|
+
* Population estimate for the place. Weighs the ranking, so among places matching a query alike the larger leads, while a full name typed still outranks a namesake many times its size. 0 for a place with no published figure, as most villages are.
|
|
71967
71967
|
*/
|
|
71968
71968
|
population: number;
|
|
71969
71969
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roxyapi/ui-react",
|
|
3
|
-
"version": "0.53.
|
|
3
|
+
"version": "0.53.3",
|
|
4
4
|
"description": "React components for the RoxyAPI catalog. Drop-in charts, tables, cards, forms for astrology, tarot, numerology, biorhythm, I Ching, and more. One key, beautiful in 30 minutes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|