@roxyapi/ui 0.21.1 → 0.22.0
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 +2 -0
- package/components-catalog.json +123 -123
- package/dist/cdn/components/endpoint-form.js +4 -4
- package/dist/cdn/components/endpoint-form.js.map +3 -3
- package/dist/cdn/roxy-ui.js +37 -37
- package/dist/cdn/roxy-ui.js.map +3 -3
- package/dist/components/endpoint-form.d.ts +35 -2
- package/dist/components/endpoint-form.d.ts.map +1 -1
- package/dist/components/endpoint-form.js +1 -1
- package/dist/components/endpoint-form.js.map +3 -3
- package/dist/index.cjs +42 -42
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +51 -51
- package/dist/index.js.map +3 -3
- package/dist/schemas/post--astrology-relocation-chart.json +1 -1
- package/dist/schemas/post--tarot-spreads-career.json +1 -1
- package/dist/types/types.gen.d.ts +5 -5
- package/dist/utils/field-schema.d.ts +33 -0
- package/dist/utils/field-schema.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/endpoint-form.ts +75 -12
- package/src/types/types.gen.ts +5 -5
- package/src/utils/field-schema.ts +57 -1
- package/src/version.ts +1 -1
package/AGENTS.md
CHANGED
|
@@ -141,6 +141,8 @@ Every snippet below follows this rule.
|
|
|
141
141
|
|
|
142
142
|
Every chart endpoint (Western, Vedic, KP, synastry, transits, dasha, dosha, panchang) needs `latitude`, `longitude`, and `timezone`. Never ask the user to type coordinates. Call `/location/search` first, then feed the result into the chart endpoint.
|
|
143
143
|
|
|
144
|
+
Two endpoints take TWO locations, and they name them differently. `POST /astrology/synastry`, `/astrology/composite-chart`, `/vedic-astrology/compatibility` and `/human-design/connection` nest a full location per person (`person1` / `person2`, or `personA` / `personB`). `POST /astrology/relocation-chart` instead takes `birthLatitude`, `birthLongitude`, `relocationLatitude`, `relocationLongitude` at the top level with a single `timezone`, which is the BIRTH timezone: relocating does not move the birth moment. `<roxy-endpoint-form>` renders a separate city search for each location automatically, so self-fetch mode needs no extra work.
|
|
145
|
+
|
|
144
146
|
```ts
|
|
145
147
|
// Right
|
|
146
148
|
const { data: cities } = await roxy.location.searchCities({ query: { q: 'Mumbai' } });
|