@opengeospatial/jsonld-ui-utils 0.4.11 → 0.5.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/README.md +17 -4
- package/dist/augment.d.ts +2 -0
- package/dist/context.d.ts +21 -0
- package/dist/index.cjs.js +527 -253
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +527 -254
- package/dist/index.esm.js.map +1 -1
- package/dist/jsonld-ui-utils-leaflet.min.js +4 -4
- package/dist/jsonld-ui-utils-leaflet.min.js.map +1 -1
- package/dist/jsonld-ui-utils.css +31 -1
- package/dist/jsonld-ui-utils.min.js +4 -4
- package/dist/jsonld-ui-utils.min.js.map +1 -1
- package/dist/jsonld.d.ts +14 -1
- package/dist/leaflet.cjs.js +544 -260
- package/dist/leaflet.cjs.js.map +1 -1
- package/dist/leaflet.d.ts +6 -0
- package/dist/leaflet.esm.js +544 -260
- package/dist/leaflet.esm.js.map +1 -1
- package/dist/requests.d.ts +11 -0
- package/dist/resource.d.ts +10 -0
- package/dist/sparql-batch.d.ts +7 -0
- package/package.json +4 -2
package/dist/jsonld.d.ts
CHANGED
|
@@ -4,5 +4,18 @@ export type Context = OrArray<null | string | ContextDefinition>;
|
|
|
4
4
|
export type ContextObject = {
|
|
5
5
|
"@context": Context;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
/** Loaded context definitions in order of application; null resets the ones before it */
|
|
8
|
+
export type ContextEntries = (ContextDefinition | null)[];
|
|
9
|
+
export interface LoadContextOptions {
|
|
10
|
+
/** Base URL for resolving relative context references */
|
|
11
|
+
baseUrl?: string;
|
|
12
|
+
/** Timeout in milliseconds for each remote context. Default: 10000 */
|
|
13
|
+
requestTimeout?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Loads a context without merging its entries. Remote references are replaced by their contents,
|
|
17
|
+
* including the scoped contexts of term definitions, which are modified in place.
|
|
18
|
+
*/
|
|
19
|
+
export declare function loadContextEntries(context: Context | undefined, options?: LoadContextOptions): Promise<ContextEntries>;
|
|
20
|
+
export declare function loadContext(context: Context | ContextObject, options?: LoadContextOptions): Promise<ContextDefinition>;
|
|
8
21
|
export {};
|