@xyo-network/location-plugin 4.0.0 → 4.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.
@@ -0,0 +1,29 @@
1
+ import { ModuleParams, AnyConfigSchema } from '@xyo-network/module-model';
2
+ import { WitnessConfig } from '@xyo-network/witness-model';
3
+ import { PayloadSetPayload, Schema, Payload } from '@xyo-network/payload-model';
4
+ import { AbstractWitness } from '@xyo-network/abstract-witness';
5
+ import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
6
+
7
+ type CurrentLocationWitnessConfigSchema = 'network.xyo.location.current.config';
8
+ declare const CurrentLocationWitnessConfigSchema: CurrentLocationWitnessConfigSchema;
9
+ type CurrentLocationWitnessConfig = WitnessConfig<{
10
+ schema: CurrentLocationWitnessConfigSchema;
11
+ }>;
12
+ interface CurrentLocationWitnessParams extends ModuleParams<AnyConfigSchema<CurrentLocationWitnessConfig>> {
13
+ geolocation?: Geolocation;
14
+ }
15
+
16
+ declare const CurrentLocationPayloadSet: PayloadSetPayload;
17
+
18
+ declare class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {
19
+ static readonly configSchemas: Schema[];
20
+ static readonly defaultConfigSchema: Schema;
21
+ get geolocation(): Geolocation;
22
+ getCurrentPosition(): Promise<GeolocationPosition>;
23
+ protected observeHandler(): Promise<Payload[]>;
24
+ }
25
+
26
+ declare const LocationPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<CurrentLocationWitness<CurrentLocationWitnessParams>>;
27
+
28
+ export { CurrentLocationPayloadSet, CurrentLocationWitness, CurrentLocationWitnessConfigSchema, LocationPlugin, LocationPlugin as default };
29
+ export type { CurrentLocationWitnessConfig, CurrentLocationWitnessParams };
@@ -0,0 +1,2 @@
1
+ import '@xylabs/vitest-extended';
2
+ //# sourceMappingURL=Plugin.dom.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plugin.dom.spec.d.ts","sourceRoot":"","sources":["../../../src/spec/Plugin.dom.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/location-plugin",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -21,26 +21,26 @@
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/types/index.d.ts",
24
+ "types": "./dist/neutral/index.d.ts",
25
25
  "default": "./dist/neutral/index.mjs"
26
26
  },
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "module": "dist/neutral/index.mjs",
30
- "types": "dist/types/index.d.ts",
30
+ "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/assert": "^4.12.31",
33
- "@xyo-network/abstract-witness": "^4.0.1",
34
- "@xyo-network/location-payload-plugin": "^4.0.0",
35
- "@xyo-network/module-model": "^4.0.1",
36
- "@xyo-network/payload-model": "^4.0.1",
37
- "@xyo-network/payloadset-plugin": "^4.0.1",
38
- "@xyo-network/witness-model": "^4.0.1"
32
+ "@xylabs/assert": "^4.13.15",
33
+ "@xyo-network/abstract-witness": "^4.1.1",
34
+ "@xyo-network/location-payload-plugin": "^4.1.0",
35
+ "@xyo-network/module-model": "^4.1.1",
36
+ "@xyo-network/payload-model": "^4.1.1",
37
+ "@xyo-network/payloadset-plugin": "^4.1.1",
38
+ "@xyo-network/witness-model": "^4.1.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@xylabs/ts-scripts-yarn3": "^6.5.12",
42
- "@xylabs/tsconfig-dom": "^6.5.12",
43
- "@xylabs/vitest-extended": "^4.12.31",
41
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.24",
42
+ "@xylabs/tsconfig-dom": "^7.0.0-rc.24",
43
+ "@xylabs/vitest-extended": "^4.13.15",
44
44
  "knip": "^5.61.3",
45
45
  "typescript": "^5.8.3",
46
46
  "vitest": "^3.2.4"
@@ -1,5 +0,0 @@
1
- export * from './Config.ts';
2
- export * from './CurrentLocationPayloadSet.ts';
3
- export * from './CurrentLocationWitness.ts';
4
- export { LocationPlugin as default, LocationPlugin } from './Plugin.ts';
5
- //# sourceMappingURL=index.d.ts.map
File without changes
File without changes
File without changes
File without changes
File without changes