@roxyapi/ui-vue 0.15.1 → 0.17.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 (226) hide show
  1. package/AGENTS.md +9 -3
  2. package/README.md +7 -4
  3. package/dist/components/angel-number-card.d.ts +24 -0
  4. package/dist/components/angel-number-card.d.ts.map +1 -1
  5. package/dist/components/angel-number-card.js +1 -1
  6. package/dist/components/angel-number-card.js.map +2 -2
  7. package/dist/components/angel-number-lookup.d.ts +24 -0
  8. package/dist/components/angel-number-lookup.d.ts.map +1 -1
  9. package/dist/components/angel-number-lookup.js +1 -1
  10. package/dist/components/angel-number-lookup.js.map +2 -2
  11. package/dist/components/ashtakavarga-grid.d.ts +24 -0
  12. package/dist/components/ashtakavarga-grid.d.ts.map +1 -1
  13. package/dist/components/ashtakavarga-grid.js +1 -1
  14. package/dist/components/ashtakavarga-grid.js.map +2 -2
  15. package/dist/components/aspects-table.d.ts +24 -0
  16. package/dist/components/aspects-table.d.ts.map +1 -1
  17. package/dist/components/aspects-table.js +1 -1
  18. package/dist/components/aspects-table.js.map +2 -2
  19. package/dist/components/astrocartography-map.d.ts +24 -0
  20. package/dist/components/astrocartography-map.d.ts.map +1 -1
  21. package/dist/components/astrocartography-map.js +1 -1
  22. package/dist/components/astrocartography-map.js.map +2 -2
  23. package/dist/components/biorhythm-chart.d.ts +24 -0
  24. package/dist/components/biorhythm-chart.d.ts.map +1 -1
  25. package/dist/components/biorhythm-chart.js +1 -1
  26. package/dist/components/biorhythm-chart.js.map +2 -2
  27. package/dist/components/bodygraph.d.ts +24 -0
  28. package/dist/components/bodygraph.d.ts.map +1 -1
  29. package/dist/components/bodygraph.js +1 -1
  30. package/dist/components/bodygraph.js.map +2 -2
  31. package/dist/components/choghadiya-grid.d.ts +24 -0
  32. package/dist/components/choghadiya-grid.d.ts.map +1 -1
  33. package/dist/components/choghadiya-grid.js +1 -1
  34. package/dist/components/choghadiya-grid.js.map +2 -2
  35. package/dist/components/compatibility-card.d.ts +24 -0
  36. package/dist/components/compatibility-card.d.ts.map +1 -1
  37. package/dist/components/compatibility-card.js +1 -1
  38. package/dist/components/compatibility-card.js.map +2 -2
  39. package/dist/components/crystal-card.d.ts +24 -0
  40. package/dist/components/crystal-card.d.ts.map +1 -1
  41. package/dist/components/crystal-card.js +1 -1
  42. package/dist/components/crystal-card.js.map +2 -2
  43. package/dist/components/crystal-grid.d.ts +24 -0
  44. package/dist/components/crystal-grid.d.ts.map +1 -1
  45. package/dist/components/crystal-grid.js +1 -1
  46. package/dist/components/crystal-grid.js.map +2 -2
  47. package/dist/components/dasha-timeline.d.ts +24 -0
  48. package/dist/components/dasha-timeline.d.ts.map +1 -1
  49. package/dist/components/dasha-timeline.js +1 -1
  50. package/dist/components/dasha-timeline.js.map +2 -2
  51. package/dist/components/data.d.ts +24 -0
  52. package/dist/components/data.d.ts.map +1 -1
  53. package/dist/components/data.js +1 -1
  54. package/dist/components/data.js.map +2 -2
  55. package/dist/components/divisional-chart.d.ts +24 -0
  56. package/dist/components/divisional-chart.d.ts.map +1 -1
  57. package/dist/components/divisional-chart.js +1 -1
  58. package/dist/components/divisional-chart.js.map +2 -2
  59. package/dist/components/dosha-card.d.ts +24 -0
  60. package/dist/components/dosha-card.d.ts.map +1 -1
  61. package/dist/components/dosha-card.js +1 -1
  62. package/dist/components/dosha-card.js.map +2 -2
  63. package/dist/components/dream-card.d.ts +24 -0
  64. package/dist/components/dream-card.d.ts.map +1 -1
  65. package/dist/components/dream-card.js +1 -1
  66. package/dist/components/dream-card.js.map +2 -2
  67. package/dist/components/dream-search.d.ts +24 -0
  68. package/dist/components/dream-search.d.ts.map +1 -1
  69. package/dist/components/dream-search.js +1 -1
  70. package/dist/components/dream-search.js.map +2 -2
  71. package/dist/components/endpoint-form.d.ts +2 -0
  72. package/dist/components/endpoint-form.d.ts.map +1 -1
  73. package/dist/components/endpoint-form.js +1 -1
  74. package/dist/components/endpoint-form.js.map +1 -1
  75. package/dist/components/fixed-stars.d.ts +24 -0
  76. package/dist/components/fixed-stars.d.ts.map +1 -1
  77. package/dist/components/fixed-stars.js +1 -1
  78. package/dist/components/fixed-stars.js.map +2 -2
  79. package/dist/components/forecast-digest.d.ts +24 -0
  80. package/dist/components/forecast-digest.d.ts.map +1 -1
  81. package/dist/components/forecast-digest.js +1 -1
  82. package/dist/components/forecast-digest.js.map +2 -2
  83. package/dist/components/forecast-timeline.d.ts +24 -0
  84. package/dist/components/forecast-timeline.d.ts.map +1 -1
  85. package/dist/components/forecast-timeline.js +1 -1
  86. package/dist/components/forecast-timeline.js.map +2 -2
  87. package/dist/components/guna-milan.d.ts +24 -0
  88. package/dist/components/guna-milan.d.ts.map +1 -1
  89. package/dist/components/guna-milan.js +1 -1
  90. package/dist/components/guna-milan.js.map +2 -2
  91. package/dist/components/hd-connection.d.ts +24 -0
  92. package/dist/components/hd-connection.d.ts.map +1 -1
  93. package/dist/components/hd-connection.js +1 -1
  94. package/dist/components/hd-connection.js.map +2 -2
  95. package/dist/components/hd-penta.d.ts +24 -0
  96. package/dist/components/hd-penta.d.ts.map +1 -1
  97. package/dist/components/hd-penta.js +1 -1
  98. package/dist/components/hd-penta.js.map +2 -2
  99. package/dist/components/hd-type-card.d.ts +24 -0
  100. package/dist/components/hd-type-card.d.ts.map +1 -1
  101. package/dist/components/hd-type-card.js +1 -1
  102. package/dist/components/hd-type-card.js.map +2 -2
  103. package/dist/components/hd-variables.d.ts +24 -0
  104. package/dist/components/hd-variables.d.ts.map +1 -1
  105. package/dist/components/hd-variables.js +1 -1
  106. package/dist/components/hd-variables.js.map +2 -2
  107. package/dist/components/hexagram.d.ts +24 -0
  108. package/dist/components/hexagram.d.ts.map +1 -1
  109. package/dist/components/hexagram.js +1 -1
  110. package/dist/components/hexagram.js.map +2 -2
  111. package/dist/components/hora-table.d.ts +24 -0
  112. package/dist/components/hora-table.d.ts.map +1 -1
  113. package/dist/components/hora-table.js +1 -1
  114. package/dist/components/hora-table.js.map +2 -2
  115. package/dist/components/horoscope-card.d.ts +24 -0
  116. package/dist/components/horoscope-card.d.ts.map +1 -1
  117. package/dist/components/horoscope-card.js +1 -1
  118. package/dist/components/horoscope-card.js.map +2 -2
  119. package/dist/components/kp-chart.d.ts +24 -0
  120. package/dist/components/kp-chart.d.ts.map +1 -1
  121. package/dist/components/kp-chart.js +1 -1
  122. package/dist/components/kp-chart.js.map +2 -2
  123. package/dist/components/kp-planets-table.d.ts +24 -0
  124. package/dist/components/kp-planets-table.d.ts.map +1 -1
  125. package/dist/components/kp-planets-table.js +1 -1
  126. package/dist/components/kp-planets-table.js.map +2 -2
  127. package/dist/components/kp-ruling-planets.d.ts +24 -0
  128. package/dist/components/kp-ruling-planets.d.ts.map +1 -1
  129. package/dist/components/kp-ruling-planets.js +1 -1
  130. package/dist/components/kp-ruling-planets.js.map +2 -2
  131. package/dist/components/local-space-compass.d.ts +24 -0
  132. package/dist/components/local-space-compass.d.ts.map +1 -1
  133. package/dist/components/local-space-compass.js +1 -1
  134. package/dist/components/local-space-compass.js.map +2 -2
  135. package/dist/components/location-search.js +1 -1
  136. package/dist/components/location-search.js.map +1 -1
  137. package/dist/components/moon-phase.d.ts +24 -0
  138. package/dist/components/moon-phase.d.ts.map +1 -1
  139. package/dist/components/moon-phase.js +1 -1
  140. package/dist/components/moon-phase.js.map +2 -2
  141. package/dist/components/nakshatra-card.d.ts +24 -0
  142. package/dist/components/nakshatra-card.d.ts.map +1 -1
  143. package/dist/components/nakshatra-card.js +1 -1
  144. package/dist/components/nakshatra-card.js.map +2 -2
  145. package/dist/components/natal-chart.d.ts +24 -0
  146. package/dist/components/natal-chart.d.ts.map +1 -1
  147. package/dist/components/natal-chart.js +1 -1
  148. package/dist/components/natal-chart.js.map +2 -2
  149. package/dist/components/numerology-card.d.ts +24 -0
  150. package/dist/components/numerology-card.d.ts.map +1 -1
  151. package/dist/components/numerology-card.js +1 -1
  152. package/dist/components/numerology-card.js.map +2 -2
  153. package/dist/components/panchang-table.d.ts +24 -0
  154. package/dist/components/panchang-table.d.ts.map +1 -1
  155. package/dist/components/panchang-table.js +1 -1
  156. package/dist/components/panchang-table.js.map +2 -2
  157. package/dist/components/positions-table.d.ts +24 -0
  158. package/dist/components/positions-table.d.ts.map +1 -1
  159. package/dist/components/positions-table.js +1 -1
  160. package/dist/components/positions-table.js.map +2 -2
  161. package/dist/components/profection-card.d.ts +24 -0
  162. package/dist/components/profection-card.d.ts.map +1 -1
  163. package/dist/components/profection-card.js +1 -1
  164. package/dist/components/profection-card.js.map +2 -2
  165. package/dist/components/reference-card.d.ts +24 -0
  166. package/dist/components/reference-card.d.ts.map +1 -1
  167. package/dist/components/reference-card.js +1 -1
  168. package/dist/components/reference-card.js.map +2 -2
  169. package/dist/components/relocation-wheel.d.ts +24 -0
  170. package/dist/components/relocation-wheel.d.ts.map +1 -1
  171. package/dist/components/relocation-wheel.js +1 -1
  172. package/dist/components/relocation-wheel.js.map +2 -2
  173. package/dist/components/shadbala-table.d.ts +24 -0
  174. package/dist/components/shadbala-table.d.ts.map +1 -1
  175. package/dist/components/shadbala-table.js +1 -1
  176. package/dist/components/shadbala-table.js.map +2 -2
  177. package/dist/components/synastry-chart.d.ts +24 -0
  178. package/dist/components/synastry-chart.d.ts.map +1 -1
  179. package/dist/components/synastry-chart.js +1 -1
  180. package/dist/components/synastry-chart.js.map +2 -2
  181. package/dist/components/tarot-card.d.ts +24 -0
  182. package/dist/components/tarot-card.d.ts.map +1 -1
  183. package/dist/components/tarot-card.js +1 -1
  184. package/dist/components/tarot-card.js.map +2 -2
  185. package/dist/components/tarot-catalog.d.ts +24 -0
  186. package/dist/components/tarot-catalog.d.ts.map +1 -1
  187. package/dist/components/tarot-catalog.js +1 -1
  188. package/dist/components/tarot-catalog.js.map +2 -2
  189. package/dist/components/tarot-spread.d.ts +24 -0
  190. package/dist/components/tarot-spread.d.ts.map +1 -1
  191. package/dist/components/tarot-spread.js +1 -1
  192. package/dist/components/tarot-spread.js.map +2 -2
  193. package/dist/components/transits-table.d.ts +24 -0
  194. package/dist/components/transits-table.d.ts.map +1 -1
  195. package/dist/components/transits-table.js +1 -1
  196. package/dist/components/transits-table.js.map +2 -2
  197. package/dist/components/vedic-aspects.d.ts +24 -0
  198. package/dist/components/vedic-aspects.d.ts.map +1 -1
  199. package/dist/components/vedic-aspects.js +1 -1
  200. package/dist/components/vedic-aspects.js.map +2 -2
  201. package/dist/components/vedic-kundli.d.ts +24 -0
  202. package/dist/components/vedic-kundli.d.ts.map +1 -1
  203. package/dist/components/vedic-kundli.js +1 -1
  204. package/dist/components/vedic-kundli.js.map +2 -2
  205. package/dist/components/vedic-planets-table.d.ts +24 -0
  206. package/dist/components/vedic-planets-table.d.ts.map +1 -1
  207. package/dist/components/vedic-planets-table.js +1 -1
  208. package/dist/components/vedic-planets-table.js.map +2 -2
  209. package/dist/components/western-planets-table.d.ts +24 -0
  210. package/dist/components/western-planets-table.d.ts.map +1 -1
  211. package/dist/components/western-planets-table.js +1 -1
  212. package/dist/components/western-planets-table.js.map +2 -2
  213. package/dist/components/yoga-list.d.ts +24 -0
  214. package/dist/components/yoga-list.d.ts.map +1 -1
  215. package/dist/components/yoga-list.js +1 -1
  216. package/dist/components/yoga-list.js.map +2 -2
  217. package/dist/index.cjs +1 -1
  218. package/dist/index.cjs.map +2 -2
  219. package/dist/index.js +1 -1
  220. package/dist/index.js.map +3 -3
  221. package/dist/load-ui.d.ts +1 -1
  222. package/dist/load-ui.js +1 -1
  223. package/dist/load-ui.js.map +1 -1
  224. package/dist/types/types.gen.d.ts +4686 -4642
  225. package/dist/types/types.gen.d.ts.map +1 -1
  226. package/package.json +1 -1
@@ -13,6 +13,12 @@ export interface RoxyAstrocartographyMapProps {
13
13
  baseUrl?: string;
14
14
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
15
15
  specUrl?: string;
16
+ /** Response language for self-fetch, forwarded to the API `lang` query parameter (en, tr, de, es, hi, pt, fr, ru). The form never shows a language field; the site owner sets it here. Defaults to English. */
17
+ lang?: string;
18
+ /** Override the self-fetch form submit-button label. Empty derives an outcome-first label from the endpoint (Get reading, Generate, Compare, Cast). */
19
+ submitLabel?: string;
20
+ /** Render a small "Spiritual data by RoxyAPI" credit under a self-fetch result, linking back to RoxyAPI. Off by default; set any value to enable, or "off" to force it off. Never shown in controlled mode. */
21
+ attribution?: string;
16
22
  }
17
23
  export declare const RoxyAstrocartographyMap: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
18
24
  data: {
@@ -33,6 +39,15 @@ export declare const RoxyAstrocartographyMap: import("vue").DefineComponent<impo
33
39
  specUrl: {
34
40
  type: PropType<RoxyAstrocartographyMapProps["specUrl"]>;
35
41
  };
42
+ lang: {
43
+ type: PropType<RoxyAstrocartographyMapProps["lang"]>;
44
+ };
45
+ submitLabel: {
46
+ type: PropType<RoxyAstrocartographyMapProps["submitLabel"]>;
47
+ };
48
+ attribution: {
49
+ type: PropType<RoxyAstrocartographyMapProps["attribution"]>;
50
+ };
36
51
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
37
52
  [key: string]: any;
38
53
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -54,5 +69,14 @@ export declare const RoxyAstrocartographyMap: import("vue").DefineComponent<impo
54
69
  specUrl: {
55
70
  type: PropType<RoxyAstrocartographyMapProps["specUrl"]>;
56
71
  };
72
+ lang: {
73
+ type: PropType<RoxyAstrocartographyMapProps["lang"]>;
74
+ };
75
+ submitLabel: {
76
+ type: PropType<RoxyAstrocartographyMapProps["submitLabel"]>;
77
+ };
78
+ attribution: {
79
+ type: PropType<RoxyAstrocartographyMapProps["attribution"]>;
80
+ };
57
81
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
82
  //# sourceMappingURL=astrocartography-map.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"astrocartography-map.d.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AR5D,QAAQ,CAAC,4BAA4B,CAAC,MAAM,CAAC,CAAC;;;cAC1C,QAAQ,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;;;cACpD,QAAQ,CAAC,4BAA4B,CAAC,QAAQ,CAAC,CAAC;;;cACxC,QAAQ,CAAC,4BAA4B,CAAC,gBAAgB,CAAC,CAAC;;;cAC/D,QAAQ,CAAC,4BAA4B,CAAC,SAAS,CAAC,CAAC;;;cACjD,QAAQ,CAAC,4BAA4B,CAAC,SAAS,CAAC,CAAC;;;cACpD,QAAQ,CAAC,4BAA4B,CAAC,MAAM,CAAC,CAAC;;;cACvC,QAAQ,CAAC,4BAA4B,CAAC,aAAa,CAAC,CAAC;;;cACrD,QAAQ,CAAC,4BAA4B,CAAC,aAAa,CAAC,CAAC;;iGAkCpF,CAAC"}
@@ -1,2 +1,2 @@
1
- import{defineComponent as g,h as d,onMounted as m,ref as h}from"vue";var l="0.15.1",i="roxyapi-ui-loader",u="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",y="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",c="/dist/cdn",n=null;function f(e){return!e||e==="latest"?u:`${y}${e}${c}`}function s(e=l,o){return typeof document>"u"?Promise.resolve():n||(n=new Promise((r,a)=>{let p=`${o??f(e)}/roxy-ui.js`,t=document.getElementById(i);if(t){t.dataset.loaded==="true"?r():(t.addEventListener("load",()=>r()),t.addEventListener("error",()=>a(new Error("roxy-ui load failed"))));return}t=document.createElement("script"),t.id=i,t.src=p,t.async=!0,t.crossOrigin="anonymous",t.addEventListener("load",()=>{t.dataset.loaded="true",r()}),t.addEventListener("error",()=>a(new Error("roxy-ui load failed"))),document.head.appendChild(t)}),n)}var E=g({name:"RoxyAstrocartographyMap",props:{data:{type:Object},endpoint:{type:String},method:{type:String},publishableKey:{type:String},baseUrl:{type:String},specUrl:{type:String}},setup(e){let o=h(null);return m(()=>{s().catch(r=>{o.value=r instanceof Error?r:new Error(String(r))})}),()=>{if(o.value)return d("div",{role:"alert"},`Roxy UI script load failed: ${o.value.message}`);let r={};return e.data!==void 0&&(r[".data"]=e.data),e.endpoint!==void 0&&(r[".endpoint"]=e.endpoint),e.method!==void 0&&(r[".method"]=e.method),e.publishableKey!==void 0&&(r[".publishableKey"]=e.publishableKey),e.baseUrl!==void 0&&(r[".baseUrl"]=e.baseUrl),e.specUrl!==void 0&&(r[".specUrl"]=e.specUrl),d("roxy-astrocartography-map",r)}}});export{E as RoxyAstrocartographyMap};
1
+ import{defineComponent as f,h as d,onMounted as b,ref as m}from"vue";var l="0.17.0",i="roxyapi-ui-loader",u="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",y="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",c="/dist/cdn",a=null;function g(t){return!t||t==="latest"?u:`${y}${t}${c}`}function s(t=l,n){return typeof document>"u"?Promise.resolve():a||(a=new Promise((e,o)=>{let p=`${n??g(t)}/roxy-ui.js`,r=document.getElementById(i);if(r){r.dataset.loaded==="true"?e():(r.addEventListener("load",()=>e()),r.addEventListener("error",()=>o(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=i,r.src=p,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",e()}),r.addEventListener("error",()=>o(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),a)}var E=f({name:"RoxyAstrocartographyMap",props:{data:{type:Object},endpoint:{type:String},method:{type:String},publishableKey:{type:String},baseUrl:{type:String},specUrl:{type:String},lang:{type:String},submitLabel:{type:String},attribution:{type:String}},setup(t){let n=m(null);return b(()=>{s().catch(e=>{n.value=e instanceof Error?e:new Error(String(e))})}),()=>{if(n.value)return d("div",{role:"alert"},`Roxy UI script load failed: ${n.value.message}`);let e={};return t.data!==void 0&&(e[".data"]=t.data),t.endpoint!==void 0&&(e[".endpoint"]=t.endpoint),t.method!==void 0&&(e[".method"]=t.method),t.publishableKey!==void 0&&(e[".publishableKey"]=t.publishableKey),t.baseUrl!==void 0&&(e[".baseUrl"]=t.baseUrl),t.specUrl!==void 0&&(e[".specUrl"]=t.specUrl),t.lang!==void 0&&(e[".lang"]=t.lang),t.submitLabel!==void 0&&(e[".submitLabel"]=t.submitLabel),t.attribution!==void 0&&(e[".attribution"]=t.attribution),d("roxy-astrocartography-map",e)}}});export{E as RoxyAstrocartographyMap};
2
2
  //# sourceMappingURL=astrocartography-map.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/components/astrocartography-map.ts", "../../src/load-ui.ts"],
4
- "sourcesContent": ["import { defineComponent, h, onMounted, type PropType, ref } from 'vue';\nimport { ensureScriptLoaded } from '../load-ui.js';\nimport type { AstrocartographyResponse } from '../types/index.js';\n\nexport interface RoxyAstrocartographyMapProps {\n\t/** Spec-derived response payload. Pass the raw RoxyAPI response. */\n\tdata?: AstrocartographyResponse;\n\t/** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. \"astrology/natal-chart\". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */\n\tendpoint?: string;\n\t/** HTTP method for the self-fetch request. Defaults to POST. */\n\tmethod?: 'GET' | 'POST';\n\t/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */\n\tpublishableKey?: string;\n\t/** Override the API origin for self-hosted or proxied deployments. */\n\tbaseUrl?: string;\n\t/** Override the OpenAPI spec URL the self-fetch form introspects. */\n\tspecUrl?: string;\n}\n\nexport const RoxyAstrocartographyMap = defineComponent({\n\tname: 'RoxyAstrocartographyMap',\n\tprops: {\n\t\tdata: { type: Object as PropType<RoxyAstrocartographyMapProps['data']> },\n\t\tendpoint: { type: String as PropType<RoxyAstrocartographyMapProps['endpoint']> },\n\t\tmethod: { type: String as PropType<RoxyAstrocartographyMapProps['method']> },\n\t\tpublishableKey: { type: String as PropType<RoxyAstrocartographyMapProps['publishableKey']> },\n\t\tbaseUrl: { type: String as PropType<RoxyAstrocartographyMapProps['baseUrl']> },\n\t\tspecUrl: { type: String as PropType<RoxyAstrocartographyMapProps['specUrl']> },\n\t},\n\tsetup(props) {\n\t\tconst loadError = ref<Error | null>(null);\n\n\t\tonMounted(() => {\n\t\t\tensureScriptLoaded().catch((err: unknown) => {\n\t\t\t\tloadError.value = err instanceof Error ? err : new Error(String(err));\n\t\t\t});\n\t\t});\n\n\t\treturn () => {\n\t\t\tif (loadError.value) {\n\t\t\t\treturn h(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ role: 'alert' },\n\t\t\t\t\t`Roxy UI script load failed: ${loadError.value.message}`,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst elementProps: Record<string, unknown> = {};\n\t\t\tif (props.data !== undefined) elementProps['.data'] = props.data;\n\t\t\tif (props.endpoint !== undefined) elementProps['.endpoint'] = props.endpoint;\n\t\t\tif (props.method !== undefined) elementProps['.method'] = props.method;\n\t\t\tif (props.publishableKey !== undefined) elementProps['.publishableKey'] = props.publishableKey;\n\t\t\tif (props.baseUrl !== undefined) elementProps['.baseUrl'] = props.baseUrl;\n\t\t\tif (props.specUrl !== undefined) elementProps['.specUrl'] = props.specUrl;\n\n\t\t\treturn h('roxy-astrocartography-map', elementProps);\n\t\t};\n\t},\n});\n", "/**\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 * Nuxt and Vue server rendering work without a flash.\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 used to default to '@latest', which meant a pinned wrapper\n * silently picked up whatever the CDN was serving, and a new @roxyapi/ui release\n * changed the elements under every existing install with no lockfile change.\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.15.1\";\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// Default export retained for convenience; matches the named export.\nexport default ensureScriptLoaded;\n// Surfaces the embedded @roxyapi/ui version this build of @roxyapi/ui-vue\n// was generated against. Useful for diagnostics; not load-bearing.\n"],
5
- "mappings": "AAAA,OAAS,mBAAAA,EAAiB,KAAAC,EAAG,aAAAC,EAA0B,OAAAC,MAAW,MCoB3D,IAAMC,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,CD/CO,IAAMS,EAA0BC,EAAgB,CACtD,KAAM,0BACN,MAAO,CACN,KAAM,CAAE,KAAM,MAAyD,EACvE,SAAU,CAAE,KAAM,MAA6D,EAC/E,OAAQ,CAAE,KAAM,MAA2D,EAC3E,eAAgB,CAAE,KAAM,MAAmE,EAC3F,QAAS,CAAE,KAAM,MAA4D,EAC7E,QAAS,CAAE,KAAM,MAA4D,CAC9E,EACA,MAAMC,EAAO,CACZ,IAAMC,EAAYC,EAAkB,IAAI,EAExC,OAAAC,EAAU,IAAM,CACfC,EAAmB,EAAE,MAAOC,GAAiB,CAC5CJ,EAAU,MAAQI,aAAe,MAAQA,EAAM,IAAI,MAAM,OAAOA,CAAG,CAAC,CACrE,CAAC,CACF,CAAC,EAEM,IAAM,CACZ,GAAIJ,EAAU,MACb,OAAOK,EACN,MACA,CAAE,KAAM,OAAQ,EAChB,+BAA+BL,EAAU,MAAM,OAAO,EACvD,EAGD,IAAMM,EAAwC,CAAC,EAC/C,OAAIP,EAAM,OAAS,SAAWO,EAAa,OAAO,EAAIP,EAAM,MACxDA,EAAM,WAAa,SAAWO,EAAa,WAAW,EAAIP,EAAM,UAChEA,EAAM,SAAW,SAAWO,EAAa,SAAS,EAAIP,EAAM,QAC5DA,EAAM,iBAAmB,SAAWO,EAAa,iBAAiB,EAAIP,EAAM,gBAC5EA,EAAM,UAAY,SAAWO,EAAa,UAAU,EAAIP,EAAM,SAC9DA,EAAM,UAAY,SAAWO,EAAa,UAAU,EAAIP,EAAM,SAE3DM,EAAE,4BAA6BC,CAAY,CACnD,CACD,CACD,CAAC",
4
+ "sourcesContent": ["import { defineComponent, h, onMounted, type PropType, ref } from 'vue';\nimport { ensureScriptLoaded } from '../load-ui.js';\nimport type { AstrocartographyResponse } from '../types/index.js';\n\nexport interface RoxyAstrocartographyMapProps {\n\t/** Spec-derived response payload. Pass the raw RoxyAPI response. */\n\tdata?: AstrocartographyResponse;\n\t/** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. \"astrology/natal-chart\". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */\n\tendpoint?: string;\n\t/** HTTP method for the self-fetch request. Defaults to POST. */\n\tmethod?: 'GET' | 'POST';\n\t/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */\n\tpublishableKey?: string;\n\t/** Override the API origin for self-hosted or proxied deployments. */\n\tbaseUrl?: string;\n\t/** Override the OpenAPI spec URL the self-fetch form introspects. */\n\tspecUrl?: string;\n\t/** Response language for self-fetch, forwarded to the API `lang` query parameter (en, tr, de, es, hi, pt, fr, ru). The form never shows a language field; the site owner sets it here. Defaults to English. */\n\tlang?: string;\n\t/** Override the self-fetch form submit-button label. Empty derives an outcome-first label from the endpoint (Get reading, Generate, Compare, Cast). */\n\tsubmitLabel?: string;\n\t/** Render a small \"Spiritual data by RoxyAPI\" credit under a self-fetch result, linking back to RoxyAPI. Off by default; set any value to enable, or \"off\" to force it off. Never shown in controlled mode. */\n\tattribution?: string;\n}\n\nexport const RoxyAstrocartographyMap = defineComponent({\n\tname: 'RoxyAstrocartographyMap',\n\tprops: {\n\t\tdata: { type: Object as PropType<RoxyAstrocartographyMapProps['data']> },\n\t\tendpoint: { type: String as PropType<RoxyAstrocartographyMapProps['endpoint']> },\n\t\tmethod: { type: String as PropType<RoxyAstrocartographyMapProps['method']> },\n\t\tpublishableKey: { type: String as PropType<RoxyAstrocartographyMapProps['publishableKey']> },\n\t\tbaseUrl: { type: String as PropType<RoxyAstrocartographyMapProps['baseUrl']> },\n\t\tspecUrl: { type: String as PropType<RoxyAstrocartographyMapProps['specUrl']> },\n\t\tlang: { type: String as PropType<RoxyAstrocartographyMapProps['lang']> },\n\t\tsubmitLabel: { type: String as PropType<RoxyAstrocartographyMapProps['submitLabel']> },\n\t\tattribution: { type: String as PropType<RoxyAstrocartographyMapProps['attribution']> },\n\t},\n\tsetup(props) {\n\t\tconst loadError = ref<Error | null>(null);\n\n\t\tonMounted(() => {\n\t\t\tensureScriptLoaded().catch((err: unknown) => {\n\t\t\t\tloadError.value = err instanceof Error ? err : new Error(String(err));\n\t\t\t});\n\t\t});\n\n\t\treturn () => {\n\t\t\tif (loadError.value) {\n\t\t\t\treturn h(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ role: 'alert' },\n\t\t\t\t\t`Roxy UI script load failed: ${loadError.value.message}`,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst elementProps: Record<string, unknown> = {};\n\t\t\tif (props.data !== undefined) elementProps['.data'] = props.data;\n\t\t\tif (props.endpoint !== undefined) elementProps['.endpoint'] = props.endpoint;\n\t\t\tif (props.method !== undefined) elementProps['.method'] = props.method;\n\t\t\tif (props.publishableKey !== undefined) elementProps['.publishableKey'] = props.publishableKey;\n\t\t\tif (props.baseUrl !== undefined) elementProps['.baseUrl'] = props.baseUrl;\n\t\t\tif (props.specUrl !== undefined) elementProps['.specUrl'] = props.specUrl;\n\t\t\tif (props.lang !== undefined) elementProps['.lang'] = props.lang;\n\t\t\tif (props.submitLabel !== undefined) elementProps['.submitLabel'] = props.submitLabel;\n\t\t\tif (props.attribution !== undefined) elementProps['.attribution'] = props.attribution;\n\n\t\t\treturn h('roxy-astrocartography-map', elementProps);\n\t\t};\n\t},\n});\n", "/**\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 * Nuxt and Vue server rendering work without a flash.\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 used to default to '@latest', which meant a pinned wrapper\n * silently picked up whatever the CDN was serving, and a new @roxyapi/ui release\n * changed the elements under every existing install with no lockfile change.\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.17.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// Default export retained for convenience; matches the named export.\nexport default ensureScriptLoaded;\n// Surfaces the embedded @roxyapi/ui version this build of @roxyapi/ui-vue\n// was generated against. Useful for diag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,KAAM,MAAmE,EAC3F,QAAS,CAAE,KAAM,MAA4D,EAC7E,QAAS,CAAE,KAAM,MAA4D,EAC7E,KAAM,CAAE,KAAM,MAAyD,EACvE,YAAa,CAAE,KAAM,MAAgE,EACrF,YAAa,CAAE,KAAM,MAAgE,CACtF,EACA,MAAMC,EAAO,CACZ,IAAMC,EAAYC,EAAkB,IAAI,EAExC,OAAAC,EAAU,IAAM,CACfC,EAAmB,EAAE,MAAOC,GAAiB,CAC5CJ,EAAU,MAAQI,aAAe,MAAQA,EAAM,IAAI,MAAM,OAAOA,CAAG,CAAC,CACrE,CAAC,CACF,CAAC,EAEM,IAAM,CACZ,GAAIJ,EAAU,MACb,OAAOK,EACN,MACA,CAAE,KAAM,OAAQ,EAChB,+BAA+BL,EAAU,MAAM,OAAO,EACvD,EAGD,IAAMM,EAAwC,CAAC,EAC/C,OAAIP,EAAM,OAAS,SAAWO,EAAa,OAAO,EAAIP,EAAM,MACxDA,EAAM,WAAa,SAAWO,EAAa,WAAW,EAAIP,EAAM,UAChEA,EAAM,SAAW,SAAWO,EAAa,SAAS,EAAIP,EAAM,QAC5DA,EAAM,iBAAmB,SAAWO,EAAa,iBAAiB,EAAIP,EAAM,gBAC5EA,EAAM,UAAY,SAAWO,EAAa,UAAU,EAAIP,EAAM,SAC9DA,EAAM,UAAY,SAAWO,EAAa,UAAU,EAAIP,EAAM,SAC9DA,EAAM,OAAS,SAAWO,EAAa,OAAO,EAAIP,EAAM,MACxDA,EAAM,cAAgB,SAAWO,EAAa,cAAc,EAAIP,EAAM,aACtEA,EAAM,cAAgB,SAAWO,EAAa,cAAc,EAAIP,EAAM,aAEnEM,EAAE,4BAA6BC,CAAY,CACnD,CACD,CACD,CAAC",
6
6
  "names": ["defineComponent", "h", "onMounted", "ref", "ROXY_UI_VERSION", "SCRIPT_ID", "CDN_BASE_LATEST", "CDN_BASE_PREFIX", "CDN_BASE_SUFFIX", "loaded", "buildBase", "version", "ensureScriptLoaded", "baseUrl", "resolve", "reject", "url", "existing", "RoxyAstrocartographyMap", "defineComponent", "props", "loadError", "ref", "onMounted", "ensureScriptLoaded", "err", "h", "elementProps"]
7
7
  }
@@ -15,6 +15,12 @@ export interface RoxyBiorhythmChartProps {
15
15
  baseUrl?: string;
16
16
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
17
17
  specUrl?: string;
18
+ /** Response language for self-fetch, forwarded to the API `lang` query parameter (en, tr, de, es, hi, pt, fr, ru). The form never shows a language field; the site owner sets it here. Defaults to English. */
19
+ lang?: string;
20
+ /** Override the self-fetch form submit-button label. Empty derives an outcome-first label from the endpoint (Get reading, Generate, Compare, Cast). */
21
+ submitLabel?: string;
22
+ /** Render a small "Spiritual data by RoxyAPI" credit under a self-fetch result, linking back to RoxyAPI. Off by default; set any value to enable, or "off" to force it off. Never shown in controlled mode. */
23
+ attribution?: string;
18
24
  }
19
25
  export declare const RoxyBiorhythmChart: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
20
26
  data: {
@@ -38,6 +44,15 @@ export declare const RoxyBiorhythmChart: import("vue").DefineComponent<import("v
38
44
  specUrl: {
39
45
  type: PropType<RoxyBiorhythmChartProps["specUrl"]>;
40
46
  };
47
+ lang: {
48
+ type: PropType<RoxyBiorhythmChartProps["lang"]>;
49
+ };
50
+ submitLabel: {
51
+ type: PropType<RoxyBiorhythmChartProps["submitLabel"]>;
52
+ };
53
+ attribution: {
54
+ type: PropType<RoxyBiorhythmChartProps["attribution"]>;
55
+ };
41
56
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
42
57
  [key: string]: any;
43
58
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -62,5 +77,14 @@ export declare const RoxyBiorhythmChart: import("vue").DefineComponent<import("v
62
77
  specUrl: {
63
78
  type: PropType<RoxyBiorhythmChartProps["specUrl"]>;
64
79
  };
80
+ lang: {
81
+ type: PropType<RoxyBiorhythmChartProps["lang"]>;
82
+ };
83
+ submitLabel: {
84
+ type: PropType<RoxyBiorhythmChartProps["submitLabel"]>;
85
+ };
86
+ attribution: {
87
+ type: PropType<RoxyBiorhythmChartProps["attribution"]>;
88
+ };
65
89
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
66
90
  //# sourceMappingURL=biorhythm-chart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"biorhythm-chart.d.ts","sourceRoot":"","sources":["../../src/components/biorhythm-chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,QAAQ,EAAO,MAAM,KAAK,CAAC;AAExE,OAAO,KAAK,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEjH,MAAM,WAAW,uBAAuB;IACvC,oEAAoE;IACpE,IAAI,CAAC,EAAE,yBAAyB,GAAG,mBAAmB,GAAG,uBAAuB,CAAC;IACjF,+GAA+G;IAC/G,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,eAAe,CAAC;IAC9C,mPAAmP;IACnP,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,6GAA6G;IAC7G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,kBAAkB;;cAGL,QAAQ,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC;;;cACzC,QAAQ,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC;;;cACrC,QAAQ,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;;;cAC/C,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC;;;cACnC,QAAQ,CAAC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AAC,CAAC;;;cAChD,QAAQ,CAAC,uBAAuB,CAAC,aAAa,CAAC,CAAC;;iGAmC/E,CAAC"}
@@ -1,2 +1,2 @@
1
- import{defineComponent as c,h as s,onMounted as f,ref as x}from"vue";var y="0.15.1",a="roxyapi-ui-loader",p="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",u="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",h="/dist/cdn",o=null;function m(e){return!e||e==="latest"?p:`${u}${e}${h}`}function d(e=y,n){return typeof document>"u"?Promise.resolve():o||(o=new Promise((t,i)=>{let l=`${n??m(e)}/roxy-ui.js`,r=document.getElementById(a);if(r){r.dataset.loaded==="true"?t():(r.addEventListener("load",()=>t()),r.addEventListener("error",()=>i(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=a,r.src=l,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",t()}),r.addEventListener("error",()=>i(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),o)}var g=c({name:"RoxyBiorhythmChart",props:{data:{type:Object},mode:{type:String},endpoint:{type:String},method:{type:String},publishableKey:{type:String},baseUrl:{type:String},specUrl:{type:String}},setup(e){let n=x(null);return f(()=>{d().catch(t=>{n.value=t instanceof Error?t:new Error(String(t))})}),()=>{if(n.value)return s("div",{role:"alert"},`Roxy UI script load failed: ${n.value.message}`);let t={};return e.data!==void 0&&(t[".data"]=e.data),e.mode!==void 0&&(t[".mode"]=e.mode),e.endpoint!==void 0&&(t[".endpoint"]=e.endpoint),e.method!==void 0&&(t[".method"]=e.method),e.publishableKey!==void 0&&(t[".publishableKey"]=e.publishableKey),e.baseUrl!==void 0&&(t[".baseUrl"]=e.baseUrl),e.specUrl!==void 0&&(t[".specUrl"]=e.specUrl),s("roxy-biorhythm-chart",t)}}});export{g as RoxyBiorhythmChart};
1
+ import{defineComponent as c,h as s,onMounted as f,ref as b}from"vue";var y="0.17.0",a="roxyapi-ui-loader",u="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",h="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",p="/dist/cdn",n=null;function m(e){return!e||e==="latest"?u:`${h}${e}${p}`}function d(e=y,i){return typeof document>"u"?Promise.resolve():n||(n=new Promise((t,o)=>{let l=`${i??m(e)}/roxy-ui.js`,r=document.getElementById(a);if(r){r.dataset.loaded==="true"?t():(r.addEventListener("load",()=>t()),r.addEventListener("error",()=>o(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=a,r.src=l,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",t()}),r.addEventListener("error",()=>o(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),n)}var R=c({name:"RoxyBiorhythmChart",props:{data:{type:Object},mode:{type:String},endpoint:{type:String},method:{type:String},publishableKey:{type:String},baseUrl:{type:String},specUrl:{type:String},lang:{type:String},submitLabel:{type:String},attribution:{type:String}},setup(e){let i=b(null);return f(()=>{d().catch(t=>{i.value=t instanceof Error?t:new Error(String(t))})}),()=>{if(i.value)return s("div",{role:"alert"},`Roxy UI script load failed: ${i.value.message}`);let t={};return e.data!==void 0&&(t[".data"]=e.data),e.mode!==void 0&&(t[".mode"]=e.mode),e.endpoint!==void 0&&(t[".endpoint"]=e.endpoint),e.method!==void 0&&(t[".method"]=e.method),e.publishableKey!==void 0&&(t[".publishableKey"]=e.publishableKey),e.baseUrl!==void 0&&(t[".baseUrl"]=e.baseUrl),e.specUrl!==void 0&&(t[".specUrl"]=e.specUrl),e.lang!==void 0&&(t[".lang"]=e.lang),e.submitLabel!==void 0&&(t[".submitLabel"]=e.submitLabel),e.attribution!==void 0&&(t[".attribution"]=e.attribution),s("roxy-biorhythm-chart",t)}}});export{R as RoxyBiorhythmChart};
2
2
  //# sourceMappingURL=biorhythm-chart.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/components/biorhythm-chart.ts", "../../src/load-ui.ts"],
4
- "sourcesContent": ["import { defineComponent, h, onMounted, type PropType, ref } from 'vue';\nimport { ensureScriptLoaded } from '../load-ui.js';\nimport type { GetCriticalDaysResponse, GetDailyBiorhythmResponse, GetForecastResponse } from '../types/index.js';\n\nexport interface RoxyBiorhythmChartProps {\n\t/** Spec-derived response payload. Pass the raw RoxyAPI response. */\n\tdata?: GetDailyBiorhythmResponse | GetForecastResponse | GetCriticalDaysResponse;\n\t/** Which biorhythm response shape to render: a single day, a multi-day forecast, or the critical days list. */\n\tmode?: 'daily' | 'forecast' | 'critical-days';\n\t/** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. \"astrology/natal-chart\". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */\n\tendpoint?: string;\n\t/** HTTP method for the self-fetch request. Defaults to POST. */\n\tmethod?: 'GET' | 'POST';\n\t/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */\n\tpublishableKey?: string;\n\t/** Override the API origin for self-hosted or proxied deployments. */\n\tbaseUrl?: string;\n\t/** Override the OpenAPI spec URL the self-fetch form introspects. */\n\tspecUrl?: string;\n}\n\nexport const RoxyBiorhythmChart = defineComponent({\n\tname: 'RoxyBiorhythmChart',\n\tprops: {\n\t\tdata: { type: Object as PropType<RoxyBiorhythmChartProps['data']> },\n\t\tmode: { type: String as PropType<RoxyBiorhythmChartProps['mode']> },\n\t\tendpoint: { type: String as PropType<RoxyBiorhythmChartProps['endpoint']> },\n\t\tmethod: { type: String as PropType<RoxyBiorhythmChartProps['method']> },\n\t\tpublishableKey: { type: String as PropType<RoxyBiorhythmChartProps['publishableKey']> },\n\t\tbaseUrl: { type: String as PropType<RoxyBiorhythmChartProps['baseUrl']> },\n\t\tspecUrl: { type: String as PropType<RoxyBiorhythmChartProps['specUrl']> },\n\t},\n\tsetup(props) {\n\t\tconst loadError = ref<Error | null>(null);\n\n\t\tonMounted(() => {\n\t\t\tensureScriptLoaded().catch((err: unknown) => {\n\t\t\t\tloadError.value = err instanceof Error ? err : new Error(String(err));\n\t\t\t});\n\t\t});\n\n\t\treturn () => {\n\t\t\tif (loadError.value) {\n\t\t\t\treturn h(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ role: 'alert' },\n\t\t\t\t\t`Roxy UI script load failed: ${loadError.value.message}`,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst elementProps: Record<string, unknown> = {};\n\t\t\tif (props.data !== undefined) elementProps['.data'] = props.data;\n\t\t\tif (props.mode !== undefined) elementProps['.mode'] = props.mode;\n\t\t\tif (props.endpoint !== undefined) elementProps['.endpoint'] = props.endpoint;\n\t\t\tif (props.method !== undefined) elementProps['.method'] = props.method;\n\t\t\tif (props.publishableKey !== undefined) elementProps['.publishableKey'] = props.publishableKey;\n\t\t\tif (props.baseUrl !== undefined) elementProps['.baseUrl'] = props.baseUrl;\n\t\t\tif (props.specUrl !== undefined) elementProps['.specUrl'] = props.specUrl;\n\n\t\t\treturn h('roxy-biorhythm-chart', elementProps);\n\t\t};\n\t},\n});\n", "/**\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 * Nuxt and Vue server rendering work without a flash.\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 used to default to '@latest', which meant a pinned wrapper\n * silently picked up whatever the CDN was serving, and a new @roxyapi/ui release\n * changed the elements under every existing install with no lockfile change.\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.15.1\";\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// Default export retained for convenience; matches the named export.\nexport default ensureScriptLoaded;\n// Surfaces the embedded @roxyapi/ui version this build of @roxyapi/ui-vue\n// was generated against. Useful for diagnostics; not load-bearing.\n"],
5
- "mappings": "AAAA,OAAS,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,EACtF,QAAS,CAAE,KAAM,MAAuD,EACxE,QAAS,CAAE,KAAM,MAAuD,CACzE,EACA,MAAMC,EAAO,CACZ,IAAMC,EAAYC,EAAkB,IAAI,EAExC,OAAAC,EAAU,IAAM,CACfC,EAAmB,EAAE,MAAOC,GAAiB,CAC5CJ,EAAU,MAAQI,aAAe,MAAQA,EAAM,IAAI,MAAM,OAAOA,CAAG,CAAC,CACrE,CAAC,CACF,CAAC,EAEM,IAAM,CACZ,GAAIJ,EAAU,MACb,OAAOK,EACN,MACA,CAAE,KAAM,OAAQ,EAChB,+BAA+BL,EAAU,MAAM,OAAO,EACvD,EAGD,IAAMM,EAAwC,CAAC,EAC/C,OAAIP,EAAM,OAAS,SAAWO,EAAa,OAAO,EAAIP,EAAM,MACxDA,EAAM,OAAS,SAAWO,EAAa,OAAO,EAAIP,EAAM,MACxDA,EAAM,WAAa,SAAWO,EAAa,WAAW,EAAIP,EAAM,UAChEA,EAAM,SAAW,SAAWO,EAAa,SAAS,EAAIP,EAAM,QAC5DA,EAAM,iBAAmB,SAAWO,EAAa,iBAAiB,EAAIP,EAAM,gBAC5EA,EAAM,UAAY,SAAWO,EAAa,UAAU,EAAIP,EAAM,SAC9DA,EAAM,UAAY,SAAWO,EAAa,UAAU,EAAIP,EAAM,SAE3DM,EAAE,uBAAwBC,CAAY,CAC9C,CACD,CACD,CAAC",
4
+ "sourcesContent": ["import { defineComponent, h, onMounted, type PropType, ref } from 'vue';\nimport { ensureScriptLoaded } from '../load-ui.js';\nimport type { GetCriticalDaysResponse, GetDailyBiorhythmResponse, GetForecastResponse } from '../types/index.js';\n\nexport interface RoxyBiorhythmChartProps {\n\t/** Spec-derived response payload. Pass the raw RoxyAPI response. */\n\tdata?: GetDailyBiorhythmResponse | GetForecastResponse | GetCriticalDaysResponse;\n\t/** Which biorhythm response shape to render: a single day, a multi-day forecast, or the critical days list. */\n\tmode?: 'daily' | 'forecast' | 'critical-days';\n\t/** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. \"astrology/natal-chart\". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */\n\tendpoint?: string;\n\t/** HTTP method for the self-fetch request. Defaults to POST. */\n\tmethod?: 'GET' | 'POST';\n\t/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */\n\tpublishableKey?: string;\n\t/** Override the API origin for self-hosted or proxied deployments. */\n\tbaseUrl?: string;\n\t/** Override the OpenAPI spec URL the self-fetch form introspects. */\n\tspecUrl?: string;\n\t/** Response language for self-fetch, forwarded to the API `lang` query parameter (en, tr, de, es, hi, pt, fr, ru). The form never shows a language field; the site owner sets it here. Defaults to English. */\n\tlang?: string;\n\t/** Override the self-fetch form submit-button label. Empty derives an outcome-first label from the endpoint (Get reading, Generate, Compare, Cast). */\n\tsubmitLabel?: string;\n\t/** Render a small \"Spiritual data by RoxyAPI\" credit under a self-fetch result, linking back to RoxyAPI. Off by default; set any value to enable, or \"off\" to force it off. Never shown in controlled mode. */\n\tattribution?: string;\n}\n\nexport const RoxyBiorhythmChart = defineComponent({\n\tname: 'RoxyBiorhythmChart',\n\tprops: {\n\t\tdata: { type: Object as PropType<RoxyBiorhythmChartProps['data']> },\n\t\tmode: { type: String as PropType<RoxyBiorhythmChartProps['mode']> },\n\t\tendpoint: { type: String as PropType<RoxyBiorhythmChartProps['endpoint']> },\n\t\tmethod: { type: String as PropType<RoxyBiorhythmChartProps['method']> },\n\t\tpublishableKey: { type: String as PropType<RoxyBiorhythmChartProps['publishableKey']> },\n\t\tbaseUrl: { type: String as PropType<RoxyBiorhythmChartProps['baseUrl']> },\n\t\tspecUrl: { type: String as PropType<RoxyBiorhythmChartProps['specUrl']> },\n\t\tlang: { type: String as PropType<RoxyBiorhythmChartProps['lang']> },\n\t\tsubmitLabel: { type: String as PropType<RoxyBiorhythmChartProps['submitLabel']> },\n\t\tattribution: { type: String as PropType<RoxyBiorhythmChartProps['attribution']> },\n\t},\n\tsetup(props) {\n\t\tconst loadError = ref<Error | null>(null);\n\n\t\tonMounted(() => {\n\t\t\tensureScriptLoaded().catch((err: unknown) => {\n\t\t\t\tloadError.value = err instanceof Error ? err : new Error(String(err));\n\t\t\t});\n\t\t});\n\n\t\treturn () => {\n\t\t\tif (loadError.value) {\n\t\t\t\treturn h(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ role: 'alert' },\n\t\t\t\t\t`Roxy UI script load failed: ${loadError.value.message}`,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst elementProps: Record<string, unknown> = {};\n\t\t\tif (props.data !== undefined) elementProps['.data'] = props.data;\n\t\t\tif (props.mode !== undefined) elementProps['.mode'] = props.mode;\n\t\t\tif (props.endpoint !== undefined) elementProps['.endpoint'] = props.endpoint;\n\t\t\tif (props.method !== undefined) elementProps['.method'] = props.method;\n\t\t\tif (props.publishableKey !== undefined) elementProps['.publishableKey'] = props.publishableKey;\n\t\t\tif (props.baseUrl !== undefined) elementProps['.baseUrl'] = props.baseUrl;\n\t\t\tif (props.specUrl !== undefined) elementProps['.specUrl'] = props.specUrl;\n\t\t\tif (props.lang !== undefined) elementProps['.lang'] = props.lang;\n\t\t\tif (props.submitLabel !== undefined) elementProps['.submitLabel'] = props.submitLabel;\n\t\t\tif (props.attribution !== undefined) elementProps['.attribution'] = props.attribution;\n\n\t\t\treturn h('roxy-biorhythm-chart', elementProps);\n\t\t};\n\t},\n});\n", "/**\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 * Nuxt and Vue server rendering work without a flash.\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 used to default to '@latest', which meant a pinned wrapper\n * silently picked up whatever the CDN was serving, and a new @roxyapi/ui release\n * changed the elements under every existing install with no lockfile change.\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.17.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// Default export retained for convenience; matches the named export.\nexport default ensureScriptLoaded;\n// Surfaces the embedded @roxyapi/ui version this build of @roxyapi/ui-vue\n// was generated against. Useful for diagnostics; not load-bearing.\n"],
5
+ "mappings": "AAAA,OAAS,mBAAAA,EAAiB,KAAAC,EAAG,aAAAC,EAA0B,OAAAC,MAAW,MCoB3D,IAAMC,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,EAC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gB,SAAWO,EAAa,cAAc,EAAIP,EAAM,aAEnEM,EAAE,uBAAwBC,CAAY,CAC9C,CACD,CACD,CAAC",
6
6
  "names": ["defineComponent", "h", "onMounted", "ref", "ROXY_UI_VERSION", "SCRIPT_ID", "CDN_BASE_LATEST", "CDN_BASE_PREFIX", "CDN_BASE_SUFFIX", "loaded", "buildBase", "version", "ensureScriptLoaded", "baseUrl", "resolve", "reject", "url", "existing", "RoxyBiorhythmChart", "defineComponent", "props", "loadError", "ref", "onMounted", "ensureScriptLoaded", "err", "h", "elementProps"]
7
7
  }
@@ -13,6 +13,12 @@ export interface RoxyBodygraphProps {
13
13
  baseUrl?: string;
14
14
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
15
15
  specUrl?: string;
16
+ /** Response language for self-fetch, forwarded to the API `lang` query parameter (en, tr, de, es, hi, pt, fr, ru). The form never shows a language field; the site owner sets it here. Defaults to English. */
17
+ lang?: string;
18
+ /** Override the self-fetch form submit-button label. Empty derives an outcome-first label from the endpoint (Get reading, Generate, Compare, Cast). */
19
+ submitLabel?: string;
20
+ /** Render a small "Spiritual data by RoxyAPI" credit under a self-fetch result, linking back to RoxyAPI. Off by default; set any value to enable, or "off" to force it off. Never shown in controlled mode. */
21
+ attribution?: string;
16
22
  }
17
23
  export declare const RoxyBodygraph: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
18
24
  data: {
@@ -33,6 +39,15 @@ export declare const RoxyBodygraph: import("vue").DefineComponent<import("vue").
33
39
  specUrl: {
34
40
  type: PropType<RoxyBodygraphProps["specUrl"]>;
35
41
  };
42
+ lang: {
43
+ type: PropType<RoxyBodygraphProps["lang"]>;
44
+ };
45
+ submitLabel: {
46
+ type: PropType<RoxyBodygraphProps["submitLabel"]>;
47
+ };
48
+ attribution: {
49
+ type: PropType<RoxyBodygraphProps["attribution"]>;
50
+ };
36
51
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
37
52
  [key: string]: any;
38
53
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -54,5 +69,14 @@ export declare const RoxyBodygraph: import("vue").DefineComponent<import("vue").
54
69
  specUrl: {
55
70
  type: PropType<RoxyBodygraphProps["specUrl"]>;
56
71
  };
72
+ lang: {
73
+ type: PropType<RoxyBodygraphProps["lang"]>;
74
+ };
75
+ submitLabel: {
76
+ type: PropType<RoxyBodygraphProps["submitLabel"]>;
77
+ };
78
+ attribution: {
79
+ type: PropType<RoxyBodygraphProps["attribution"]>;
80
+ };
57
81
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
82
  //# sourceMappingURL=bodygraph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bodygraph.d.ts","sourceRoot":"","sources":["../../src/components/bodygraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,QAAQ,EAAO,MAAM,KAAK,CAAC;AAExE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,WAAW,kBAAkB;IAClC,oEAAoE;IACpE,IAAI,CAAC,EAAE,yBAAyB,CAAC;IACjC,mPAAmP;IACnP,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,6GAA6G;IAC7G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,aAAa;;cAGA,QAAQ,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;;;cAChC,QAAQ,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;;;cAC1C,QAAQ,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;;;cAC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M,aAAa;;cAGA,QAAQ,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;;;cAChC,QAAQ,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;;;cAC1C,QAAQ,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;;;cAC9B,QAAQ,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;;;cACrD,QAAQ,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;;;cACvC,QAAQ,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;;;cAC1C,QAAQ,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;;;cAC7B,QAAQ,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC;;;cAC3C,QAAQ,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC;;;;;;cARlD,QAAQ,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;;;cAChC,QAAQ,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;;;cAC1C,QAAQ,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;;;cAC9B,QAAQ,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;;;cACrD,QAAQ,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;;;cACvC,QAAQ,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;;;cAC1C,QAAQ,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;;;cAC7B,QAAQ,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC;;;cAC3C,QAAQ,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC;;iGAkC1E,CAAC"}
@@ -1,2 +1,2 @@
1
- import{defineComponent as g,h as s,onMounted as h,ref as m}from"vue";var l="0.15.1",i="roxyapi-ui-loader",u="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",y="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",c="/dist/cdn",o=null;function f(e){return!e||e==="latest"?u:`${y}${e}${c}`}function a(e=l,n){return typeof document>"u"?Promise.resolve():o||(o=new Promise((r,d)=>{let p=`${n??f(e)}/roxy-ui.js`,t=document.getElementById(i);if(t){t.dataset.loaded==="true"?r():(t.addEventListener("load",()=>r()),t.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}t=document.createElement("script"),t.id=i,t.src=p,t.async=!0,t.crossOrigin="anonymous",t.addEventListener("load",()=>{t.dataset.loaded="true",r()}),t.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(t)}),o)}var E=g({name:"RoxyBodygraph",props:{data:{type:Object},endpoint:{type:String},method:{type:String},publishableKey:{type:String},baseUrl:{type:String},specUrl:{type:String}},setup(e){let n=m(null);return h(()=>{a().catch(r=>{n.value=r instanceof Error?r:new Error(String(r))})}),()=>{if(n.value)return s("div",{role:"alert"},`Roxy UI script load failed: ${n.value.message}`);let r={};return e.data!==void 0&&(r[".data"]=e.data),e.endpoint!==void 0&&(r[".endpoint"]=e.endpoint),e.method!==void 0&&(r[".method"]=e.method),e.publishableKey!==void 0&&(r[".publishableKey"]=e.publishableKey),e.baseUrl!==void 0&&(r[".baseUrl"]=e.baseUrl),e.specUrl!==void 0&&(r[".specUrl"]=e.specUrl),s("roxy-bodygraph",r)}}});export{E as RoxyBodygraph};
1
+ import{defineComponent as c,h as s,onMounted as f,ref as m}from"vue";var p="0.17.0",a="roxyapi-ui-loader",u="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",y="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",g="/dist/cdn",i=null;function b(e){return!e||e==="latest"?u:`${y}${e}${g}`}function d(e=p,r){return typeof document>"u"?Promise.resolve():i||(i=new Promise((t,o)=>{let l=`${r??b(e)}/roxy-ui.js`,n=document.getElementById(a);if(n){n.dataset.loaded==="true"?t():(n.addEventListener("load",()=>t()),n.addEventListener("error",()=>o(new Error("roxy-ui load failed"))));return}n=document.createElement("script"),n.id=a,n.src=l,n.async=!0,n.crossOrigin="anonymous",n.addEventListener("load",()=>{n.dataset.loaded="true",t()}),n.addEventListener("error",()=>o(new Error("roxy-ui load failed"))),document.head.appendChild(n)}),i)}var E=c({name:"RoxyBodygraph",props:{data:{type:Object},endpoint:{type:String},method:{type:String},publishableKey:{type:String},baseUrl:{type:String},specUrl:{type:String},lang:{type:String},submitLabel:{type:String},attribution:{type:String}},setup(e){let r=m(null);return f(()=>{d().catch(t=>{r.value=t instanceof Error?t:new Error(String(t))})}),()=>{if(r.value)return s("div",{role:"alert"},`Roxy UI script load failed: ${r.value.message}`);let t={};return e.data!==void 0&&(t[".data"]=e.data),e.endpoint!==void 0&&(t[".endpoint"]=e.endpoint),e.method!==void 0&&(t[".method"]=e.method),e.publishableKey!==void 0&&(t[".publishableKey"]=e.publishableKey),e.baseUrl!==void 0&&(t[".baseUrl"]=e.baseUrl),e.specUrl!==void 0&&(t[".specUrl"]=e.specUrl),e.lang!==void 0&&(t[".lang"]=e.lang),e.submitLabel!==void 0&&(t[".submitLabel"]=e.submitLabel),e.attribution!==void 0&&(t[".attribution"]=e.attribution),s("roxy-bodygraph",t)}}});export{E as RoxyBodygraph};
2
2
  //# sourceMappingURL=bodygraph.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/components/bodygraph.ts", "../../src/load-ui.ts"],
4
- "sourcesContent": ["import { defineComponent, h, onMounted, type PropType, ref } from 'vue';\nimport { ensureScriptLoaded } from '../load-ui.js';\nimport type { GenerateBodygraphResponse } from '../types/index.js';\n\nexport interface RoxyBodygraphProps {\n\t/** Spec-derived response payload. Pass the raw RoxyAPI response. */\n\tdata?: GenerateBodygraphResponse;\n\t/** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. \"astrology/natal-chart\". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */\n\tendpoint?: string;\n\t/** HTTP method for the self-fetch request. Defaults to POST. */\n\tmethod?: 'GET' | 'POST';\n\t/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */\n\tpublishableKey?: string;\n\t/** Override the API origin for self-hosted or proxied deployments. */\n\tbaseUrl?: string;\n\t/** Override the OpenAPI spec URL the self-fetch form introspects. */\n\tspecUrl?: string;\n}\n\nexport const RoxyBodygraph = defineComponent({\n\tname: 'RoxyBodygraph',\n\tprops: {\n\t\tdata: { type: Object as PropType<RoxyBodygraphProps['data']> },\n\t\tendpoint: { type: String as PropType<RoxyBodygraphProps['endpoint']> },\n\t\tmethod: { type: String as PropType<RoxyBodygraphProps['method']> },\n\t\tpublishableKey: { type: String as PropType<RoxyBodygraphProps['publishableKey']> },\n\t\tbaseUrl: { type: String as PropType<RoxyBodygraphProps['baseUrl']> },\n\t\tspecUrl: { type: String as PropType<RoxyBodygraphProps['specUrl']> },\n\t},\n\tsetup(props) {\n\t\tconst loadError = ref<Error | null>(null);\n\n\t\tonMounted(() => {\n\t\t\tensureScriptLoaded().catch((err: unknown) => {\n\t\t\t\tloadError.value = err instanceof Error ? err : new Error(String(err));\n\t\t\t});\n\t\t});\n\n\t\treturn () => {\n\t\t\tif (loadError.value) {\n\t\t\t\treturn h(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ role: 'alert' },\n\t\t\t\t\t`Roxy UI script load failed: ${loadError.value.message}`,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst elementProps: Record<string, unknown> = {};\n\t\t\tif (props.data !== undefined) elementProps['.data'] = props.data;\n\t\t\tif (props.endpoint !== undefined) elementProps['.endpoint'] = props.endpoint;\n\t\t\tif (props.method !== undefined) elementProps['.method'] = props.method;\n\t\t\tif (props.publishableKey !== undefined) elementProps['.publishableKey'] = props.publishableKey;\n\t\t\tif (props.baseUrl !== undefined) elementProps['.baseUrl'] = props.baseUrl;\n\t\t\tif (props.specUrl !== undefined) elementProps['.specUrl'] = props.specUrl;\n\n\t\t\treturn h('roxy-bodygraph', elementProps);\n\t\t};\n\t},\n});\n", "/**\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 * Nuxt and Vue server rendering work without a flash.\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 used to default to '@latest', which meant a pinned wrapper\n * silently picked up whatever the CDN was serving, and a new @roxyapi/ui release\n * changed the elements under every existing install with no lockfile change.\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.15.1\";\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// Default export retained for convenience; matches the named export.\nexport default ensureScriptLoaded;\n// Surfaces the embedded @roxyapi/ui version this build of @roxyapi/ui-vue\n// was generated against. Useful for diagnostics; not load-bearing.\n"],
5
- "mappings": "AAAA,OAAS,mBAAAA,EAAiB,KAAAC,EAAG,aAAAC,EAA0B,OAAAC,MAAW,MCoB3D,IAAMC,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,qBA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DA,EAAM,UAAY,SAAWO,EAAa,UAAU,EAAIP,EAAM,SAE3DM,EAAE,iBAAkBC,CAAY,CACxC,CACD,CACD,CAAC",
4
+ "sourcesContent": ["import { defineComponent, h, onMounted, type PropType, ref } from 'vue';\nimport { ensureScriptLoaded } from '../load-ui.js';\nimport type { GenerateBodygraphResponse } from '../types/index.js';\n\nexport interface RoxyBodygraphProps {\n\t/** Spec-derived response payload. Pass the raw RoxyAPI response. */\n\tdata?: GenerateBodygraphResponse;\n\t/** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. \"astrology/natal-chart\". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */\n\tendpoint?: string;\n\t/** HTTP method for the self-fetch request. Defaults to POST. */\n\tmethod?: 'GET' | 'POST';\n\t/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */\n\tpublishableKey?: string;\n\t/** Override the API origin for self-hosted or proxied deployments. */\n\tbaseUrl?: string;\n\t/** Override the OpenAPI spec URL the self-fetch form introspects. */\n\tspecUrl?: string;\n\t/** Response language for self-fetch, forwarded to the API `lang` query parameter (en, tr, de, es, hi, pt, fr, ru). The form never shows a language field; the site owner sets it here. Defaults to English. */\n\tlang?: string;\n\t/** Override the self-fetch form submit-button label. Empty derives an outcome-first label from the endpoint (Get reading, Generate, Compare, Cast). */\n\tsubmitLabel?: string;\n\t/** Render a small \"Spiritual data by RoxyAPI\" credit under a self-fetch result, linking back to RoxyAPI. Off by default; set any value to enable, or \"off\" to force it off. Never shown in controlled mode. */\n\tattribution?: string;\n}\n\nexport const RoxyBodygraph = defineComponent({\n\tname: 'RoxyBodygraph',\n\tprops: {\n\t\tdata: { type: Object as PropType<RoxyBodygraphProps['data']> },\n\t\tendpoint: { type: String as PropType<RoxyBodygraphProps['endpoint']> },\n\t\tmethod: { type: String as PropType<RoxyBodygraphProps['method']> },\n\t\tpublishableKey: { type: String as PropType<RoxyBodygraphProps['publishableKey']> },\n\t\tbaseUrl: { type: String as PropType<RoxyBodygraphProps['baseUrl']> },\n\t\tspecUrl: { type: String as PropType<RoxyBodygraphProps['specUrl']> },\n\t\tlang: { type: String as PropType<RoxyBodygraphProps['lang']> },\n\t\tsubmitLabel: { type: String as PropType<RoxyBodygraphProps['submitLabel']> },\n\t\tattribution: { type: String as PropType<RoxyBodygraphProps['attribution']> },\n\t},\n\tsetup(props) {\n\t\tconst loadError = ref<Error | null>(null);\n\n\t\tonMounted(() => {\n\t\t\tensureScriptLoaded().catch((err: unknown) => {\n\t\t\t\tloadError.value = err instanceof Error ? err : new Error(String(err));\n\t\t\t});\n\t\t});\n\n\t\treturn () => {\n\t\t\tif (loadError.value) {\n\t\t\t\treturn h(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ role: 'alert' },\n\t\t\t\t\t`Roxy UI script load failed: ${loadError.value.message}`,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst elementProps: Record<string, unknown> = {};\n\t\t\tif (props.data !== undefined) elementProps['.data'] = props.data;\n\t\t\tif (props.endpoint !== undefined) elementProps['.endpoint'] = props.endpoint;\n\t\t\tif (props.method !== undefined) elementProps['.method'] = props.method;\n\t\t\tif (props.publishableKey !== undefined) elementProps['.publishableKey'] = props.publishableKey;\n\t\t\tif (props.baseUrl !== undefined) elementProps['.baseUrl'] = props.baseUrl;\n\t\t\tif (props.specUrl !== undefined) elementProps['.specUrl'] = props.specUrl;\n\t\t\tif (props.lang !== undefined) elementProps['.lang'] = props.lang;\n\t\t\tif (props.submitLabel !== undefined) elementProps['.submitLabel'] = props.submitLabel;\n\t\t\tif (props.attribution !== undefined) elementProps['.attribution'] = props.attribution;\n\n\t\t\treturn h('roxy-bodygraph', elementProps);\n\t\t};\n\t},\n});\n", "/**\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 * Nuxt and Vue server rendering work without a flash.\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 used to default to '@latest', which meant a pinned wrapper\n * silently picked up whatever the CDN was serving, and a new @roxyapi/ui release\n * changed the elements under every existing install with no lockfile change.\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.17.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// Default export retained for convenience; matches the named export.\nexport default ensureScriptLoaded;\n// Surfaces the embedded @roxyapi/ui version this build of @roxyapi/ui-vue\n// was generated against. Useful for diagnostics; not load-bearing.\n"],
5
+ "mappings": "AAAA,OAAS,mBAAAA,EAAiB,KAAAC,EAAG,aAAAC,EAA0B,OAAAC,MAAW,MCoB3D,IAAMC,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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,EAAM,SAC9DA,EAAM,OAAS,SAAWO,EAAa,OAAO,EAAIP,EAAM,MACxDA,EAAM,cAAgB,SAAWO,EAAa,cAAc,EAAIP,EAAM,aACtEA,EAAM,cAAgB,SAAWO,EAAa,cAAc,EAAIP,EAAM,aAEnEM,EAAE,iBAAkBC,CAAY,CACxC,CACD,CACD,CAAC",
6
6
  "names": ["defineComponent", "h", "onMounted", "ref", "ROXY_UI_VERSION", "SCRIPT_ID", "CDN_BASE_LATEST", "CDN_BASE_PREFIX", "CDN_BASE_SUFFIX", "loaded", "buildBase", "version", "ensureScriptLoaded", "baseUrl", "resolve", "reject", "url", "existing", "RoxyBodygraph", "defineComponent", "props", "loadError", "ref", "onMounted", "ensureScriptLoaded", "err", "h", "elementProps"]
7
7
  }
@@ -13,6 +13,12 @@ export interface RoxyChoghadiyaGridProps {
13
13
  baseUrl?: string;
14
14
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
15
15
  specUrl?: string;
16
+ /** Response language for self-fetch, forwarded to the API `lang` query parameter (en, tr, de, es, hi, pt, fr, ru). The form never shows a language field; the site owner sets it here. Defaults to English. */
17
+ lang?: string;
18
+ /** Override the self-fetch form submit-button label. Empty derives an outcome-first label from the endpoint (Get reading, Generate, Compare, Cast). */
19
+ submitLabel?: string;
20
+ /** Render a small "Spiritual data by RoxyAPI" credit under a self-fetch result, linking back to RoxyAPI. Off by default; set any value to enable, or "off" to force it off. Never shown in controlled mode. */
21
+ attribution?: string;
16
22
  }
17
23
  export declare const RoxyChoghadiyaGrid: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
18
24
  data: {
@@ -33,6 +39,15 @@ export declare const RoxyChoghadiyaGrid: import("vue").DefineComponent<import("v
33
39
  specUrl: {
34
40
  type: PropType<RoxyChoghadiyaGridProps["specUrl"]>;
35
41
  };
42
+ lang: {
43
+ type: PropType<RoxyChoghadiyaGridProps["lang"]>;
44
+ };
45
+ submitLabel: {
46
+ type: PropType<RoxyChoghadiyaGridProps["submitLabel"]>;
47
+ };
48
+ attribution: {
49
+ type: PropType<RoxyChoghadiyaGridProps["attribution"]>;
50
+ };
36
51
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
37
52
  [key: string]: any;
38
53
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -54,5 +69,14 @@ export declare const RoxyChoghadiyaGrid: import("vue").DefineComponent<import("v
54
69
  specUrl: {
55
70
  type: PropType<RoxyChoghadiyaGridProps["specUrl"]>;
56
71
  };
72
+ lang: {
73
+ type: PropType<RoxyChoghadiyaGridProps["lang"]>;
74
+ };
75
+ submitLabel: {
76
+ type: PropType<RoxyChoghadiyaGridProps["submitLabel"]>;
77
+ };
78
+ attribution: {
79
+ type: PropType<RoxyChoghadiyaGridProps["attribution"]>;
80
+ };
57
81
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
82
  //# sourceMappingURL=choghadiya-grid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"choghadiya-grid.d.ts","sourceRoot":"","sources":["../../src/components/choghadiya-grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,QAAQ,EAAO,MAAM,KAAK,CAAC;AAExE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,MAAM,WAAW,uBAAuB;IACvC,oEAAoE;IACpE,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,mPAAmP;IACnP,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,6GAA6G;IAC7G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB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@ -1,2 +1,2 @@
1
- import{defineComponent as f,h as s,onMounted as g,ref as m}from"vue";var p="0.15.1",o="roxyapi-ui-loader",u="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",y="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",h="/dist/cdn",i=null;function c(e){return!e||e==="latest"?u:`${y}${e}${h}`}function a(e=p,n){return typeof document>"u"?Promise.resolve():i||(i=new Promise((t,d)=>{let l=`${n??c(e)}/roxy-ui.js`,r=document.getElementById(o);if(r){r.dataset.loaded==="true"?t():(r.addEventListener("load",()=>t()),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))));return}r=document.createElement("script"),r.id=o,r.src=l,r.async=!0,r.crossOrigin="anonymous",r.addEventListener("load",()=>{r.dataset.loaded="true",t()}),r.addEventListener("error",()=>d(new Error("roxy-ui load failed"))),document.head.appendChild(r)}),i)}var E=f({name:"RoxyChoghadiyaGrid",props:{data:{type:Object},endpoint:{type:String},method:{type:String},publishableKey:{type:String},baseUrl:{type:String},specUrl:{type:String}},setup(e){let n=m(null);return g(()=>{a().catch(t=>{n.value=t instanceof Error?t:new Error(String(t))})}),()=>{if(n.value)return s("div",{role:"alert"},`Roxy UI script load failed: ${n.value.message}`);let t={};return e.data!==void 0&&(t[".data"]=e.data),e.endpoint!==void 0&&(t[".endpoint"]=e.endpoint),e.method!==void 0&&(t[".method"]=e.method),e.publishableKey!==void 0&&(t[".publishableKey"]=e.publishableKey),e.baseUrl!==void 0&&(t[".baseUrl"]=e.baseUrl),e.specUrl!==void 0&&(t[".specUrl"]=e.specUrl),s("roxy-choghadiya-grid",t)}}});export{E as RoxyChoghadiyaGrid};
1
+ import{defineComponent as c,h as s,onMounted as f,ref as b}from"vue";var u="0.17.0",d="roxyapi-ui-loader",y="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",p="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",h="/dist/cdn",r=null;function g(e){return!e||e==="latest"?y:`${p}${e}${h}`}function o(e=u,n){return typeof document>"u"?Promise.resolve():r||(r=new Promise((t,a)=>{let l=`${n??g(e)}/roxy-ui.js`,i=document.getElementById(d);if(i){i.dataset.loaded==="true"?t():(i.addEventListener("load",()=>t()),i.addEventListener("error",()=>a(new Error("roxy-ui load failed"))));return}i=document.createElement("script"),i.id=d,i.src=l,i.async=!0,i.crossOrigin="anonymous",i.addEventListener("load",()=>{i.dataset.loaded="true",t()}),i.addEventListener("error",()=>a(new Error("roxy-ui load failed"))),document.head.appendChild(i)}),r)}var C=c({name:"RoxyChoghadiyaGrid",props:{data:{type:Object},endpoint:{type:String},method:{type:String},publishableKey:{type:String},baseUrl:{type:String},specUrl:{type:String},lang:{type:String},submitLabel:{type:String},attribution:{type:String}},setup(e){let n=b(null);return f(()=>{o().catch(t=>{n.value=t instanceof Error?t:new Error(String(t))})}),()=>{if(n.value)return s("div",{role:"alert"},`Roxy UI script load failed: ${n.value.message}`);let t={};return e.data!==void 0&&(t[".data"]=e.data),e.endpoint!==void 0&&(t[".endpoint"]=e.endpoint),e.method!==void 0&&(t[".method"]=e.method),e.publishableKey!==void 0&&(t[".publishableKey"]=e.publishableKey),e.baseUrl!==void 0&&(t[".baseUrl"]=e.baseUrl),e.specUrl!==void 0&&(t[".specUrl"]=e.specUrl),e.lang!==void 0&&(t[".lang"]=e.lang),e.submitLabel!==void 0&&(t[".submitLabel"]=e.submitLabel),e.attribution!==void 0&&(t[".attribution"]=e.attribution),s("roxy-choghadiya-grid",t)}}});export{C as RoxyChoghadiyaGrid};
2
2
  //# sourceMappingURL=choghadiya-grid.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/components/choghadiya-grid.ts", "../../src/load-ui.ts"],
4
- "sourcesContent": ["import { defineComponent, h, onMounted, type PropType, ref } from 'vue';\nimport { ensureScriptLoaded } from '../load-ui.js';\nimport type { GetChoghadiyaResponse } from '../types/index.js';\n\nexport interface RoxyChoghadiyaGridProps {\n\t/** Spec-derived response payload. Pass the raw RoxyAPI response. */\n\tdata?: GetChoghadiyaResponse;\n\t/** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. \"astrology/natal-chart\". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */\n\tendpoint?: string;\n\t/** HTTP method for the self-fetch request. Defaults to POST. */\n\tmethod?: 'GET' | 'POST';\n\t/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */\n\tpublishableKey?: string;\n\t/** Override the API origin for self-hosted or proxied deployments. */\n\tbaseUrl?: string;\n\t/** Override the OpenAPI spec URL the self-fetch form introspects. */\n\tspecUrl?: string;\n}\n\nexport const RoxyChoghadiyaGrid = defineComponent({\n\tname: 'RoxyChoghadiyaGrid',\n\tprops: {\n\t\tdata: { type: Object as PropType<RoxyChoghadiyaGridProps['data']> },\n\t\tendpoint: { type: String as PropType<RoxyChoghadiyaGridProps['endpoint']> },\n\t\tmethod: { type: String as PropType<RoxyChoghadiyaGridProps['method']> },\n\t\tpublishableKey: { type: String as PropType<RoxyChoghadiyaGridProps['publishableKey']> },\n\t\tbaseUrl: { type: String as PropType<RoxyChoghadiyaGridProps['baseUrl']> },\n\t\tspecUrl: { type: String as PropType<RoxyChoghadiyaGridProps['specUrl']> },\n\t},\n\tsetup(props) {\n\t\tconst loadError = ref<Error | null>(null);\n\n\t\tonMounted(() => {\n\t\t\tensureScriptLoaded().catch((err: unknown) => {\n\t\t\t\tloadError.value = err instanceof Error ? err : new Error(String(err));\n\t\t\t});\n\t\t});\n\n\t\treturn () => {\n\t\t\tif (loadError.value) {\n\t\t\t\treturn h(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ role: 'alert' },\n\t\t\t\t\t`Roxy UI script load failed: ${loadError.value.message}`,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst elementProps: Record<string, unknown> = {};\n\t\t\tif (props.data !== undefined) elementProps['.data'] = props.data;\n\t\t\tif (props.endpoint !== undefined) elementProps['.endpoint'] = props.endpoint;\n\t\t\tif (props.method !== undefined) elementProps['.method'] = props.method;\n\t\t\tif (props.publishableKey !== undefined) elementProps['.publishableKey'] = props.publishableKey;\n\t\t\tif (props.baseUrl !== undefined) elementProps['.baseUrl'] = props.baseUrl;\n\t\t\tif (props.specUrl !== undefined) elementProps['.specUrl'] = props.specUrl;\n\n\t\t\treturn h('roxy-choghadiya-grid', elementProps);\n\t\t};\n\t},\n});\n", "/**\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 * Nuxt and Vue server rendering work without a flash.\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 used to default to '@latest', which meant a pinned wrapper\n * silently picked up whatever the CDN was serving, and a new @roxyapi/ui release\n * changed the elements under every existing install with no lockfile change.\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.15.1\";\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// Default export retained for convenience; matches the named export.\nexport default ensureScriptLoaded;\n// Surfaces the embedded @roxyapi/ui version this build of @roxyapi/ui-vue\n// was generated against. Useful for diagnostics; not load-bearing.\n"],
5
- "mappings": "AAAA,OAAS,mBAAAA,EAAiB,KAAAC,EAAG,aAAAC,EAA0B,OAAAC,MAAW,MCoB3D,IAAMC,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,I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,EAAwC,CAAC,EAC/C,OAAIP,EAAM,OAAS,SAAWO,EAAa,OAAO,EAAIP,EAAM,MACxDA,EAAM,WAAa,SAAWO,EAAa,WAAW,EAAIP,EAAM,UAChEA,EAAM,SAAW,SAAWO,EAAa,SAAS,EAAIP,EAAM,QAC5DA,EAAM,iBAAmB,SAAWO,EAAa,iBAAiB,EAAIP,EAAM,gBAC5EA,EAAM,UAAY,SAAWO,EAAa,UAAU,EAAIP,EAAM,SAC9DA,EAAM,UAAY,SAAWO,EAAa,UAAU,EAAIP,EAAM,SAE3DM,EAAE,uBAAwBC,CAAY,CAC9C,CACD,CACD,CAAC",
4
+ "sourcesContent": ["import { defineComponent, h, onMounted, type PropType, ref } from 'vue';\nimport { ensureScriptLoaded } from '../load-ui.js';\nimport type { GetChoghadiyaResponse } from '../types/index.js';\n\nexport interface RoxyChoghadiyaGridProps {\n\t/** Spec-derived response payload. Pass the raw RoxyAPI response. */\n\tdata?: GetChoghadiyaResponse;\n\t/** Endpoint path for built-in self-fetch (uncontrolled mode), e.g. \"astrology/natal-chart\". The component renders its own input form, fetches with the publishable key, and displays the result. Leave unset for controlled mode (pass `data`). */\n\tendpoint?: string;\n\t/** HTTP method for the self-fetch request. Defaults to POST. */\n\tmethod?: 'GET' | 'POST';\n\t/** Browser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent. */\n\tpublishableKey?: string;\n\t/** Override the API origin for self-hosted or proxied deployments. */\n\tbaseUrl?: string;\n\t/** Override the OpenAPI spec URL the self-fetch form introspects. */\n\tspecUrl?: string;\n\t/** Response language for self-fetch, forwarded to the API `lang` query parameter (en, tr, de, es, hi, pt, fr, ru). The form never shows a language field; the site owner sets it here. Defaults to English. */\n\tlang?: string;\n\t/** Override the self-fetch form submit-button label. Empty derives an outcome-first label from the endpoint (Get reading, Generate, Compare, Cast). */\n\tsubmitLabel?: string;\n\t/** Render a small \"Spiritual data by RoxyAPI\" credit under a self-fetch result, linking back to RoxyAPI. Off by default; set any value to enable, or \"off\" to force it off. Never shown in controlled mode. */\n\tattribution?: string;\n}\n\nexport const RoxyChoghadiyaGrid = defineComponent({\n\tname: 'RoxyChoghadiyaGrid',\n\tprops: {\n\t\tdata: { type: Object as PropType<RoxyChoghadiyaGridProps['data']> },\n\t\tendpoint: { type: String as PropType<RoxyChoghadiyaGridProps['endpoint']> },\n\t\tmethod: { type: String as PropType<RoxyChoghadiyaGridProps['method']> },\n\t\tpublishableKey: { type: String as PropType<RoxyChoghadiyaGridProps['publishableKey']> },\n\t\tbaseUrl: { type: String as PropType<RoxyChoghadiyaGridProps['baseUrl']> },\n\t\tspecUrl: { type: String as PropType<RoxyChoghadiyaGridProps['specUrl']> },\n\t\tlang: { type: String as PropType<RoxyChoghadiyaGridProps['lang']> },\n\t\tsubmitLabel: { type: String as PropType<RoxyChoghadiyaGridProps['submitLabel']> },\n\t\tattribution: { type: String as PropType<RoxyChoghadiyaGridProps['attribution']> },\n\t},\n\tsetup(props) {\n\t\tconst loadError = ref<Error | null>(null);\n\n\t\tonMounted(() => {\n\t\t\tensureScriptLoaded().catch((err: unknown) => {\n\t\t\t\tloadError.value = err instanceof Error ? err : new Error(String(err));\n\t\t\t});\n\t\t});\n\n\t\treturn () => {\n\t\t\tif (loadError.value) {\n\t\t\t\treturn h(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ role: 'alert' },\n\t\t\t\t\t`Roxy UI script load failed: ${loadError.value.message}`,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst elementProps: Record<string, unknown> = {};\n\t\t\tif (props.data !== undefined) elementProps['.data'] = props.data;\n\t\t\tif (props.endpoint !== undefined) elementProps['.endpoint'] = props.endpoint;\n\t\t\tif (props.method !== undefined) elementProps['.method'] = props.method;\n\t\t\tif (props.publishableKey !== undefined) elementProps['.publishableKey'] = props.publishableKey;\n\t\t\tif (props.baseUrl !== undefined) elementProps['.baseUrl'] = props.baseUrl;\n\t\t\tif (props.specUrl !== undefined) elementProps['.specUrl'] = props.specUrl;\n\t\t\tif (props.lang !== undefined) elementProps['.lang'] = props.lang;\n\t\t\tif (props.submitLabel !== undefined) elementProps['.submitLabel'] = props.submitLabel;\n\t\t\tif (props.attribution !== undefined) elementProps['.attribution'] = props.attribution;\n\n\t\t\treturn h('roxy-choghadiya-grid', elementProps);\n\t\t};\n\t},\n});\n", "/**\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 * Nuxt and Vue server rendering work without a flash.\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 used to default to '@latest', which meant a pinned wrapper\n * silently picked up whatever the CDN was serving, and a new @roxyapi/ui release\n * changed the elements under every existing install with no lockfile change.\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.17.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// Default export retained for convenience; matches the named export.\nexport default ensureScriptLoaded;\n// Surfaces the embedded @roxyapi/ui version this build of @roxyapi/ui-vue\n// was generated against. Useful for diagnostics; not load-bearing.\n"],
5
+ "mappings": "AAAA,OAAS,mBAAAA,EAAiB,KAAAC,EAAG,aAAAC,EAA0B,OAAAC,MAAW,MCoB3D,IAAMC,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,GAAW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,EACvD,EAGD,IAAMM,EAAwC,CAAC,EAC/C,OAAIP,EAAM,OAAS,SAAWO,EAAa,OAAO,EAAIP,EAAM,MACxDA,EAAM,WAAa,SAAWO,EAAa,WAAW,EAAIP,EAAM,UAChEA,EAAM,SAAW,SAAWO,EAAa,SAAS,EAAIP,EAAM,QAC5DA,EAAM,iBAAmB,SAAWO,EAAa,iBAAiB,EAAIP,EAAM,gBAC5EA,EAAM,UAAY,SAAWO,EAAa,UAAU,EAAIP,EAAM,SAC9DA,EAAM,UAAY,SAAWO,EAAa,UAAU,EAAIP,EAAM,SAC9DA,EAAM,OAAS,SAAWO,EAAa,OAAO,EAAIP,EAAM,MACxDA,EAAM,cAAgB,SAAWO,EAAa,cAAc,EAAIP,EAAM,aACtEA,EAAM,cAAgB,SAAWO,EAAa,cAAc,EAAIP,EAAM,aAEnEM,EAAE,uBAAwBC,CAAY,CAC9C,CACD,CACD,CAAC",
6
6
  "names": ["defineComponent", "h", "onMounted", "ref", "ROXY_UI_VERSION", "SCRIPT_ID", "CDN_BASE_LATEST", "CDN_BASE_PREFIX", "CDN_BASE_SUFFIX", "loaded", "buildBase", "version", "ensureScriptLoaded", "baseUrl", "resolve", "reject", "url", "existing", "RoxyChoghadiyaGrid", "defineComponent", "props", "loadError", "ref", "onMounted", "ensureScriptLoaded", "err", "h", "elementProps"]
7
7
  }
@@ -15,6 +15,12 @@ export interface RoxyCompatibilityCardProps {
15
15
  baseUrl?: string;
16
16
  /** Override the OpenAPI spec URL the self-fetch form introspects. */
17
17
  specUrl?: string;
18
+ /** Response language for self-fetch, forwarded to the API `lang` query parameter (en, tr, de, es, hi, pt, fr, ru). The form never shows a language field; the site owner sets it here. Defaults to English. */
19
+ lang?: string;
20
+ /** Override the self-fetch form submit-button label. Empty derives an outcome-first label from the endpoint (Get reading, Generate, Compare, Cast). */
21
+ submitLabel?: string;
22
+ /** Render a small "Spiritual data by RoxyAPI" credit under a self-fetch result, linking back to RoxyAPI. Off by default; set any value to enable, or "off" to force it off. Never shown in controlled mode. */
23
+ attribution?: string;
18
24
  }
19
25
  export declare const RoxyCompatibilityCard: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
20
26
  data: {
@@ -38,6 +44,15 @@ export declare const RoxyCompatibilityCard: import("vue").DefineComponent<import
38
44
  specUrl: {
39
45
  type: PropType<RoxyCompatibilityCardProps["specUrl"]>;
40
46
  };
47
+ lang: {
48
+ type: PropType<RoxyCompatibilityCardProps["lang"]>;
49
+ };
50
+ submitLabel: {
51
+ type: PropType<RoxyCompatibilityCardProps["submitLabel"]>;
52
+ };
53
+ attribution: {
54
+ type: PropType<RoxyCompatibilityCardProps["attribution"]>;
55
+ };
41
56
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
42
57
  [key: string]: any;
43
58
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -62,5 +77,14 @@ export declare const RoxyCompatibilityCard: import("vue").DefineComponent<import
62
77
  specUrl: {
63
78
  type: PropType<RoxyCompatibilityCardProps["specUrl"]>;
64
79
  };
80
+ lang: {
81
+ type: PropType<RoxyCompatibilityCardProps["lang"]>;
82
+ };
83
+ submitLabel: {
84
+ type: PropType<RoxyCompatibilityCardProps["submitLabel"]>;
85
+ };
86
+ attribution: {
87
+ type: PropType<RoxyCompatibilityCardProps["attribution"]>;
88
+ };
65
89
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
66
90
  //# sourceMappingURL=compatibility-card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compatibility-card.d.ts","sourceRoot":"","sources":["../../src/components/compatibility-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,QAAQ,EAAO,MAAM,KAAK,CAAC;AAExE,OAAO,KAAK,EAAE,iCAAiC,EAAE,8BAA8B,EAAE,iCAAiC,EAAE,MAAM,mBAAmB,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SAAS,CAAC,CAAC;;;cAC/C,QAAQ,CAAC,0BAA0B,CAAC,SAAS,CAAC,CAAC;;;cAClD,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;;;cACrC,QAAQ,CAAC,0BAA0B,CAAC,aAAa,CAAC,CAAC;;;cACnD,QAAQ,CAAC,0BAA0B,CAAC,aAAa,CAAC,CAAC;;;;;;cAT1D,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;;;cAC5C,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;;;cACxC,QAAQ,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;;;cAClD,QAAQ,CAAC,0BAA0B,CAAC,QAAQ,CAAC,CAAC;;;cACtC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,CAAC;;;cAC7D,QAAQ,CAAC,0BAA0B,CAAC,SAAS,CAAC,CAAC;;;cAC/C,QAAQ,CAAC,0BAA0B,CAAC,SAAS,CAAC,CAAC;;;cAClD,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;;;cACrC,QAAQ,CAAC,0BAA0B,CAAC,aAAa,CAAC,CAAC;;;cACnD,QAAQ,CAAC,0BAA0B,CAAC,aAAa,CAAC,CAAC;;iGAmClF,CAAC"}
@@ -1,2 +1,2 @@
1
- import{defineComponent as b,h as l,onMounted as C,ref as f}from"vue";var p="0.15.1",a="roxyapi-ui-loader",y="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",u="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",m="/dist/cdn",r=null;function c(e){return!e||e==="latest"?y:`${u}${e}${m}`}function d(e=p,o){return typeof document>"u"?Promise.resolve():r||(r=new Promise((t,n)=>{let s=`${o??c(e)}/roxy-ui.js`,i=document.getElementById(a);if(i){i.dataset.loaded==="true"?t():(i.addEventListener("load",()=>t()),i.addEventListener("error",()=>n(new Error("roxy-ui load failed"))));return}i=document.createElement("script"),i.id=a,i.src=s,i.async=!0,i.crossOrigin="anonymous",i.addEventListener("load",()=>{i.dataset.loaded="true",t()}),i.addEventListener("error",()=>n(new Error("roxy-ui load failed"))),document.head.appendChild(i)}),r)}var R=b({name:"RoxyCompatibilityCard",props:{data:{type:Object},mode:{type:String},endpoint:{type:String},method:{type:String},publishableKey:{type:String},baseUrl:{type:String},specUrl:{type:String}},setup(e){let o=f(null);return C(()=>{d().catch(t=>{o.value=t instanceof Error?t:new Error(String(t))})}),()=>{if(o.value)return l("div",{role:"alert"},`Roxy UI script load failed: ${o.value.message}`);let t={};return e.data!==void 0&&(t[".data"]=e.data),e.mode!==void 0&&(t[".mode"]=e.mode),e.endpoint!==void 0&&(t[".endpoint"]=e.endpoint),e.method!==void 0&&(t[".method"]=e.method),e.publishableKey!==void 0&&(t[".publishableKey"]=e.publishableKey),e.baseUrl!==void 0&&(t[".baseUrl"]=e.baseUrl),e.specUrl!==void 0&&(t[".specUrl"]=e.specUrl),l("roxy-compatibility-card",t)}}});export{R as RoxyCompatibilityCard};
1
+ import{defineComponent as c,h as l,onMounted as C,ref as f}from"vue";var p="0.17.0",a="roxyapi-ui-loader",u="https://cdn.jsdelivr.net/npm/@roxyapi/ui@latest/dist/cdn",y="https://cdn.jsdelivr.net/npm/@roxyapi/ui@",m="/dist/cdn",o=null;function b(e){return!e||e==="latest"?u:`${y}${e}${m}`}function d(e=p,n){return typeof document>"u"?Promise.resolve():o||(o=new Promise((t,r)=>{let s=`${n??b(e)}/roxy-ui.js`,i=document.getElementById(a);if(i){i.dataset.loaded==="true"?t():(i.addEventListener("load",()=>t()),i.addEventListener("error",()=>r(new Error("roxy-ui load failed"))));return}i=document.createElement("script"),i.id=a,i.src=s,i.async=!0,i.crossOrigin="anonymous",i.addEventListener("load",()=>{i.dataset.loaded="true",t()}),i.addEventListener("error",()=>r(new Error("roxy-ui load failed"))),document.head.appendChild(i)}),o)}var R=c({name:"RoxyCompatibilityCard",props:{data:{type:Object},mode:{type:String},endpoint:{type:String},method:{type:String},publishableKey:{type:String},baseUrl:{type:String},specUrl:{type:String},lang:{type:String},submitLabel:{type:String},attribution:{type:String}},setup(e){let n=f(null);return C(()=>{d().catch(t=>{n.value=t instanceof Error?t:new Error(String(t))})}),()=>{if(n.value)return l("div",{role:"alert"},`Roxy UI script load failed: ${n.value.message}`);let t={};return e.data!==void 0&&(t[".data"]=e.data),e.mode!==void 0&&(t[".mode"]=e.mode),e.endpoint!==void 0&&(t[".endpoint"]=e.endpoint),e.method!==void 0&&(t[".method"]=e.method),e.publishableKey!==void 0&&(t[".publishableKey"]=e.publishableKey),e.baseUrl!==void 0&&(t[".baseUrl"]=e.baseUrl),e.specUrl!==void 0&&(t[".specUrl"]=e.specUrl),e.lang!==void 0&&(t[".lang"]=e.lang),e.submitLabel!==void 0&&(t[".submitLabel"]=e.submitLabel),e.attribution!==void 0&&(t[".attribution"]=e.attribution),l("roxy-compatibility-card",t)}}});export{R as RoxyCompatibilityCard};
2
2
  //# sourceMappingURL=compatibility-card.js.map