@metamask-previews/geolocation-controller 1.0.0-preview-3e34650c2 → 1.0.0-preview-4f4c98e
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/CHANGELOG.md +4 -0
- package/dist/{GeolocationController-method-action-types.d.mts → GeolocationController-method-action-types.d.ts} +2 -2
- package/dist/GeolocationController-method-action-types.d.ts.map +1 -0
- package/dist/{GeolocationController-method-action-types.mjs → GeolocationController-method-action-types.js} +1 -1
- package/dist/GeolocationController-method-action-types.js.map +1 -0
- package/dist/{GeolocationController.d.cts → GeolocationController.d.ts} +8 -8
- package/dist/GeolocationController.d.ts.map +1 -0
- package/dist/{GeolocationController.mjs → GeolocationController.js} +3 -3
- package/dist/{GeolocationController.cjs.map → GeolocationController.js.map} +1 -1
- package/dist/geolocation-api-service/{geolocation-api-service-method-action-types.d.cts → geolocation-api-service-method-action-types.d.ts} +2 -2
- package/dist/geolocation-api-service/geolocation-api-service-method-action-types.d.ts.map +1 -0
- package/dist/geolocation-api-service/{geolocation-api-service-method-action-types.mjs → geolocation-api-service-method-action-types.js} +1 -1
- package/dist/geolocation-api-service/geolocation-api-service-method-action-types.js.map +1 -0
- package/dist/geolocation-api-service/{geolocation-api-service.d.cts → geolocation-api-service.d.ts} +6 -6
- package/dist/geolocation-api-service/geolocation-api-service.d.ts.map +1 -0
- package/dist/geolocation-api-service/{geolocation-api-service.mjs → geolocation-api-service.js} +3 -3
- package/dist/geolocation-api-service/geolocation-api-service.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/{types.d.mts → types.d.ts} +1 -1
- package/dist/types.d.ts.map +1 -0
- package/dist/{types.mjs → types.js} +1 -1
- package/dist/types.js.map +1 -0
- package/package.json +12 -16
- package/dist/GeolocationController-method-action-types.cjs +0 -7
- package/dist/GeolocationController-method-action-types.cjs.map +0 -1
- package/dist/GeolocationController-method-action-types.d.cts +0 -54
- package/dist/GeolocationController-method-action-types.d.cts.map +0 -1
- package/dist/GeolocationController-method-action-types.d.mts.map +0 -1
- package/dist/GeolocationController-method-action-types.mjs.map +0 -1
- package/dist/GeolocationController.cjs +0 -214
- package/dist/GeolocationController.d.cts.map +0 -1
- package/dist/GeolocationController.d.mts +0 -140
- package/dist/GeolocationController.d.mts.map +0 -1
- package/dist/GeolocationController.mjs.map +0 -1
- package/dist/geolocation-api-service/geolocation-api-service-method-action-types.cjs +0 -7
- package/dist/geolocation-api-service/geolocation-api-service-method-action-types.cjs.map +0 -1
- package/dist/geolocation-api-service/geolocation-api-service-method-action-types.d.cts.map +0 -1
- package/dist/geolocation-api-service/geolocation-api-service-method-action-types.d.mts +0 -42
- package/dist/geolocation-api-service/geolocation-api-service-method-action-types.d.mts.map +0 -1
- package/dist/geolocation-api-service/geolocation-api-service-method-action-types.mjs.map +0 -1
- package/dist/geolocation-api-service/geolocation-api-service.cjs +0 -305
- package/dist/geolocation-api-service/geolocation-api-service.cjs.map +0 -1
- package/dist/geolocation-api-service/geolocation-api-service.d.cts.map +0 -1
- package/dist/geolocation-api-service/geolocation-api-service.d.mts +0 -175
- package/dist/geolocation-api-service/geolocation-api-service.d.mts.map +0 -1
- package/dist/geolocation-api-service/geolocation-api-service.mjs.map +0 -1
- package/dist/index.cjs +0 -14
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -9
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -9
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -4
- package/dist/index.mjs.map +0 -1
- package/dist/types.cjs +0 -13
- package/dist/types.cjs.map +0 -1
- package/dist/types.d.cts +0 -13
- package/dist/types.d.cts.map +0 -1
- package/dist/types.d.mts.map +0 -1
- package/dist/types.mjs.map +0 -1
package/dist/index.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { Env } from "./types.mjs";
|
|
2
|
-
export { GeolocationController, getDefaultGeolocationControllerState } from "./GeolocationController.mjs";
|
|
3
|
-
export { GeolocationApiService, getUnknownGeolocationData, toLocationCode, UNKNOWN_LOCATION } from "./geolocation-api-service/geolocation-api-service.mjs";
|
|
4
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,GAAG,EAAE,oBAAmB;AACjC,OAAO,EACL,qBAAqB,EACrB,oCAAoC,EACrC,oCAAmC;AACpC,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,cAAc,EACd,gBAAgB,EACjB,8DAA6D","sourcesContent":["export type {\n GeolocationControllerState,\n GeolocationControllerGetStateAction,\n GeolocationControllerActions,\n GeolocationControllerStateChangeEvent,\n GeolocationControllerEvents,\n GeolocationControllerMessenger,\n GeolocationControllerOptions,\n} from './GeolocationController.js';\nexport type {\n GeolocationControllerGetGeolocationAction,\n GeolocationControllerGetGeolocationDataAction,\n GeolocationControllerRefreshGeolocationAction,\n} from './GeolocationController-method-action-types.js';\nexport type { GeolocationRequestStatus } from './types.js';\nexport { Env } from './types.js';\nexport {\n GeolocationController,\n getDefaultGeolocationControllerState,\n} from './GeolocationController.js';\nexport {\n GeolocationApiService,\n getUnknownGeolocationData,\n toLocationCode,\n UNKNOWN_LOCATION,\n} from './geolocation-api-service/geolocation-api-service.js';\nexport type {\n GeolocationApiServiceMessenger,\n GeolocationApiServiceActions,\n GeolocationApiServiceEvents,\n FetchGeolocationOptions,\n GeolocationData,\n} from './geolocation-api-service/geolocation-api-service.js';\nexport type {\n GeolocationApiServiceFetchGeolocationAction,\n GeolocationApiServiceFetchGeolocationDataAction,\n} from './geolocation-api-service/geolocation-api-service-method-action-types.js';\n"]}
|
package/dist/types.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Env = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Deployment environment for API endpoint selection.
|
|
6
|
-
*/
|
|
7
|
-
var Env;
|
|
8
|
-
(function (Env) {
|
|
9
|
-
Env["DEV"] = "dev";
|
|
10
|
-
Env["UAT"] = "uat";
|
|
11
|
-
Env["PRD"] = "prd";
|
|
12
|
-
})(Env || (exports.Env = Env = {}));
|
|
13
|
-
//# sourceMappingURL=types.cjs.map
|
package/dist/types.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AASA;;GAEG;AACH,IAAY,GAIX;AAJD,WAAY,GAAG;IACb,kBAAW,CAAA;IACX,kBAAW,CAAA;IACX,kBAAW,CAAA;AACb,CAAC,EAJW,GAAG,mBAAH,GAAG,QAId","sourcesContent":["/**\n * The status of a geolocation fetch operation.\n */\nexport type GeolocationRequestStatus =\n | 'idle'\n | 'loading'\n | 'complete'\n | 'error';\n\n/**\n * Deployment environment for API endpoint selection.\n */\nexport enum Env {\n DEV = 'dev',\n UAT = 'uat',\n PRD = 'prd',\n}\n"]}
|
package/dist/types.d.cts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The status of a geolocation fetch operation.
|
|
3
|
-
*/
|
|
4
|
-
export type GeolocationRequestStatus = 'idle' | 'loading' | 'complete' | 'error';
|
|
5
|
-
/**
|
|
6
|
-
* Deployment environment for API endpoint selection.
|
|
7
|
-
*/
|
|
8
|
-
export declare enum Env {
|
|
9
|
-
DEV = "dev",
|
|
10
|
-
UAT = "uat",
|
|
11
|
-
PRD = "prd"
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=types.d.cts.map
|
package/dist/types.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAChC,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,CAAC;AAEZ;;GAEG;AACH,oBAAY,GAAG;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ"}
|
package/dist/types.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAChC,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,CAAC;AAEZ;;GAEG;AACH,oBAAY,GAAG;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ"}
|
package/dist/types.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,MAAM,CAAN,IAAY,GAIX;AAJD,WAAY,GAAG;IACb,kBAAW,CAAA;IACX,kBAAW,CAAA;IACX,kBAAW,CAAA;AACb,CAAC,EAJW,GAAG,KAAH,GAAG,QAId","sourcesContent":["/**\n * The status of a geolocation fetch operation.\n */\nexport type GeolocationRequestStatus =\n | 'idle'\n | 'loading'\n | 'complete'\n | 'error';\n\n/**\n * Deployment environment for API endpoint selection.\n */\nexport enum Env {\n DEV = 'dev',\n UAT = 'uat',\n PRD = 'prd',\n}\n"]}
|