@roxyapi/ui-react 0.51.3 → 0.53.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.
Files changed (163) hide show
  1. package/README.md +1 -1
  2. package/dist/components/almanac-day.js +1 -1
  3. package/dist/components/almanac-day.js.map +1 -1
  4. package/dist/components/angel-number-card.js +1 -1
  5. package/dist/components/angel-number-card.js.map +1 -1
  6. package/dist/components/angel-number-lookup.js +1 -1
  7. package/dist/components/angel-number-lookup.js.map +1 -1
  8. package/dist/components/arudha-padas.js +1 -1
  9. package/dist/components/arudha-padas.js.map +1 -1
  10. package/dist/components/ashtakavarga-grid.js +1 -1
  11. package/dist/components/ashtakavarga-grid.js.map +1 -1
  12. package/dist/components/aspects-table.js +1 -1
  13. package/dist/components/aspects-table.js.map +1 -1
  14. package/dist/components/astrocartography-map.js +1 -1
  15. package/dist/components/astrocartography-map.js.map +1 -1
  16. package/dist/components/bazi-chart.js +1 -1
  17. package/dist/components/bazi-chart.js.map +1 -1
  18. package/dist/components/bhav-chalit-table.js +1 -1
  19. package/dist/components/bhav-chalit-table.js.map +1 -1
  20. package/dist/components/bhava-bala-table.js +1 -1
  21. package/dist/components/bhava-bala-table.js.map +1 -1
  22. package/dist/components/biorhythm-chart.js +1 -1
  23. package/dist/components/biorhythm-chart.js.map +1 -1
  24. package/dist/components/bodygraph.js +1 -1
  25. package/dist/components/bodygraph.js.map +1 -1
  26. package/dist/components/chara-karakas.js +1 -1
  27. package/dist/components/chara-karakas.js.map +1 -1
  28. package/dist/components/choghadiya-grid.js +1 -1
  29. package/dist/components/choghadiya-grid.js.map +1 -1
  30. package/dist/components/compatibility-card.js +1 -1
  31. package/dist/components/compatibility-card.js.map +1 -1
  32. package/dist/components/compound-number.js +1 -1
  33. package/dist/components/compound-number.js.map +1 -1
  34. package/dist/components/crystal-card.js +1 -1
  35. package/dist/components/crystal-card.js.map +1 -1
  36. package/dist/components/crystal-grid.js +1 -1
  37. package/dist/components/crystal-grid.js.map +1 -1
  38. package/dist/components/dasha-timeline.js +1 -1
  39. package/dist/components/dasha-timeline.js.map +1 -1
  40. package/dist/components/data.js +1 -1
  41. package/dist/components/data.js.map +1 -1
  42. package/dist/components/divisional-chart.js +1 -1
  43. package/dist/components/divisional-chart.js.map +1 -1
  44. package/dist/components/dosha-card.js +1 -1
  45. package/dist/components/dosha-card.js.map +1 -1
  46. package/dist/components/dosha-constitution.js +1 -1
  47. package/dist/components/dosha-constitution.js.map +1 -1
  48. package/dist/components/dream-card.js +1 -1
  49. package/dist/components/dream-card.js.map +1 -1
  50. package/dist/components/dream-search.js +1 -1
  51. package/dist/components/dream-search.js.map +1 -1
  52. package/dist/components/endpoint-form.js +1 -1
  53. package/dist/components/endpoint-form.js.map +1 -1
  54. package/dist/components/ephemeris-table.js +1 -1
  55. package/dist/components/ephemeris-table.js.map +1 -1
  56. package/dist/components/fixed-stars.js +1 -1
  57. package/dist/components/fixed-stars.js.map +1 -1
  58. package/dist/components/flying-star-chart.js +1 -1
  59. package/dist/components/flying-star-chart.js.map +1 -1
  60. package/dist/components/forecast-digest.js +1 -1
  61. package/dist/components/forecast-digest.js.map +1 -1
  62. package/dist/components/forecast-timeline.js +1 -1
  63. package/dist/components/forecast-timeline.js.map +1 -1
  64. package/dist/components/gematria.js +1 -1
  65. package/dist/components/gematria.js.map +1 -1
  66. package/dist/components/gochara-table.js +1 -1
  67. package/dist/components/gochara-table.js.map +1 -1
  68. package/dist/components/guna-milan.js +1 -1
  69. package/dist/components/guna-milan.js.map +1 -1
  70. package/dist/components/hd-connection.js +1 -1
  71. package/dist/components/hd-connection.js.map +1 -1
  72. package/dist/components/hd-penta.js +1 -1
  73. package/dist/components/hd-penta.js.map +1 -1
  74. package/dist/components/hd-type-card.js +1 -1
  75. package/dist/components/hd-type-card.js.map +1 -1
  76. package/dist/components/hd-variables.js +1 -1
  77. package/dist/components/hd-variables.js.map +1 -1
  78. package/dist/components/heliacal-table.js +1 -1
  79. package/dist/components/heliacal-table.js.map +1 -1
  80. package/dist/components/hexagram.js +1 -1
  81. package/dist/components/hexagram.js.map +1 -1
  82. package/dist/components/hora-table.js +1 -1
  83. package/dist/components/hora-table.js.map +1 -1
  84. package/dist/components/horoscope-card.js +1 -1
  85. package/dist/components/horoscope-card.js.map +1 -1
  86. package/dist/components/kp-chart.js +1 -1
  87. package/dist/components/kp-chart.js.map +1 -1
  88. package/dist/components/kp-finance-card.js +1 -1
  89. package/dist/components/kp-finance-card.js.map +1 -1
  90. package/dist/components/kp-planets-table.js +1 -1
  91. package/dist/components/kp-planets-table.js.map +1 -1
  92. package/dist/components/kp-ruling-planets.js +1 -1
  93. package/dist/components/kp-ruling-planets.js.map +1 -1
  94. package/dist/components/kua-card.js +1 -1
  95. package/dist/components/kua-card.js.map +1 -1
  96. package/dist/components/local-space-compass.js +1 -1
  97. package/dist/components/local-space-compass.js.map +1 -1
  98. package/dist/components/location-search.js +1 -1
  99. package/dist/components/location-search.js.map +1 -1
  100. package/dist/components/luck-pillars.js +1 -1
  101. package/dist/components/luck-pillars.js.map +1 -1
  102. package/dist/components/mayan-day-sign.js +1 -1
  103. package/dist/components/mayan-day-sign.js.map +1 -1
  104. package/dist/components/moon-phase.js +1 -1
  105. package/dist/components/moon-phase.js.map +1 -1
  106. package/dist/components/nakshatra-card.js +1 -1
  107. package/dist/components/nakshatra-card.js.map +1 -1
  108. package/dist/components/natal-chart.js +1 -1
  109. package/dist/components/natal-chart.js.map +1 -1
  110. package/dist/components/numerology-card.js +1 -1
  111. package/dist/components/numerology-card.js.map +1 -1
  112. package/dist/components/panchang-table.js +1 -1
  113. package/dist/components/panchang-table.js.map +1 -1
  114. package/dist/components/positions-table.js +1 -1
  115. package/dist/components/positions-table.js.map +1 -1
  116. package/dist/components/profection-card.js +1 -1
  117. package/dist/components/profection-card.js.map +1 -1
  118. package/dist/components/reference-card.js +1 -1
  119. package/dist/components/reference-card.js.map +1 -1
  120. package/dist/components/relocation-wheel.js +1 -1
  121. package/dist/components/relocation-wheel.js.map +1 -1
  122. package/dist/components/shadbala-table.js +1 -1
  123. package/dist/components/shadbala-table.js.map +1 -1
  124. package/dist/components/synastry-chart.js +1 -1
  125. package/dist/components/synastry-chart.js.map +1 -1
  126. package/dist/components/tarot-card.js +1 -1
  127. package/dist/components/tarot-card.js.map +1 -1
  128. package/dist/components/tarot-catalog.js +1 -1
  129. package/dist/components/tarot-catalog.js.map +1 -1
  130. package/dist/components/tarot-spread.js +1 -1
  131. package/dist/components/tarot-spread.js.map +1 -1
  132. package/dist/components/transit-wheel.js +1 -1
  133. package/dist/components/transit-wheel.js.map +1 -1
  134. package/dist/components/transits-table.js +1 -1
  135. package/dist/components/transits-table.js.map +1 -1
  136. package/dist/components/upagraha-table.js +1 -1
  137. package/dist/components/upagraha-table.js.map +1 -1
  138. package/dist/components/vastu-mandala.js +1 -1
  139. package/dist/components/vastu-mandala.js.map +1 -1
  140. package/dist/components/vedic-aspects.js +1 -1
  141. package/dist/components/vedic-aspects.js.map +1 -1
  142. package/dist/components/vedic-daily.js +1 -1
  143. package/dist/components/vedic-daily.js.map +1 -1
  144. package/dist/components/vedic-kundli.js +1 -1
  145. package/dist/components/vedic-kundli.js.map +1 -1
  146. package/dist/components/vedic-planets-table.js +1 -1
  147. package/dist/components/vedic-planets-table.js.map +1 -1
  148. package/dist/components/western-planets-table.js +1 -1
  149. package/dist/components/western-planets-table.js.map +1 -1
  150. package/dist/components/yoga-list.js +1 -1
  151. package/dist/components/yoga-list.js.map +1 -1
  152. package/dist/components/zodiac-card.js +1 -1
  153. package/dist/components/zodiac-card.js.map +1 -1
  154. package/dist/index.cjs +1 -1
  155. package/dist/index.cjs.map +1 -1
  156. package/dist/index.js +1 -1
  157. package/dist/index.js.map +1 -1
  158. package/dist/load-ui.d.ts +1 -1
  159. package/dist/load-ui.js +1 -1
  160. package/dist/load-ui.js.map +1 -1
  161. package/dist/types/types.gen.d.ts +17 -9
  162. package/dist/types/types.gen.d.ts.map +1 -1
  163. package/package.json +1 -1
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.51.3";
25
+ export declare const ROXY_UI_VERSION = "0.53.0";
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.51.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};
1
+ var p="0.53.0",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
@@ -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.51.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"],
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.0\";\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,CAAC,EACDG,EAAS,iBAAiB,QAAS,IAAMF,EAAO,IAAI,MAAM,qBAAqB,CAAC,CAAC,EACjF,SAAS,KAAK,YAAYE,CAAQ,CACnC,CAAC,EACMR,EACR,CAGO,IAAMS,EAAkB,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,UAAU,SAAS,EAEhFC,EAAgB,IAAI,IA8BnB,SAASC,EACfC,EACAV,EAAkBP,EAClBS,EACgB,CAChB,GAAI,OAAO,SAAa,IAAa,OAAO,QAAQ,QAAQ,EAC5D,IAAMS,GAAQD,GAAQ,IAAI,YAAY,EAAE,MAAM,GAAG,EAAE,CAAC,GAAK,GACzD,GAAI,CAAEH,EAAsC,SAASI,CAAI,EACxD,OAAO,QAAQ,QAAQ,EAExB,IAAML,EAAWE,EAAc,IAAIG,CAAI,EACvC,GAAIL,EAAU,OAAOA,EAErB,IAAMM,EAAU,IAAI,QAAc,CAACT,EAASC,IAAW,CACtD,IAAMS,EAAK,GAAGnB,CAAS,WAAWiB,CAAI,GAClCG,EAAK,SAAS,eAAeD,CAAE,EACnC,GAAIC,EAAI,CACHA,EAAG,QAAQ,SAAW,OAAQX,EAAQ,GAEzCW,EAAG,iBAAiB,OAAQ,IAAMX,EAAQ,CAAC,EAC3CW,EAAG,iBAAiB,QAAS,IAAMV,EAAO,IAAI,MAAM,kBAAkBO,CAAI,cAAc,CAAC,CAAC,GAE3F,MACD,CACAG,EAAK,SAAS,cAAc,QAAQ,EACpCA,EAAG,GAAKD,EACRC,EAAG,IAAM,GAAGZ,GAAWH,EAAUC,CAAO,CAAC,YAAYW,CAAI,MACzDG,EAAG,MAAQ,GACXA,EAAG,YAAc,YACjBA,EAAG,iBAAiB,OAAQ,IAAM,CACjCA,EAAI,QAAQ,OAAS,OACrBX,EAAQ,CACT,CAAC,EACDW,EAAG,iBAAiB,QAAS,IAAMV,EAAO,IAAI,MAAM,kBAAkBO,CAAI,cAAc,CAAC,CAAC,EAC1F,SAAS,KAAK,YAAYG,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
  }
@@ -32505,6 +32505,14 @@ export type CalculateConnectionResponses = {
32505
32505
  * Connection chart with per-channel dynamics, combined centers, definition, and a dynamic count
32506
32506
  */
32507
32507
  200: {
32508
+ /**
32509
+ * All unique active Human Design gate numbers for person A, in ascending order, including hanging gates that do not complete a channel. Use with personBGates to draw every activation on the combined bodygraph. Gate numbers are machine identifiers and do not change with lang.
32510
+ */
32511
+ personAGates?: Array<number>;
32512
+ /**
32513
+ * All unique active Human Design gate numbers for person B, in ascending order, including hanging gates that do not complete a channel. Use with personAGates to draw every activation on the combined bodygraph. Gate numbers are machine identifiers and do not change with lang.
32514
+ */
32515
+ personBGates?: Array<number>;
32508
32516
  /**
32509
32517
  * Total number of connected channels between the two people. Equals the length of channels and the sum of the summary counts.
32510
32518
  */
@@ -55177,7 +55185,7 @@ export type GetNumberMeaningResponse = GetNumberMeaningResponses[keyof GetNumber
55177
55185
  export type GetDailyNumberData = {
55178
55186
  body?: {
55179
55187
  /**
55180
- * Optional seed for reproducible readings. Same seed + same date = same number every time. Pass any unique identifier (userId, email hash, session token). Omit for anonymous daily readings.
55188
+ * Optional seed for reproducible readings. Same seed + same date = same number every time. Pass any unique identifier (userId, email hash, session token) to give each user their own number for the day. Without a seed every caller receives the same shared number of the day.
55181
55189
  */
55182
55190
  seed?: string;
55183
55191
  /**
@@ -60162,7 +60170,7 @@ export type DrawCardsResponse = DrawCardsResponses[keyof DrawCardsResponses];
60162
60170
  export type GetDailyCardData = {
60163
60171
  body?: {
60164
60172
  /**
60165
- * Optional seed for reproducible readings. Same seed + same date = same card every time. Pass any unique identifier (userId, email hash, session token). Omit for anonymous daily readings.
60173
+ * Optional seed for reproducible readings. Same seed + same date = same card every time. Pass any unique identifier (userId, email hash, session token) to give each user their own card for the day. Without a seed every caller receives the same shared card of the day.
60166
60174
  */
60167
60175
  seed?: string;
60168
60176
  /**
@@ -62588,7 +62596,7 @@ export type GetPhasesResponse = GetPhasesResponses[keyof GetPhasesResponses];
62588
62596
  export type GetDailyBiorhythmData = {
62589
62597
  body?: {
62590
62598
  /**
62591
- * Optional seed for reproducible readings. Same seed + same date = same reading every time. Pass any unique identifier (userId, email hash, session token). Omit for anonymous daily readings.
62599
+ * Optional seed for reproducible readings. Same seed + same date = same reading every time. Pass any unique identifier (userId, email hash, session token) to give each user their own reading for the day. Without a seed every caller receives the same shared reading of the day.
62592
62600
  */
62593
62601
  seed?: string;
62594
62602
  /**
@@ -65754,7 +65762,7 @@ export type ListGunasResponse = ListGunasResponses[keyof ListGunasResponses];
65754
65762
  export type GetDailyHexagramData = {
65755
65763
  body?: {
65756
65764
  /**
65757
- * Optional seed for reproducible readings. Same seed + same date = same hexagram every time. Pass any unique identifier (userId, email hash, session token). Omit for anonymous daily readings.
65765
+ * Optional seed for reproducible readings. Same seed + same date = same hexagram every time. Pass any unique identifier (userId, email hash, session token) to give each user their own hexagram for the day. Without a seed every caller receives the same shared hexagram of the day.
65758
65766
  */
65759
65767
  seed?: string;
65760
65768
  /**
@@ -65979,7 +65987,7 @@ export type GetDailyHexagramResponse = GetDailyHexagramResponses[keyof GetDailyH
65979
65987
  export type CastDailyReadingData = {
65980
65988
  body?: {
65981
65989
  /**
65982
- * Optional seed for reproducible readings. Same seed + same date = same hexagram every time. Pass any unique identifier (userId, email hash, session token). Omit for anonymous daily readings.
65990
+ * Optional seed for reproducible readings. Same seed + same date = same hexagram every time. Pass any unique identifier (userId, email hash, session token) to give each user their own hexagram for the day. Without a seed every caller receives the same shared hexagram of the day.
65983
65991
  */
65984
65992
  seed?: string;
65985
65993
  /**
@@ -68547,7 +68555,7 @@ export type GetCrystalPairingsResponse = GetCrystalPairingsResponses[keyof GetCr
68547
68555
  export type GetDailyCrystalData = {
68548
68556
  body?: {
68549
68557
  /**
68550
- * Optional seed for reproducible readings. Same seed + same date = same crystal every time. Pass any unique identifier (userId, email hash, session token). Omit for anonymous daily readings.
68558
+ * Optional seed for reproducible readings. Same seed + same date = same crystal every time. Pass any unique identifier (userId, email hash, session token) to give each user their own crystal for the day. Without a seed every caller receives the same shared crystal of the day.
68551
68559
  */
68552
68560
  seed?: string;
68553
68561
  /**
@@ -70260,7 +70268,7 @@ export type GetDreamSymbolResponse = GetDreamSymbolResponses[keyof GetDreamSymbo
70260
70268
  export type GetDailyDreamSymbolData = {
70261
70269
  body?: {
70262
70270
  /**
70263
- * Optional seed for reproducible readings. Same seed + same date = same symbol every time. Pass any unique identifier (userId, email hash, session token). Omit for anonymous daily readings.
70271
+ * Optional seed for reproducible readings. Same seed + same date = same symbol every time. Pass any unique identifier (userId, email hash, session token) to give each user their own symbol for the day. Without a seed every caller receives the same shared symbol of the day.
70264
70272
  */
70265
70273
  seed?: string;
70266
70274
  /**
@@ -71155,7 +71163,7 @@ export type AnalyzeNumberSequenceResponse = AnalyzeNumberSequenceResponses[keyof
71155
71163
  export type GetDailyAngelNumberData = {
71156
71164
  body?: {
71157
71165
  /**
71158
- * Optional seed for reproducible readings. Same seed + same date = same angel number every time. Pass any unique identifier (userId, email hash, session token). Omit for anonymous daily readings.
71166
+ * Optional seed for reproducible readings. Same seed + same date = same angel number every time. Pass any unique identifier (userId, email hash, session token) to give each user their own angel number for the day. Without a seed every caller receives the same shared angel number of the day.
71159
71167
  */
71160
71168
  seed?: string;
71161
71169
  /**
@@ -72106,7 +72114,7 @@ export type GetUsageStatsResponses = {
72106
72114
  */
72107
72115
  plan: string;
72108
72116
  /**
72109
- * Billable requests counted against the current calendar month. The quota window is the UTC calendar month and resets on the 1st at 12:00 AM UTC, never on your renewal date, so an annual plan refills every month and a plan bought mid month still refills on the 1st. Read from the durable request ledger, which can trail the live limiter by up to 5 minutes; for the exact live position read the X-RateLimit-Used header on any response, including this one. Cached responses still count.
72117
+ * Billable requests counted against the current calendar month. The quota window is the UTC calendar month and resets on the 1st at 12:00 AM UTC, never on your renewal date, so an annual plan refills every month and a plan bought mid month still refills on the 1st. Read from the durable request ledger, which can trail the live limiter by up to 5 minutes; for the exact live position read the X-RateLimit-Used header on any response, including this one. Cached responses still count; a request that failed on our side with a 5xx never does.
72110
72118
  */
72111
72119
  usedThisMonth: number;
72112
72120
  /**