@ogc-maps/storybook-components 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BasemapSwitcher-BW7lyZ2Y.js +43 -0
- package/dist/CollapsibleControl-Dz11KBrL.js +53 -0
- package/dist/CoordinateDisplay-PxPmVjpm.js +47 -0
- package/dist/LayerPanel-K00X2QUj.js +83 -0
- package/dist/Legend-D4cc1JzQ.js +94 -0
- package/dist/SearchPanel-CFVQV6JJ.js +135 -0
- package/dist/components/BasemapSwitcher/index.d.ts +2 -0
- package/dist/components/BasemapSwitcher/index.js +4 -0
- package/dist/components/CollapsibleControl/index.d.ts +2 -0
- package/dist/components/CollapsibleControl/index.js +4 -0
- package/dist/components/CoordinateDisplay/index.d.ts +2 -0
- package/dist/components/CoordinateDisplay/index.js +6 -0
- package/dist/components/LayerPanel/index.d.ts +2 -0
- package/dist/components/LayerPanel/index.js +4 -0
- package/dist/components/Legend/index.d.ts +2 -0
- package/dist/components/Legend/index.js +4 -0
- package/dist/components/SearchPanel/index.d.ts +2 -0
- package/dist/components/SearchPanel/index.js +4 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +12 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +47 -0
- package/dist/ogcApi-BuXSs9i0.js +48 -0
- package/dist/schemas/index.d.ts +2 -0
- package/dist/schemas/index.js +2821 -0
- package/dist/src/components/BasemapSwitcher/BasemapSwitcher.d.ts +9 -0
- package/dist/src/components/BasemapSwitcher/BasemapSwitcher.d.ts.map +1 -0
- package/dist/src/components/BasemapSwitcher/index.d.ts +3 -0
- package/dist/src/components/BasemapSwitcher/index.d.ts.map +1 -0
- package/dist/src/components/CollapsibleControl/CollapsibleControl.d.ts +31 -0
- package/dist/src/components/CollapsibleControl/CollapsibleControl.d.ts.map +1 -0
- package/dist/src/components/CollapsibleControl/index.d.ts +3 -0
- package/dist/src/components/CollapsibleControl/index.d.ts.map +1 -0
- package/dist/src/components/CoordinateDisplay/CoordinateDisplay.d.ts +26 -0
- package/dist/src/components/CoordinateDisplay/CoordinateDisplay.d.ts.map +1 -0
- package/dist/src/components/CoordinateDisplay/index.d.ts +2 -0
- package/dist/src/components/CoordinateDisplay/index.d.ts.map +1 -0
- package/dist/src/components/LayerPanel/LayerPanel.d.ts +10 -0
- package/dist/src/components/LayerPanel/LayerPanel.d.ts.map +1 -0
- package/dist/src/components/LayerPanel/index.d.ts +3 -0
- package/dist/src/components/LayerPanel/index.d.ts.map +1 -0
- package/dist/src/components/Legend/Legend.d.ts +8 -0
- package/dist/src/components/Legend/Legend.d.ts.map +1 -0
- package/dist/src/components/Legend/index.d.ts +3 -0
- package/dist/src/components/Legend/index.d.ts.map +1 -0
- package/dist/src/components/SearchPanel/SearchPanel.d.ts +11 -0
- package/dist/src/components/SearchPanel/SearchPanel.d.ts.map +1 -0
- package/dist/src/components/SearchPanel/index.d.ts +3 -0
- package/dist/src/components/SearchPanel/index.d.ts.map +1 -0
- package/dist/src/components/index.d.ts +13 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/hooks/index.d.ts +7 -0
- package/dist/src/hooks/index.d.ts.map +1 -0
- package/dist/src/hooks/useOgcCollections.d.ts +13 -0
- package/dist/src/hooks/useOgcCollections.d.ts.map +1 -0
- package/dist/src/hooks/useOgcFeatures.d.ts +17 -0
- package/dist/src/hooks/useOgcFeatures.d.ts.map +1 -0
- package/dist/src/main.d.ts +6 -0
- package/dist/src/main.d.ts.map +1 -0
- package/dist/src/schemas/config.d.ts +1510 -0
- package/dist/src/schemas/config.d.ts.map +1 -0
- package/dist/src/schemas/index.d.ts +2 -0
- package/dist/src/schemas/index.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +23 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/src/utils/ogcApi.d.ts +100 -0
- package/dist/src/utils/ogcApi.d.ts.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +21 -0
- package/dist/useOgcFeatures-CmJxErv4.js +44 -0
- package/package.json +86 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/schemas/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;EAM3B,CAAC;AAIH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAK7B,CAAC;AAIH,eAAO,MAAM,eAAe;;;;;;;;;;;;EAI1B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;EAK1B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AAIH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG1B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG1B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAI5B,CAAC;AAIH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAC;AAIH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAC;AA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;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEhD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEpD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ViewConfigSchema, OgcApiSourceSchema, FillPaintSchema, LinePaintSchema, CirclePaintSchema, FillStyleSchema, LineStyleSchema, CircleStyleSchema, StyleConfigSchema, LegendEntrySchema, LegendConfigSchema, SearchFieldSchema, SearchConfigSchema, FilterConfigSchema, LayerConfigSchema, BasemapConfigSchema, UIConfigSchema, MapConfigSchema, validateMapConfig, safeValidateMapConfig, } from './config';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import { ViewConfigSchema, OgcApiSourceSchema, FillPaintSchema, LinePaintSchema, CirclePaintSchema, FillStyleSchema, LineStyleSchema, CircleStyleSchema, StyleConfigSchema, LegendEntrySchema, LegendConfigSchema, SearchFieldSchema, SearchConfigSchema, FilterConfigSchema, LayerConfigSchema, BasemapConfigSchema, UIConfigSchema, MapConfigSchema } from '../schemas/config';
|
|
3
|
+
export type ViewConfig = z.infer<typeof ViewConfigSchema>;
|
|
4
|
+
export type OgcApiSource = z.infer<typeof OgcApiSourceSchema>;
|
|
5
|
+
export type FillPaint = z.infer<typeof FillPaintSchema>;
|
|
6
|
+
export type LinePaint = z.infer<typeof LinePaintSchema>;
|
|
7
|
+
export type CirclePaint = z.infer<typeof CirclePaintSchema>;
|
|
8
|
+
export type FillStyle = z.infer<typeof FillStyleSchema>;
|
|
9
|
+
export type LineStyle = z.infer<typeof LineStyleSchema>;
|
|
10
|
+
export type CircleStyle = z.infer<typeof CircleStyleSchema>;
|
|
11
|
+
export type StyleConfig = z.infer<typeof StyleConfigSchema>;
|
|
12
|
+
export type LegendEntry = z.infer<typeof LegendEntrySchema>;
|
|
13
|
+
export type LegendConfig = z.infer<typeof LegendConfigSchema>;
|
|
14
|
+
export type SearchField = z.infer<typeof SearchFieldSchema>;
|
|
15
|
+
export type SearchConfig = z.infer<typeof SearchConfigSchema>;
|
|
16
|
+
export type SearchFilterValues = Record<string, string | number | undefined>;
|
|
17
|
+
export type FilterConfig = z.infer<typeof FilterConfigSchema>;
|
|
18
|
+
export type LayerConfig = z.infer<typeof LayerConfigSchema>;
|
|
19
|
+
export type BasemapConfig = z.infer<typeof BasemapConfigSchema>;
|
|
20
|
+
export type UIConfig = z.infer<typeof UIConfigSchema>;
|
|
21
|
+
export type MapConfig = z.infer<typeof MapConfigSchema>;
|
|
22
|
+
export { ViewConfigSchema, OgcApiSourceSchema, FillPaintSchema, LinePaintSchema, CirclePaintSchema, FillStyleSchema, LineStyleSchema, CircleStyleSchema, StyleConfigSchema, LegendEntrySchema, LegendConfigSchema, SearchFieldSchema, SearchConfigSchema, FilterConfigSchema, LayerConfigSchema, BasemapConfigSchema, UIConfigSchema, MapConfigSchema, };
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAI3B,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC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mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/** A single OGC API collection. */
|
|
2
|
+
export interface OgcCollection {
|
|
3
|
+
id: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
links: Array<{
|
|
7
|
+
href: string;
|
|
8
|
+
rel: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
}>;
|
|
12
|
+
extent?: {
|
|
13
|
+
spatial?: {
|
|
14
|
+
bbox?: number[][];
|
|
15
|
+
crs?: string;
|
|
16
|
+
};
|
|
17
|
+
temporal?: {
|
|
18
|
+
interval?: Array<[string | null, string | null]>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
itemType?: string;
|
|
22
|
+
}
|
|
23
|
+
/** The OGC API /collections response. */
|
|
24
|
+
export interface OgcCollectionsResponse {
|
|
25
|
+
collections: OgcCollection[];
|
|
26
|
+
links: Array<{
|
|
27
|
+
href: string;
|
|
28
|
+
rel: string;
|
|
29
|
+
type?: string;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
32
|
+
/** A GeoJSON Feature. */
|
|
33
|
+
export interface GeoJsonFeature {
|
|
34
|
+
type: 'Feature';
|
|
35
|
+
id?: string | number;
|
|
36
|
+
geometry: Record<string, unknown>;
|
|
37
|
+
properties: Record<string, unknown> | null;
|
|
38
|
+
}
|
|
39
|
+
/** A GeoJSON FeatureCollection with optional OGC numberMatched / numberReturned. */
|
|
40
|
+
export interface OgcFeatureCollection {
|
|
41
|
+
type: 'FeatureCollection';
|
|
42
|
+
features: GeoJsonFeature[];
|
|
43
|
+
numberMatched?: number;
|
|
44
|
+
numberReturned?: number;
|
|
45
|
+
links?: Array<{
|
|
46
|
+
href: string;
|
|
47
|
+
rel: string;
|
|
48
|
+
type?: string;
|
|
49
|
+
}>;
|
|
50
|
+
}
|
|
51
|
+
/** A single queryable property definition. */
|
|
52
|
+
export interface QueryableProperty {
|
|
53
|
+
title?: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
type: string;
|
|
56
|
+
enum?: string[];
|
|
57
|
+
}
|
|
58
|
+
/** OGC API queryables response. */
|
|
59
|
+
export interface OgcQueryables {
|
|
60
|
+
type: string;
|
|
61
|
+
title?: string;
|
|
62
|
+
description?: string;
|
|
63
|
+
properties: Record<string, QueryableProperty>;
|
|
64
|
+
}
|
|
65
|
+
/** Options for fetchFeatures. */
|
|
66
|
+
export interface FetchFeaturesOptions {
|
|
67
|
+
bbox?: [number, number, number, number];
|
|
68
|
+
limit?: number;
|
|
69
|
+
offset?: number;
|
|
70
|
+
properties?: string[];
|
|
71
|
+
datetime?: string;
|
|
72
|
+
filter?: Record<string, string | number>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Fetch the list of collections from an OGC API endpoint.
|
|
76
|
+
*/
|
|
77
|
+
export declare function fetchCollections(baseUrl: string): Promise<OgcCollection[]>;
|
|
78
|
+
/**
|
|
79
|
+
* Fetch GeoJSON features from an OGC API collection.
|
|
80
|
+
*/
|
|
81
|
+
export declare function fetchFeatures(baseUrl: string, collection: string, options?: FetchFeaturesOptions): Promise<OgcFeatureCollection>;
|
|
82
|
+
/**
|
|
83
|
+
* Fetch queryable properties for a collection.
|
|
84
|
+
*/
|
|
85
|
+
export declare function fetchQueryables(baseUrl: string, collection: string): Promise<OgcQueryables>;
|
|
86
|
+
/**
|
|
87
|
+
* Build the TileJSON URL for a collection's vector tiles.
|
|
88
|
+
*/
|
|
89
|
+
export declare function getTileJsonUrl(baseUrl: string, collection: string, tileMatrixSetId?: string): string;
|
|
90
|
+
/**
|
|
91
|
+
* Build the vector tile URL template for a collection.
|
|
92
|
+
* Returns a URL with `{z}/{x}/{y}` placeholders suitable for MapLibre.
|
|
93
|
+
*/
|
|
94
|
+
export declare function getVectorTileUrl(baseUrl: string, collection: string, tileMatrixSetId?: string): string;
|
|
95
|
+
/**
|
|
96
|
+
* Build a vector tile URL template with optional property filters applied as query parameters.
|
|
97
|
+
* Returns a URL with `{z}/{x}/{y}` placeholders suitable for MapLibre.
|
|
98
|
+
*/
|
|
99
|
+
export declare function getFilteredVectorTileUrl(baseUrl: string, collection: string, filter?: Record<string, string | number>, tileMatrixSetId?: string): string;
|
|
100
|
+
//# sourceMappingURL=ogcApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ogcApi.d.ts","sourceRoot":"","sources":["../../../src/utils/ogcApi.ts"],"names":[],"mappings":"AAIA,mCAAmC;AACnC,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3E,MAAM,CAAC,EAAE;QACP,OAAO,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;YAAC,GAAG,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC9C,QAAQ,CAAC,EAAE;YAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,GAAG,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC,CAAA;SAAE,CAAC;KACjE,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,yCAAyC;AACzC,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,aAAa,EAAE,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC5D;AAED,yBAAyB;AACzB,MAAM,W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MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CAC1C;AAkBD;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAIhF;AAED;;GAEG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,oBAAoB,CAAC,CAiB/B;AAED;;GAEG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,aAAa,CAAC,CAIxB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,eAAe,GAAE,MAA0B,GAC1C,MAAM,CAGR;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,eAAe,GAAE,MAA0B,GAC1C,MAAM,CAGR;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EACxC,eAAe,GAAE,MAA0B,GAC1C,MAAM,CAUR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/@types+react@18.3.28/node_modules/@types/react/global.d.ts","../../../node_modules/.pnpm/csstype@3.2.3/node_modules/csstype/index.d.ts","../../../node_modules/.pnpm/@types+prop-types@15.7.15/node_modules/@types/prop-types/index.d.ts","../../../node_modules/.pnpm/@types+react@18.3.28/node_modules/@types/react/index.d.ts","../../../node_modules/.pnpm/@types+react@18.3.28/node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/index.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/enumUtil.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/partialUtil.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/standard-schema.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.d.cts","../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.d.cts","../src/schemas/config.ts","../src/types/index.ts","../src/components/BasemapSwitcher/BasemapSwitcher.tsx","../src/components/BasemapSwitcher/index.ts","../../../node_modules/.pnpm/react-icons@5.5.0_react@18.3.1/node_modules/react-icons/lib/iconsManifest.d.ts","../../../node_modules/.pnpm/react-icons@5.5.0_react@18.3.1/node_modules/react-icons/lib/iconBase.d.ts","../../../node_modules/.pnpm/react-icons@5.5.0_react@18.3.1/node_modules/react-icons/lib/iconContext.d.ts","../../../node_modules/.pnpm/react-icons@5.5.0_react@18.3.1/node_modules/react-icons/lib/index.d.ts","../../../node_modules/.pnpm/react-icons@5.5.0_react@18.3.1/node_modules/react-icons/lu/index.d.ts","../src/components/CollapsibleControl/CollapsibleControl.tsx","../src/components/CollapsibleControl/index.ts","../src/components/CoordinateDisplay/CoordinateDisplay.tsx","../src/components/CoordinateDisplay/index.ts","../src/components/LayerPanel/LayerPanel.tsx","../src/components/LayerPanel/index.ts","../src/components/Legend/Legend.tsx","../src/components/Legend/index.ts","../src/utils/ogcApi.ts","../src/components/SearchPanel/SearchPanel.tsx","../src/components/SearchPanel/index.ts","../src/components/index.ts","../src/hooks/useOgcCollections.ts","../src/hooks/useOgcFeatures.ts","../src/hooks/index.ts","../src/schemas/index.ts","../src/utils/index.ts","../src/main.ts","../../../node_modules/.pnpm/@types+react-dom@18.3.7_@types+react@18.3.28/node_modules/@types/react-dom/index.d.ts"],"fileIdsList":[[51],[48,49,50],[71,72,73],[74],[65],[53,54,55],[56,57],[53,54,56,58,59,64],[54,56],[64],[56],[53,54,56,59,60,61,62,63],[52,68],[52,69],[51,52,75],[52,76],[52],[52,78],[51,52,68],[52,80],[52,82],[51,52,68,84],[52,85],[52,70,77,79,81,83,86],[52,68,84,88,89],[51,52,84],[52,68,87,90,91,92],[52,66],[52,67],[52,66,67],[52,84]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac51dd7d31333793807a6abaa5ae168512b6131bd41d9c5b98477fc3b7800f9f","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"833e92c058d033cde3f29a6c7603f517001d1ddd8020bc94d2067a3bc69b2a8e","impliedFormat":1},{"version":"08b2fae7b0f553ad9f79faec864b179fc58bc172e295a70943e8585dd85f600c","impliedFormat":1},{"version":"f12edf1672a94c578eca32216839604f1e1c16b40a1896198deabf99c882b340","impliedFormat":1},{"version":"e3498cf5e428e6c6b9e97bd88736f26d6cf147dedbfa5a8ad3ed8e05e059af8a","impliedFormat":1},{"version":"dba3f34531fd9b1b6e072928b6f885aa4d28dd6789cbd0e93563d43f4b62da53","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"2329d90062487e1eaca87b5e06abcbbeeecf80a82f65f949fd332cfcf824b87b","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"4fdb529707247a1a917a4626bfb6a293d52cd8ee57ccf03830ec91d39d606d6d","impliedFormat":1},{"version":"a9ebb67d6bbead6044b43714b50dcb77b8f7541ffe803046fdec1714c1eba206","impliedFormat":1},{"version":"5780b706cece027f0d4444fbb4e1af62dc51e19da7c3d3719f67b22b033859b9","impliedFormat":1},{"version":"a02743f20fe6696e2b9750a913c9ab255f3afe69645d518fff8a06030cddd75d","signature":"e1f704833fa47019bb62ae32fe7064e0516d2cb256ba4a9d7fb9209e1a205776"},{"version":"51d04778c063c1d702b742bee21e1a1ff710e97329936dd064aae5c71c8aefb7","signature":"6d7d15c7acc6a498565e6bb3fde5e9d106f720c8b8518c07623229677f687141"},{"version":"82ae1eca2d275921a0a1d5db3568b2fdeea1411a8e417328d31b969fac505e26","signature":"80edff23c09d445196c5200b92740b7669af8893452528a833a657684cc607fc"},"f698aca267871b11d99a408afcab6a336f5a4ad297a29e417593066b497b9dce",{"version":"d04f947114fa00a20ee3c3182bb2863c30869df93293cc673f200defadbd69d9","impliedFormat":1},{"version":"4c629a21fb1b4f2428660f662d5fef6282e359d369f9e5ec5fd6ac197c1906ee","impliedFormat":1},{"version":"785926dee839d0b3f5e479615d5653d77f6a9ef8aa4eea5bbdce2703c860b254","impliedFormat":1},{"version":"66d5c68894bb2975727cd550b53cd6f9d99f7cb77cb0cbecdd4af1c9332b01dd","impliedFormat":1},{"version":"b0d94232734d3a5645abbe92eae439d175109c87776c8c7226eca901bd92bf7f","impliedFormat":1},{"version":"a465c9a771165582ac5447753c8d35cea0bc0c3e1929418d40acdd706b81b800","signature":"b5ca0579f2d162731b877d92fe59a8313793045a2584921e347126fdcf1e3e7d"},"b0e37ab1a004bcd7cf8be15a5a8603b5efc5fa9c4f480cef218d18eb39cc8bda",{"version":"39bb7f98008daffe73ee374271a8157928080e32733c1c1146a9e3c6ce4b52d0","signature":"a2165efb4e29217996e63f30a048af2aa14f1f4603dd168b802811fb7c61978d"},{"version":"3e4b4f93746ab8fcfa5d5c456b21b60b6d5d4f9defc61a23abdd934bb2c2bf88","signature":"b9611dc1b64f1ae6ed9c07fe4de74daf2938939d317a224893ce67beb5e38c6c"},{"version":"104ef02cbd93a503290eecad42d1e0f125f2f080780c7fdf9224fe2c626e739f","signature":"0a3b06e7406acfe31749b353bc9c92a46e60f79499d7a1fe34f1861813684b1f"},"20ceaafb7d4cc29a5f7edec19a3cff4ad70234a39e16762949d9ce04929210f1",{"version":"81d681b79e089ab31db8e954c7fca9b2f46e79995dbd5b261c03967e56ad4656","signature":"ba9b06bad19bb95401a8d57d9244f4f2addc4d0369b943a731ac8fe4488a0c02"},"84d2a11cd591a9d76bf0897d9c7c2ed23c2f5e570b442ac11a54560ed453db8c",{"version":"292cf9927c051e0242604e119f949ceccda3068f40ea266d2d824e83de7207e7","signature":"6134fceb9a6559b99f885e1941ed9197f2fd24c8711e0ef5aa4a4e05fd9d831b"},{"version":"05fd57daf153c19058d50fefe70c10f52997b53531d3236812e86dcc128bf26d","signature":"137f73eb50d23183f6360fc48e4019e4a944a793649df9a94132d261d1d95dbc"},"36ae34eeb7f47250ec22306dcdc26ec9f31b3566192a93f6c930bb1af67a49a3",{"version":"7e5bb9da3f4aacee8e54eba646d33b7b33b06d27b767b34bfb4cca2ba7c95195","signature":"ee1f6d3493c2352c76f69df63f7eb262b9e202497fdbe5840060451afd727acf"},{"version":"54c09c7ff3b4ed2d6ccfbf6a8f12ecb15371101d9b8dd0224eb3024514aa8309","signature":"70b3718a6c837025f5fe8fbf711cb96932be0703c6cd2575913bf4704c70ccb1"},{"version":"5f90201dd756b0a717f7a9ac7d0cebf28fa31e3cf00b35228f89ef4d07b6e6f9","signature":"90f21b98640c5f7777dbd4923abb84ae59724dd72a21d72cabf310fdb4443f8d"},{"version":"adfd87a6c14fa29c037b60530eadf970e8d2ff84ed8fbb1ddb79dbed6345e849","signature":"ff9e98217b87c6d9385c6d60d25e0c75457f0600603d211576a0cf6f0a67633c"},{"version":"253129be42c4a701a73c68935d3d7e6356a89d6911c676429ec8971af0473679","signature":"e5981dd5a7c208cb8bee7224dfa6d5d5563ca62ba8415b5afcd7f03d05ac1c81"},"b67dea68f2cd43b665efb581d4cccc104d605b36ac43c4e23271c5a2a58115f5",{"version":"c0bbca36f56e2e041348177a18c2e914240d62667342d29e107659e9ab5ddbd8","signature":"b6cb864d5e0375fced047735b8589ba9a75bb0d2300885a1f24359524fe3d3d7"},{"version":"17ed71200119e86ccef2d96b73b02ce8854b76ad6bd21b5021d4269bec527b5f","impliedFormat":1}],"root":[[67,70],[76,93]],"options":{"allowImportingTsExtensions":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":4,"module":99,"noFallthroughCasesInSwitch":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","skipLibCheck":true,"strict":true,"target":7,"useDefineForClassFields":true},"referencedMap":[[94,1],[51,2],[52,1],[72,1],[73,1],[74,3],[75,4],[66,5],[56,6],[58,7],[65,8],[59,9],[62,10],[55,5],[57,11],[64,12],[69,13],[70,14],[76,15],[77,16],[78,17],[79,18],[80,19],[81,20],[82,13],[83,21],[85,22],[86,23],[87,24],[90,25],[88,26],[89,26],[93,27],[67,28],[91,29],[68,30],[92,31],[84,17]],"latestChangedDtsFile":"./src/main.d.ts","version":"5.9.3"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BasemapConfigSchema as S, CirclePaintSchema as c, CircleStyleSchema as i, FillPaintSchema as h, FillStyleSchema as m, FilterConfigSchema as n, LayerConfigSchema as g, LegendConfigSchema as l, LegendEntrySchema as o, LinePaintSchema as C, LineStyleSchema as f, MapConfigSchema as r, OgcApiSourceSchema as t, SearchConfigSchema as y, SearchFieldSchema as L, StyleConfigSchema as p, UIConfigSchema as F, ViewConfigSchema as d } from "../schemas/index.js";
|
|
2
|
+
export {
|
|
3
|
+
S as BasemapConfigSchema,
|
|
4
|
+
c as CirclePaintSchema,
|
|
5
|
+
i as CircleStyleSchema,
|
|
6
|
+
h as FillPaintSchema,
|
|
7
|
+
m as FillStyleSchema,
|
|
8
|
+
n as FilterConfigSchema,
|
|
9
|
+
g as LayerConfigSchema,
|
|
10
|
+
l as LegendConfigSchema,
|
|
11
|
+
o as LegendEntrySchema,
|
|
12
|
+
C as LinePaintSchema,
|
|
13
|
+
f as LineStyleSchema,
|
|
14
|
+
r as MapConfigSchema,
|
|
15
|
+
t as OgcApiSourceSchema,
|
|
16
|
+
y as SearchConfigSchema,
|
|
17
|
+
L as SearchFieldSchema,
|
|
18
|
+
p as StyleConfigSchema,
|
|
19
|
+
F as UIConfigSchema,
|
|
20
|
+
d as ViewConfigSchema
|
|
21
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { useState as s, useEffect as E } from "react";
|
|
2
|
+
import { f as y, a as M } from "./ogcApi-BuXSs9i0.js";
|
|
3
|
+
function F(n) {
|
|
4
|
+
const [o, c] = s([]), [u, f] = s(!1), [a, l] = s(null);
|
|
5
|
+
return E(() => {
|
|
6
|
+
if (!n) return;
|
|
7
|
+
let r = !1;
|
|
8
|
+
return f(!0), l(null), y(n).then((t) => {
|
|
9
|
+
r || c(t);
|
|
10
|
+
}).catch((t) => {
|
|
11
|
+
r || l(t instanceof Error ? t : new Error(String(t)));
|
|
12
|
+
}).finally(() => {
|
|
13
|
+
r || f(!1);
|
|
14
|
+
}), () => {
|
|
15
|
+
r = !0;
|
|
16
|
+
};
|
|
17
|
+
}, [n]), { collections: o, loading: u, error: a };
|
|
18
|
+
}
|
|
19
|
+
function w(n, o, c = {}) {
|
|
20
|
+
const [u, f] = s([]), [a, l] = s(!1), [r, t] = s(null), [p, g] = s(!1), m = JSON.stringify(c);
|
|
21
|
+
return E(() => {
|
|
22
|
+
if (!n || !o) return;
|
|
23
|
+
let i = !1;
|
|
24
|
+
l(!0), t(null);
|
|
25
|
+
const h = JSON.parse(m);
|
|
26
|
+
return M(n, o, h).then((e) => {
|
|
27
|
+
if (!i) {
|
|
28
|
+
f(e.features);
|
|
29
|
+
const S = h.limit ?? 10, d = h.offset ?? 0;
|
|
30
|
+
e.numberMatched != null ? g(d + e.features.length < e.numberMatched) : g(e.features.length >= S);
|
|
31
|
+
}
|
|
32
|
+
}).catch((e) => {
|
|
33
|
+
i || (t(e instanceof Error ? e : new Error(String(e))), f([]), g(!1));
|
|
34
|
+
}).finally(() => {
|
|
35
|
+
i || l(!1);
|
|
36
|
+
}), () => {
|
|
37
|
+
i = !0;
|
|
38
|
+
};
|
|
39
|
+
}, [n, o, m]), { features: u, loading: a, error: r, hasMore: p };
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
w as a,
|
|
43
|
+
F as u
|
|
44
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ogc-maps/storybook-components",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/main.js",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public",
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"provenance": true,
|
|
11
|
+
"types": "./dist/main.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/main.js",
|
|
15
|
+
"types": "./dist/main.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./components/LayerPanel": {
|
|
18
|
+
"import": "./dist/components/LayerPanel/index.js",
|
|
19
|
+
"types": "./dist/components/LayerPanel/index.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./components/Legend": {
|
|
22
|
+
"import": "./dist/components/Legend/index.js",
|
|
23
|
+
"types": "./dist/components/Legend/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./components/BasemapSwitcher": {
|
|
26
|
+
"import": "./dist/components/BasemapSwitcher/index.js",
|
|
27
|
+
"types": "./dist/components/BasemapSwitcher/index.d.ts"
|
|
28
|
+
},
|
|
29
|
+
"./components/CollapsibleControl": {
|
|
30
|
+
"import": "./dist/components/CollapsibleControl/index.js",
|
|
31
|
+
"types": "./dist/components/CollapsibleControl/index.d.ts"
|
|
32
|
+
},
|
|
33
|
+
"./hooks": {
|
|
34
|
+
"import": "./dist/hooks/index.js",
|
|
35
|
+
"types": "./dist/hooks/index.d.ts"
|
|
36
|
+
},
|
|
37
|
+
"./schemas": {
|
|
38
|
+
"import": "./dist/schemas/index.js",
|
|
39
|
+
"types": "./dist/schemas/index.d.ts"
|
|
40
|
+
},
|
|
41
|
+
"./types": {
|
|
42
|
+
"import": "./dist/types/index.js",
|
|
43
|
+
"types": "./dist/types/index.d.ts"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"dist"
|
|
48
|
+
],
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"react": "^18.3.0",
|
|
51
|
+
"react-dom": "^18.3.0",
|
|
52
|
+
"react-icons": "^5.0.0"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"zod": "^3.24.1"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@chromatic-com/storybook": "^3.2.2",
|
|
59
|
+
"@storybook/addon-essentials": "^8.5.0",
|
|
60
|
+
"@storybook/addon-interactions": "^8.5.0",
|
|
61
|
+
"@storybook/addon-links": "^8.5.0",
|
|
62
|
+
"@storybook/blocks": "^8.5.0",
|
|
63
|
+
"@storybook/react": "^8.5.0",
|
|
64
|
+
"@storybook/react-vite": "^8.5.0",
|
|
65
|
+
"@storybook/test": "^8.5.0",
|
|
66
|
+
"@tailwindcss/vite": "^4.0.0-beta.10",
|
|
67
|
+
"@types/react": "^18.3.18",
|
|
68
|
+
"@types/react-dom": "^18.3.5",
|
|
69
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
70
|
+
"react": "^18.3.1",
|
|
71
|
+
"react-dom": "^18.3.1",
|
|
72
|
+
"react-icons": "^5.0.0",
|
|
73
|
+
"storybook": "^8.5.0",
|
|
74
|
+
"tailwindcss": "^4.0.0-beta.10",
|
|
75
|
+
"typescript": "^5.7.3",
|
|
76
|
+
"vite": "^6.0.7",
|
|
77
|
+
"vite-plugin-dts": "^4.3.0",
|
|
78
|
+
"vite-plugin-lib-inject-css": "^2.1.1"
|
|
79
|
+
},
|
|
80
|
+
"scripts": {
|
|
81
|
+
"dev": "vite build --watch",
|
|
82
|
+
"build": "vite build && tsc --project tsconfig.build.json",
|
|
83
|
+
"storybook": "storybook dev -p 6006",
|
|
84
|
+
"build-storybook": "storybook build"
|
|
85
|
+
}
|
|
86
|
+
}
|