@zonos/amino 6.0.0 → 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.
- package/all.d.ts +0 -1
- package/components/badge/Badge.js +1 -1
- package/components/button/Button.d.ts +1 -2
- package/components/button/Button.js +1 -1
- package/components/checkbox/Checkbox.js +1 -1
- package/components/country-multi-select/CountryMultiSelectExpanded.js +1 -1
- package/components/cover-sheet/CoverSheet.js +1 -1
- package/components/currency/DualCurrency.js +1 -1
- package/components/dialog/BaseDialog.js +1 -1
- package/components/dialog/announcement/AnnouncementDialog.js +1 -1
- package/components/drop-zone/DropZone.js +1 -1
- package/components/file-upload/FileUpload.js +1 -1
- package/components/filter/FilterWrapper.js +1 -1
- package/components/filter/filter-amount/FilterAmount.js +1 -1
- package/components/input/Input.js +1 -1
- package/components/input/MultiInput.js +1 -1
- package/components/input/input-simple/input-type/_DateInput.js +1 -1
- package/components/input/input-simple/input-type/_InputBase.js +1 -1
- package/components/input/input-simple/input-type/_NumberInput.js +1 -1
- package/components/input/input-simple/input-type/_TimeInput.js +1 -1
- package/components/input/input-type/_DateInput.js +1 -1
- package/components/input/input-type/_FloatLabelInput.js +1 -1
- package/components/input/input-type/_NumberInput.js +1 -1
- package/components/language-picker/LanguagePicker.js +1 -1
- package/components/layout/Layout.js +1 -1
- package/components/menu/MenuItem.js +1 -1
- package/components/pivot-table/PivotTable.js +1 -1
- package/components/progress-bar/ProgressBar.js +1 -1
- package/components/rich-checkbox/RichCheckbox.js +1 -1
- package/components/rich-radio/RichRadio.js +1 -1
- package/components/rounded-icon/RoundedIcon.js +1 -1
- package/components/select/_StyledReactSelect.js +1 -1
- package/components/simple-table/SimpleTable.js +1 -1
- package/components/simple-table/SimpleTableRow.js +1 -1
- package/components/table/TableCell.js +1 -1
- package/components/text/Text.js +1 -1
- package/components/textarea/Textarea.js +1 -1
- package/components/thumbnail/Thumbnail.js +1 -1
- package/components/toast/ToastContext.js +1 -1
- package/components/tooltip/Tooltip.js +1 -1
- package/components/ui/sonner.js +1 -1
- package/components/ui/tooltip.js +1 -1
- package/package.json +13 -13
- package/tsconfig.tsbuildinfo +1 -1
- package/utils/hooks/useCountryOptions.d.ts +2 -2
- package/utils/prepCountryOptions.d.ts +1 -1
- package/utils/translations/supportedLanguages.d.ts +1 -1
- package/components/connection-map/ConnectionMap.d.ts +0 -75
- package/components/connection-map/ConnectionMap.js +0 -1
- package/tailwind.css +0 -34
- package/tools/mcp/client.d.ts +0 -37
- package/tools/mcp/index.d.ts +0 -3
- package/tools/mcp/tools.d.ts +0 -37
- package/tools/mcp/types.d.ts +0 -124
- package/types/GeoJsonWorld.d.ts +0 -21
|
@@ -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: "
|
|
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:"rounded-amino-12 m-0 box-border w-full",height:f,style:{padding:"16.5%"}}):u.jsx("div",{className:n.cn("rounded-amino-12 dark:bg-night-gray-50 overflow-hidden bg-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,34 +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 (&:where([data-theme="night"], [data-theme="night"] *));
|
|
6
|
-
|
|
7
|
-
/* Ripple animation for RippleGroup button effect */
|
|
8
|
-
@keyframes ripple {
|
|
9
|
-
from {
|
|
10
|
-
opacity: var(--amino-ripple-group-opacity, 0.12);
|
|
11
|
-
transform: scale(0);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
to {
|
|
15
|
-
opacity: 0;
|
|
16
|
-
transform: scale(2);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@utility animate-ripple {
|
|
21
|
-
animation: ripple var(--amino-ripple-group-duration, 600ms) ease-out
|
|
22
|
-
forwards;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/* GlowWrapper ::after positioning and background (shared rule, not per-instance) */
|
|
26
|
-
@layer components {
|
|
27
|
-
[style*='--amino-glow-wrapper-x']::after {
|
|
28
|
-
width: min(100%, 400px);
|
|
29
|
-
height: min(100%, 400px);
|
|
30
|
-
top: calc(var(--amino-glow-wrapper-y) * 1px - min(50%, calc(400px / 2)));
|
|
31
|
-
left: calc(var(--amino-glow-wrapper-x) * 1px - min(50%, calc(400px / 2)));
|
|
32
|
-
background: var(--amino-glow-wrapper-background);
|
|
33
|
-
}
|
|
34
|
-
}
|
package/tools/mcp/client.d.ts
DELETED
|
@@ -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
|
-
}
|
package/tools/mcp/index.d.ts
DELETED
package/tools/mcp/tools.d.ts
DELETED
|
@@ -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>>;
|
package/tools/mcp/types.d.ts
DELETED
|
@@ -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
|
-
};
|
package/types/GeoJsonWorld.d.ts
DELETED
|
@@ -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 {};
|