crumb-widget 1.0.4 → 1.1.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 +1 -1
- package/dist/module.d.ts +3 -3
- package/dist/module.js +2184 -6777
- package/package.json +22 -7
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ Built with Svelte 5, distributed as a **single self-contained JavaScript file**
|
|
|
29
29
|
<body>
|
|
30
30
|
<div
|
|
31
31
|
id="crumb-widget"
|
|
32
|
-
data-
|
|
32
|
+
data-server="https://myserver.com/main_server/"
|
|
33
33
|
data-service-body="3"
|
|
34
34
|
></div>
|
|
35
35
|
<script type="module" src="https://cdn.aws.bmlt.app/crumb-widget.js"></script>
|
package/dist/module.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ declare interface MarkerConfig {
|
|
|
33
33
|
* import { mountCrumbWidget } from 'crumb-widget';
|
|
34
34
|
*
|
|
35
35
|
* mountCrumbWidget(document.getElementById('my-widget'), {
|
|
36
|
-
*
|
|
36
|
+
* serverUrl: 'https://bmlt.example.org/main_server/',
|
|
37
37
|
* serviceBodyIds: [1, 2, 3],
|
|
38
38
|
* });
|
|
39
39
|
* ```
|
|
@@ -41,8 +41,8 @@ declare interface MarkerConfig {
|
|
|
41
41
|
export declare function mountCrumbWidget(el: HTMLElement, options: MountOptions): void;
|
|
42
42
|
|
|
43
43
|
export declare interface MountOptions extends CrumbWidgetConfig {
|
|
44
|
-
/** URL of the BMLT
|
|
45
|
-
|
|
44
|
+
/** URL of the BMLT server (required) */
|
|
45
|
+
serverUrl: string;
|
|
46
46
|
/** Service body IDs to filter by (defaults to all) */
|
|
47
47
|
serviceBodyIds?: number[];
|
|
48
48
|
}
|