@beyonk/svelte-mapbox 9.1.0 → 10.0.1

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 (42) hide show
  1. package/.env +1 -0
  2. package/.github/workflows/publish.yml +31 -0
  3. package/eslint.config.mjs.disabled +21 -0
  4. package/jsconfig.json +11 -0
  5. package/package.json +21 -30
  6. package/src/app.html +18 -0
  7. package/src/global.d.ts +1 -0
  8. package/{geocoder → src/lib/geocoder}/Geocoder.svelte +1 -1
  9. package/{map → src/lib/map}/Map.svelte +4 -1
  10. package/src/routes/+page.svelte +211 -0
  11. package/src/routes/_Earthquakes.svelte +131 -0
  12. package/src/routes/_MiniScroller.svelte +1 -0
  13. package/static/favicon.png +0 -0
  14. package/static/normalize.css +76 -0
  15. package/static/prettify.css +70 -0
  16. package/static/style.css +534 -0
  17. package/svelte.config.js +5 -0
  18. package/vite.config.js +8 -0
  19. package/asset-loader.d.ts +0 -1
  20. package/components.d.ts +0 -13
  21. package/event-bindings.d.ts +0 -1
  22. package/geocoder/Geocoder.svelte.d.ts +0 -53
  23. package/geocoder/geocoder-action.d.ts +0 -3
  24. package/map/Map.svelte.d.ts +0 -89
  25. package/map/Marker.svelte.d.ts +0 -50
  26. package/map/controls/GeolocateControl.svelte.d.ts +0 -40
  27. package/map/controls/NavigationControl.svelte.d.ts +0 -25
  28. package/map/controls/ScaleControl.svelte.d.ts +0 -25
  29. package/map/map-action.d.ts +0 -3
  30. package/mapbox.d.ts +0 -1
  31. package/queue.d.ts +0 -8
  32. /package/{asset-loader.js → src/lib/asset-loader.js} +0 -0
  33. /package/{components.js → src/lib/components.js} +0 -0
  34. /package/{event-bindings.js → src/lib/event-bindings.js} +0 -0
  35. /package/{geocoder → src/lib/geocoder}/geocoder-action.js +0 -0
  36. /package/{map → src/lib/map}/Marker.svelte +0 -0
  37. /package/{map → src/lib/map}/controls/GeolocateControl.svelte +0 -0
  38. /package/{map → src/lib/map}/controls/NavigationControl.svelte +0 -0
  39. /package/{map → src/lib/map}/controls/ScaleControl.svelte +0 -0
  40. /package/{map → src/lib/map}/map-action.js +0 -0
  41. /package/{mapbox.js → src/lib/mapbox.js} +0 -0
  42. /package/{queue.js → src/lib/queue.js} +0 -0
@@ -1,50 +0,0 @@
1
- /** @typedef {typeof __propDef.props} MarkerProps */
2
- /** @typedef {typeof __propDef.events} MarkerEvents */
3
- /** @typedef {typeof __propDef.slots} MarkerSlots */
4
- export default class Marker extends SvelteComponentTyped<{
5
- lat: any;
6
- lng: any;
7
- label?: string;
8
- popupClassName?: string;
9
- markerOffset?: number[];
10
- popupOffset?: number;
11
- color?: number;
12
- popup?: boolean;
13
- popupOptions?: {};
14
- markerOptions?: {};
15
- getMarker?: () => any;
16
- }, {
17
- [evt: string]: CustomEvent<any>;
18
- }, {
19
- default: {};
20
- popup: {};
21
- }> {
22
- get getMarker(): () => any;
23
- }
24
- export type MarkerProps = typeof __propDef.props;
25
- export type MarkerEvents = typeof __propDef.events;
26
- export type MarkerSlots = typeof __propDef.slots;
27
- import { SvelteComponentTyped } from "svelte";
28
- declare const __propDef: {
29
- props: {
30
- lat: any;
31
- lng: any;
32
- label?: string;
33
- popupClassName?: string;
34
- markerOffset?: number[];
35
- popupOffset?: number;
36
- color?: number;
37
- popup?: boolean;
38
- popupOptions?: {};
39
- markerOptions?: {};
40
- getMarker?: () => any;
41
- };
42
- events: {
43
- [evt: string]: CustomEvent<any>;
44
- };
45
- slots: {
46
- default: {};
47
- popup: {};
48
- };
49
- };
50
- export {};
@@ -1,40 +0,0 @@
1
- /** @typedef {typeof __propDef.props} GeolocateControlProps */
2
- /** @typedef {typeof __propDef.events} GeolocateControlEvents */
3
- /** @typedef {typeof __propDef.slots} GeolocateControlSlots */
4
- export default class GeolocateControl extends SvelteComponentTyped<{
5
- options?: {};
6
- position?: string;
7
- trigger?: () => void;
8
- }, {
9
- error: ErrorEvent;
10
- geolocate: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
11
- outofmaxbounds: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
12
- trackuserlocationend: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
13
- trackuserlocationstart: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
14
- } & {
15
- [evt: string]: CustomEvent<any>;
16
- }, {}> {
17
- get trigger(): () => void;
18
- }
19
- export type GeolocateControlProps = typeof __propDef.props;
20
- export type GeolocateControlEvents = typeof __propDef.events;
21
- export type GeolocateControlSlots = typeof __propDef.slots;
22
- import { SvelteComponentTyped } from "svelte";
23
- declare const __propDef: {
24
- props: {
25
- options?: {};
26
- position?: string;
27
- trigger?: () => void;
28
- };
29
- events: {
30
- error: ErrorEvent;
31
- geolocate: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
32
- outofmaxbounds: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
33
- trackuserlocationend: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
34
- trackuserlocationstart: Event | ProgressEvent<EventTarget> | DragEvent | MouseEvent | UIEvent | ClipboardEvent | AnimationEvent | InputEvent | FocusEvent | CompositionEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
35
- } & {
36
- [evt: string]: CustomEvent<any>;
37
- };
38
- slots: {};
39
- };
40
- export {};
@@ -1,25 +0,0 @@
1
- /** @typedef {typeof __propDef.props} NavigationControlProps */
2
- /** @typedef {typeof __propDef.events} NavigationControlEvents */
3
- /** @typedef {typeof __propDef.slots} NavigationControlSlots */
4
- export default class NavigationControl extends SvelteComponentTyped<{
5
- options?: {};
6
- position?: string;
7
- }, {
8
- [evt: string]: CustomEvent<any>;
9
- }, {}> {
10
- }
11
- export type NavigationControlProps = typeof __propDef.props;
12
- export type NavigationControlEvents = typeof __propDef.events;
13
- export type NavigationControlSlots = typeof __propDef.slots;
14
- import { SvelteComponentTyped } from "svelte";
15
- declare const __propDef: {
16
- props: {
17
- options?: {};
18
- position?: string;
19
- };
20
- events: {
21
- [evt: string]: CustomEvent<any>;
22
- };
23
- slots: {};
24
- };
25
- export {};
@@ -1,25 +0,0 @@
1
- /** @typedef {typeof __propDef.props} ScaleControlProps */
2
- /** @typedef {typeof __propDef.events} ScaleControlEvents */
3
- /** @typedef {typeof __propDef.slots} ScaleControlSlots */
4
- export default class ScaleControl extends SvelteComponentTyped<{
5
- options?: {};
6
- position?: string;
7
- }, {
8
- [evt: string]: CustomEvent<any>;
9
- }, {}> {
10
- }
11
- export type ScaleControlProps = typeof __propDef.props;
12
- export type ScaleControlEvents = typeof __propDef.events;
13
- export type ScaleControlSlots = typeof __propDef.slots;
14
- import { SvelteComponentTyped } from "svelte";
15
- declare const __propDef: {
16
- props: {
17
- options?: {};
18
- position?: string;
19
- };
20
- events: {
21
- [evt: string]: CustomEvent<any>;
22
- };
23
- slots: {};
24
- };
25
- export {};
@@ -1,3 +0,0 @@
1
- export default function action(node: any, options?: {}): {
2
- destroy(): void;
3
- };
package/mapbox.d.ts DELETED
@@ -1 +0,0 @@
1
- export const contextKey: {};
package/queue.d.ts DELETED
@@ -1,8 +0,0 @@
1
- export class EventQueue {
2
- queue: import("svelte/store").Writable<any[]>;
3
- unsubscribe: import("svelte/store").Unsubscriber;
4
- started: boolean;
5
- send(command: any, params?: any[]): void;
6
- start(map: any): void;
7
- stop(): void;
8
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes