@zonos/amino 6.0.0-alpha.9 → 6.0.2

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 (141) hide show
  1. package/all.d.ts +0 -1
  2. package/amino.css +29 -7
  3. package/components/avatar/AvatarBase.js +1 -1
  4. package/components/badge/Badge.js +1 -1
  5. package/components/banner/Banner.js +1 -1
  6. package/components/button/Button.d.ts +1 -2
  7. package/components/button/Button.js +1 -1
  8. package/components/button/ButtonIcon.js +1 -1
  9. package/components/button/MenuButton.js +1 -1
  10. package/components/button/RippleGroup.js +1 -1
  11. package/components/button/button-group/ButtonGroup.js +1 -1
  12. package/components/card/Card.js +1 -1
  13. package/components/checkbox/Checkbox.js +1 -1
  14. package/components/collapse/Collapse.js +1 -1
  15. package/components/country-multi-select/CountryMultiSelectExpanded.js +1 -1
  16. package/components/country-multi-select/CountryMultiSelectExpandedOption.js +1 -1
  17. package/components/cover-sheet/CoverSheet.js +1 -1
  18. package/components/currency/Currency.js +1 -1
  19. package/components/currency/DualCurrency.js +1 -1
  20. package/components/dialog/BaseDialog.js +1 -1
  21. package/components/dialog/Dialog.js +1 -1
  22. package/components/dialog/DismissableDialog.js +1 -1
  23. package/components/dialog/announcement/AnnouncementDialog.js +1 -1
  24. package/components/divider/Divider.js +1 -1
  25. package/components/drop-zone/DropZone.js +1 -1
  26. package/components/file-upload/FileUpload.js +1 -1
  27. package/components/filter/FilterWrapper.js +1 -1
  28. package/components/filter/filter-amount/FilterAmount.js +1 -1
  29. package/components/filter/filter-date/DateControlsWrapper.js +1 -1
  30. package/components/glow/GlowWrapper.js +1 -1
  31. package/components/input/Input.js +1 -1
  32. package/components/input/MultiInput.js +1 -1
  33. package/components/input/input-simple/InputSimple.js +1 -1
  34. package/components/input/input-simple/input-type/_DateInput.d.ts +1 -1
  35. package/components/input/input-simple/input-type/_DateInput.js +1 -1
  36. package/components/input/input-simple/input-type/_InputBase.d.ts +1 -1
  37. package/components/input/input-simple/input-type/_InputBase.js +1 -1
  38. package/components/input/input-simple/input-type/_NumberInput.d.ts +1 -1
  39. package/components/input/input-simple/input-type/_NumberInput.js +1 -1
  40. package/components/input/input-simple/input-type/_PasswordInput.d.ts +1 -1
  41. package/components/input/input-simple/input-type/_PasswordInput.js +1 -1
  42. package/components/input/input-simple/input-type/_TimeInput.d.ts +1 -1
  43. package/components/input/input-simple/input-type/_TimeInput.js +1 -1
  44. package/components/input/input-type/_DateInput.d.ts +1 -1
  45. package/components/input/input-type/_DateInput.js +1 -1
  46. package/components/input/input-type/_FloatLabelInput.d.ts +1 -1
  47. package/components/input/input-type/_FloatLabelInput.js +1 -1
  48. package/components/input/input-type/_NumberInput.d.ts +1 -1
  49. package/components/input/input-type/_NumberInput.js +1 -1
  50. package/components/input/input-type/_PasswordInput.d.ts +1 -1
  51. package/components/input/input-type/_PasswordInput.js +1 -1
  52. package/components/input/input-type/_TimeInput.d.ts +1 -1
  53. package/components/input/input-type/_TimeInput.js +1 -1
  54. package/components/json-vision-viewer/JsonVisionViewer.js +1 -1
  55. package/components/language-picker/LanguageItem.js +1 -1
  56. package/components/language-picker/LanguagePicker.js +1 -1
  57. package/components/layout/Layout.js +1 -1
  58. package/components/layout/NavigationGroup.js +1 -1
  59. package/components/list/CollapsibleList.js +1 -1
  60. package/components/list/List.js +1 -1
  61. package/components/list-item/ListItem.js +1 -1
  62. package/components/menu/Menu.js +1 -1
  63. package/components/menu/MenuItem.js +1 -1
  64. package/components/nested-data-table/NestedDataTable.js +1 -1
  65. package/components/nested-data-table/_Filter.js +1 -1
  66. package/components/nested-data-table/_TableData.js +1 -1
  67. package/components/pivot-table/PivotTable.js +1 -1
  68. package/components/progress-bar/ProgressBar.js +1 -1
  69. package/components/radio/Radio.js +1 -1
  70. package/components/rest-state/RestState.js +1 -1
  71. package/components/rich-card-select/RichCardStateSelect.js +1 -1
  72. package/components/rich-checkbox/RichCheckbox.js +1 -1
  73. package/components/rich-radio/RichRadio.d.ts +5 -5
  74. package/components/rich-radio/RichRadio.js +1 -1
  75. package/components/rounded-icon/RoundedIcon.js +1 -1
  76. package/components/section/HSection.js +1 -1
  77. package/components/section/VSection.js +1 -1
  78. package/components/section/_SectionHeader.js +1 -1
  79. package/components/section/_SectionInnerWrapper.js +1 -1
  80. package/components/select/LanguageSelect.js +1 -1
  81. package/components/select/_StyledReactSelect.js +1 -1
  82. package/components/simple-table/SimpleTable.js +1 -1
  83. package/components/simple-table/SimpleTableRow.js +1 -1
  84. package/components/skeleton/Skeleton.js +1 -1
  85. package/components/slide-over/SlideOver.js +1 -1
  86. package/components/spinner/Spinner.js +1 -1
  87. package/components/stack/Stack.js +1 -1
  88. package/components/switch/Switch.d.ts +3 -3
  89. package/components/switch/Switch.js +1 -1
  90. package/components/table/TableCell.js +1 -1
  91. package/components/table/TableRow.js +1 -1
  92. package/components/table/TableRowCollapse.js +1 -1
  93. package/components/tabs/Tabs.js +1 -1
  94. package/components/tag/Tag.js +1 -1
  95. package/components/text/Text.js +1 -1
  96. package/components/text-avatar/TextAvatar.js +1 -1
  97. package/components/textarea/Textarea.js +1 -1
  98. package/components/theme-select/ThemeSelect.js +1 -1
  99. package/components/thumbnail/Thumbnail.js +1 -1
  100. package/components/toast/Toast.js +1 -1
  101. package/components/toast/ToastContext.js +1 -1
  102. package/components/toggle/Toggle.js +1 -1
  103. package/components/tooltip/Tooltip.js +1 -1
  104. package/components/ui/alert-dialog.js +1 -1
  105. package/components/ui/avatar.js +1 -1
  106. package/components/ui/card.js +1 -1
  107. package/components/ui/checkbox.js +1 -1
  108. package/components/ui/dialog.js +1 -1
  109. package/components/ui/dropdown-menu.js +1 -1
  110. package/components/ui/input.js +1 -1
  111. package/components/ui/popover.js +1 -1
  112. package/components/ui/progress.js +1 -1
  113. package/components/ui/radio-group.js +1 -1
  114. package/components/ui/select.js +1 -1
  115. package/components/ui/separator.js +1 -1
  116. package/components/ui/sheet.d.ts +1 -1
  117. package/components/ui/sheet.js +1 -1
  118. package/components/ui/skeleton.js +1 -1
  119. package/components/ui/sonner.js +1 -1
  120. package/components/ui/switch.js +1 -1
  121. package/components/ui/tabs.js +1 -1
  122. package/components/ui/textarea.js +1 -1
  123. package/components/ui/tooltip.js +1 -1
  124. package/package.json +13 -13
  125. package/pivot-table.css +13 -0
  126. package/reset.css +459 -457
  127. package/table-theme-overrides.css +3 -0
  128. package/tsconfig.tsbuildinfo +1 -1
  129. package/utils/cn.d.ts +2 -6
  130. package/utils/cn.js +1 -1
  131. package/utils/hooks/useCountryOptions.d.ts +2 -2
  132. package/utils/prepCountryOptions.d.ts +1 -1
  133. package/utils/translations/supportedLanguages.d.ts +1 -1
  134. package/components/connection-map/ConnectionMap.d.ts +0 -75
  135. package/components/connection-map/ConnectionMap.js +0 -1
  136. package/tailwind.css +0 -16
  137. package/tools/mcp/client.d.ts +0 -37
  138. package/tools/mcp/index.d.ts +0 -3
  139. package/tools/mcp/tools.d.ts +0 -37
  140. package/tools/mcp/types.d.ts +0 -124
  141. package/types/GeoJsonWorld.d.ts +0 -21
package/utils/cn.d.ts CHANGED
@@ -1,10 +1,6 @@
1
1
  import { type ClassValue } from 'clsx';
2
2
  /**
3
- * Merges class names using clsx and tailwind-merge.
4
- * Use this instead of raw `clsx()` when composing Tailwind utility classes
5
- * to ensure conflicting utilities resolve correctly (last-wins).
6
- *
7
- * @example
8
- * cn('px-4 py-2', isLarge && 'px-8', className)
3
+ * Merges class names using clsx and a custom configured tailwind-merge.
4
+ * Understands custom Zonos Amino design tokens properly.
9
5
  */
10
6
  export declare const cn: (...inputs: ClassValue[]) => string;
package/utils/cn.js CHANGED
@@ -1 +1 @@
1
- "use strict";var r=require("clsx"),e=require("tailwind-merge");exports.cn=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e.twMerge(r.clsx(t))};
1
+ "use strict";var e=require("clsx"),t=function(e){return e.includes("amino-")},r=function(e){return/-(0|1000)$/.test(e)},n=require("tailwind-merge").extendTailwindMerge({extend:{classGroups:{basis:[{basis:[t]}],"bg-color":[{bg:[r]}],"border-color":[{border:[t,r]}],"font-size":[{text:[t]}],"font-weight":[{font:[t]}],leading:[{leading:[t]}],shadow:[{shadow:[t,function(e){return/^(raised|btn|input|select|focus|glow)-/.test(e)}]}],"text-color":[{text:[r]}]},theme:{color:[t,r],"drop-shadow":[t],radius:[t],spacing:[t]}}});exports.cn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return n(e.clsx(t))};
@@ -24,10 +24,10 @@ declare const schemaCountry: z.ZodObject<{
24
24
  label: string;
25
25
  displayName: string;
26
26
  value: string;
27
+ languageCode: string | null;
27
28
  code3: string | null;
28
29
  currencyCode: string;
29
30
  fraudRisk: number;
30
- languageCode: string | null;
31
31
  numericCode: string | null;
32
32
  phoneCode: string[];
33
33
  upsCode: string | null;
@@ -39,10 +39,10 @@ declare const schemaCountry: z.ZodObject<{
39
39
  label: string;
40
40
  displayName: string;
41
41
  value: string;
42
+ languageCode: string | null;
42
43
  code3: string | null;
43
44
  currencyCode: string;
44
45
  fraudRisk: number;
45
- languageCode: string | null;
46
46
  numericCode: string | null;
47
47
  phoneCode: string[];
48
48
  upsCode: string | null;
@@ -9,10 +9,10 @@ export declare const prepCountryOptions: <CountryCode extends string = string>({
9
9
  active: boolean;
10
10
  code: CountryCode;
11
11
  displayName: string;
12
+ languageCode: string | null;
12
13
  code3: string | null;
13
14
  currencyCode: string;
14
15
  fraudRisk: number;
15
- languageCode: string | null;
16
16
  numericCode: string | null;
17
17
  upsCode: string | null;
18
18
  zipRegex: string | null;
@@ -78,5 +78,5 @@ export declare const supportedLanguages: readonly [{
78
78
  export type SupportedLanguageCode = (typeof supportedLanguages)[number]['code'];
79
79
  export declare const supportedLanguageOptions: {
80
80
  label: "dansk" | "Deutsche" | "English" | "Español" | "Français" | "bahasa Indonesia" | "Italiano" | "日本語" | "한국어" | "Nederlands" | "norsk" | "Polskie" | "Português" | "русский" | "svenska" | "ไทย" | "Türk" | "Tiếng Việt" | "中文";
81
- value: "DE" | "ES" | "FR" | "ID" | "IT" | "NL" | "NO" | "PL" | "PT" | "RU" | "SV" | "TH" | "TR" | "VI" | "DA" | "EN" | "JA" | "KO" | "ZH_CN";
81
+ value: "DA" | "DE" | "EN" | "ES" | "FR" | "ID" | "IT" | "JA" | "KO" | "NL" | "NO" | "PL" | "PT" | "RU" | "SV" | "TH" | "TR" | "VI" | "ZH_CN";
82
82
  }[];
@@ -1,75 +0,0 @@
1
- import type { BaseProps } from "../../types/BaseProps";
2
- import type { GeoJsonWorld } from "../../types/GeoJsonWorld";
3
- import type { CountryOption } from "../../utils/hooks/useCountryOptions";
4
- type Props = BaseProps & {
5
- /**
6
- * Array of country options to be used for mapping country names to ISO codes
7
- */
8
- countries: CountryOption[];
9
- /**
10
- * ISO country code for the origin country
11
- */
12
- from: string;
13
- /**
14
- * Height of the map in pixels
15
- * @default 400
16
- */
17
- height?: number;
18
- /**
19
- * ISO country code for the destination country
20
- */
21
- to: string;
22
- /**
23
- * GeoJSON data containing world map information
24
- */
25
- worldData: GeoJsonWorld | null;
26
- };
27
- /**
28
- * A geographic map component that visualizes connections between two countries.
29
- * Displays a world map with highlighted countries and a connecting line between them,
30
- * automatically centering and scaling the view for optimal visualization.
31
- *
32
- * @example Basic usage
33
- * ```tsx
34
- * const { countryOptions } = useCountryOptions();
35
- * const [worldData, setWorldData] = useState<GeoJsonWorld | null>(null);
36
- *
37
- * useEffect(() => {
38
- * fetch('/zonos-countries-geojson.json')
39
- * .then(response => response.json())
40
- * .then(data => setWorldData(data));
41
- * }, []);
42
- *
43
- * <ConnectionMap
44
- * countries={countryOptions}
45
- * from="US"
46
- * to="JP"
47
- * worldData={worldData}
48
- * />
49
- * ```
50
- *
51
- * @example With custom height
52
- * ```tsx
53
- * <ConnectionMap
54
- * countries={countryOptions}
55
- * from="GB"
56
- * to="AU"
57
- * height={600}
58
- * worldData={worldData}
59
- * />
60
- * ```
61
- *
62
- * @example With custom styling
63
- * ```tsx
64
- * <ConnectionMap
65
- * className="custom-map-container"
66
- * countries={countryOptions}
67
- * from="CA"
68
- * to="BR"
69
- * style={{ border: '1px solid var(--amino-gray-200)' }}
70
- * worldData={worldData}
71
- * />
72
- * ```
73
- */
74
- export declare const ConnectionMap: ({ className, countries, from, height, style, to, worldData, }: Props) => import("react").JSX.Element;
75
- export {};
@@ -1 +0,0 @@
1
- "use strict";var e=require("../../tslib.es6-cdc5f922.js"),r=require("react"),t=require("react-simple-maps"),i=require("d3-geo"),s=require("topojson-client"),a=require("../skeleton/Skeleton.js"),o=require("../../styles/constants/theme.js"),n=require("../../utils/cn.js"),l=require("../../utils/getCountryCodeByName.js"),u=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");exports.ConnectionMap=function(c){var d=c.className,h=c.countries,m=c.from,g=c.height,f=void 0===g?400:g,j=c.style,x=c.to,b=c.worldData,p=e.__read(r.useState([0,0]),2),y=p[0],v=p[1],k=e.__read(r.useState(1),2),q=k[0],_=k[1],C=e.__read(r.useState([0,0,0]),2),M=C[0],w=C[1],N=r.useMemo(function(){return b?s.feature(b,b.objects.countries).features:null},[b]),S=r.useCallback(function(e){var r=null==N?void 0:N.find(function(r){var t;return l.getCountryCodeByName(null===(t=r.properties)||void 0===t?void 0:t.name,h)===e});return r?i.geoCentroid(r):[0,0]},[h,N]),D=!(N&&h.length&&m&&x);return r.useEffect(function(){if(!D){var r=e.__read(S(m),2),t=r[0],s=r[1],a=e.__read(S(x),2),o=a[0],n=a[1],l=i.geoDistance([t,s],[o,n]),u=i.geoDistance([t,0],[o,0]),c=i.geoDistance([0,s],[0,n]),d=function(e,r){return-19.46498024*e+-92.29376925*r+284.7+(e+r>4?80*(e+r-4):0)}(u,c);_(d);var h=e.__read([(t+o)/2,(s+n)/2],2),g=h[0],f=h[1];v([0,f]);var j=-g;Math.abs(t-o)>180&&(j+=180);var b=Math.abs(f)>55?l*-(Math.abs(f)-50):0,p=c>1&&u>c&&Math.max(s,n)>50?u/c*-5:0;w([j,b+p,0])}},[S,x,m,D]),D?u.jsx(a.Skeleton,{className:"box-border m-0 w-full rounded-amino-12",height:f,style:{padding:"16.5%"}}):u.jsx("div",{className:n.cn("overflow-hidden rounded-amino-12 bg-gray-50 dark:bg-night-gray-50","[&_*]:outline-none",d),style:j,children:u.jsxs(t.ComposableMap,{height:f,projection:"geoEqualEarth",projectionConfig:{center:y,rotate:M,scale:q},children:[u.jsx(t.Geographies,{geography:N,children:function(e){return e.geographies.map(function(e){var r=[x,m].includes(l.getCountryCodeByName(e.properties.name,h));return u.jsx(t.Geography,{fill:r?o.theme.blue100:o.theme.gray0,geography:e,stroke:r?o.theme.blue400:o.theme.gray200,strokeWidth:2},e.rsmKey)})}}),u.jsxs(t.Marker,{coordinates:S(m),children:[u.jsx("circle",{fill:o.theme.blue300,r:10}),u.jsx("circle",{fill:o.theme.blue400,r:7})]}),u.jsxs(t.Marker,{coordinates:S(x),children:[u.jsx("circle",{fill:o.theme.blue300,r:10}),u.jsx("circle",{fill:o.theme.blue400,r:7})]}),u.jsx(t.Line,{from:S(m),stroke:o.theme.blue600,strokeWidth:4,to:S(x)}),u.jsxs(t.Marker,{coordinates:S(m),children:[u.jsx("circle",{fill:"white",r:4}),u.jsx("circle",{fill:o.theme.blue600,r:2})]}),u.jsxs(t.Marker,{coordinates:S(x),children:[u.jsx("circle",{fill:"white",r:4}),u.jsx("circle",{fill:o.theme.blue600,r:2})]})]})})};
package/tailwind.css DELETED
@@ -1,16 +0,0 @@
1
- @import 'tailwindcss';
2
- @config '../../tailwind.config.ts';
3
-
4
- /* Map the Tailwind `dark:` variant to amino's night theme selector */
5
- @custom-variant dark (&:is([data-theme='night'] *));
6
-
7
- /* GlowWrapper ::after positioning and background (shared rule, not per-instance) */
8
- @layer components {
9
- [style*='--amino-glow-wrapper-x']::after {
10
- width: min(100%, 400px);
11
- height: min(100%, 400px);
12
- top: calc(var(--amino-glow-wrapper-y) * 1px - min(50%, calc(400px / 2)));
13
- left: calc(var(--amino-glow-wrapper-x) * 1px - min(50%, calc(400px / 2)));
14
- background: var(--amino-glow-wrapper-background);
15
- }
16
- }
@@ -1,37 +0,0 @@
1
- import type { ComponentDetails, ComponentListing, FindComponentOptions, MCPClientOptions, MCPResponse } from './types';
2
- /**
3
- * Client for interacting with MCP server
4
- */
5
- export declare class MCPClient {
6
- private baseUrl;
7
- /**
8
- * Create a new MCP client
9
- * @param options - Client options
10
- */
11
- constructor(options: MCPClientOptions);
12
- /**
13
- * Make a request to the MCP server
14
- * @param path - API path
15
- * @param options - Fetch options
16
- * @returns Response data or error
17
- */
18
- private request;
19
- /**
20
- * List all available components
21
- * @returns List of components or error
22
- */
23
- listComponents(): Promise<MCPResponse<ComponentListing>>;
24
- /**
25
- * Find component by name
26
- * @param name - Component name to search for
27
- * @param options - Search options
28
- * @returns Matching component or error
29
- */
30
- findComponentByName(name: string, options?: FindComponentOptions): Promise<MCPResponse<ComponentListing>>;
31
- /**
32
- * Get detailed information about a component
33
- * @param id - Component identifier
34
- * @returns Component details or error
35
- */
36
- getComponentDetails(id: string): Promise<MCPResponse<ComponentDetails>>;
37
- }
@@ -1,3 +0,0 @@
1
- export * from './client';
2
- export * from './tools';
3
- export * from './types';
@@ -1,37 +0,0 @@
1
- import { MCPClient } from './client';
2
- import type { ComponentDetails, ComponentListing, FindComponentOptions, MCPResponse } from './types';
3
- /**
4
- * Set the default MCP client
5
- * @param client - MCP client instance
6
- */
7
- export declare function setMCPClient(client: MCPClient): void;
8
- /**
9
- * List all available components
10
- *
11
- * This tool corresponds to the Model Context Protocol's list-components
12
- * capability, providing a way to discover all components available in the design system.
13
- *
14
- * @returns Promise resolving to component listing or error
15
- */
16
- export declare function listComponents(): Promise<MCPResponse<ComponentListing>>;
17
- /**
18
- * Find component by name
19
- *
20
- * This tool corresponds to the Model Context Protocol's find-component-by-name
21
- * capability, allowing lookup of components by their name.
22
- *
23
- * @param name - Component name to search for
24
- * @param options - Optional search configuration
25
- * @returns Promise resolving to matching components or error
26
- */
27
- export declare function findComponentByName(name: string, options?: FindComponentOptions): Promise<MCPResponse<ComponentListing>>;
28
- /**
29
- * Get detailed information about a component
30
- *
31
- * This tool corresponds to the Model Context Protocol's get-component-details
32
- * capability, providing comprehensive information about a specific component.
33
- *
34
- * @param id - Component identifier
35
- * @returns Promise resolving to component details or error
36
- */
37
- export declare function getComponentDetails(id: string): Promise<MCPResponse<ComponentDetails>>;
@@ -1,124 +0,0 @@
1
- /**
2
- * Types for Model Context Protocol (MCP) implementation
3
- */
4
- export type ComponentListingItem = {
5
- /**
6
- * Brief description of the component
7
- */
8
- description?: string;
9
- /**
10
- * Unique identifier for the component
11
- */
12
- id: string;
13
- /**
14
- * Display name of the component
15
- */
16
- name: string;
17
- /**
18
- * Path to the component file relative to project root
19
- */
20
- path: string;
21
- /**
22
- * Tags associated with the component
23
- */
24
- tags?: string[];
25
- };
26
- export type ComponentListing = {
27
- /**
28
- * List of available components
29
- */
30
- components: ComponentListingItem[];
31
- };
32
- export type PropDefinition = {
33
- /**
34
- * Default value for the prop if any
35
- */
36
- defaultValue?: string;
37
- /**
38
- * Description of the prop
39
- */
40
- description?: string;
41
- /**
42
- * Example usage of the prop
43
- */
44
- example?: string;
45
- /**
46
- * Name of the prop
47
- */
48
- name: string;
49
- /**
50
- * Whether the prop is required
51
- */
52
- required: boolean;
53
- /**
54
- * Type of the prop
55
- */
56
- type: string;
57
- };
58
- export type ComponentDetails = {
59
- /**
60
- * Full description of the component
61
- */
62
- description?: string;
63
- /**
64
- * Usage examples
65
- */
66
- examples?: string[];
67
- /**
68
- * Unique identifier for the component
69
- */
70
- id: string;
71
- /**
72
- * Name of the component
73
- */
74
- name: string;
75
- /**
76
- * Path to the component file
77
- */
78
- path: string;
79
- /**
80
- * Component props definition
81
- */
82
- props: PropDefinition[];
83
- /**
84
- * Related components
85
- */
86
- relatedComponents?: string[];
87
- /**
88
- * Tags associated with the component
89
- */
90
- tags?: string[];
91
- };
92
- export type MCPClientOptions = {
93
- /**
94
- * Base URL for MCP server
95
- */
96
- baseUrl: string;
97
- };
98
- export type MCPError = {
99
- /**
100
- * Error code
101
- */
102
- code?: string;
103
- /**
104
- * Error message
105
- */
106
- message: string;
107
- };
108
- export type MCPResponse<T> = {
109
- /**
110
- * Response data
111
- */
112
- data?: T;
113
- /**
114
- * Error information if request failed
115
- */
116
- error?: MCPError;
117
- };
118
- export type FindComponentOptions = {
119
- /**
120
- * Whether to use exact name matching
121
- * @default true
122
- */
123
- exact?: boolean;
124
- };
@@ -1,21 +0,0 @@
1
- import type { BBox } from 'geojson';
2
- import type { Arc, MultiPolygon, Polygon, Transform } from 'topojson-specification';
3
- type Properties = {
4
- name: string;
5
- };
6
- type Geometry = (Polygon | MultiPolygon) & {
7
- properties: Properties;
8
- };
9
- export type GeoJsonWorld = {
10
- arcs: Arc[];
11
- bbox: BBox;
12
- objects: {
13
- countries: {
14
- geometries: Geometry[];
15
- type: 'GeometryCollection';
16
- };
17
- };
18
- transform: Transform;
19
- type: 'Topology';
20
- };
21
- export {};