@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.
Files changed (63) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{GeolocationController-method-action-types.d.mts → GeolocationController-method-action-types.d.ts} +2 -2
  3. package/dist/GeolocationController-method-action-types.d.ts.map +1 -0
  4. package/dist/{GeolocationController-method-action-types.mjs → GeolocationController-method-action-types.js} +1 -1
  5. package/dist/GeolocationController-method-action-types.js.map +1 -0
  6. package/dist/{GeolocationController.d.cts → GeolocationController.d.ts} +8 -8
  7. package/dist/GeolocationController.d.ts.map +1 -0
  8. package/dist/{GeolocationController.mjs → GeolocationController.js} +3 -3
  9. package/dist/{GeolocationController.cjs.map → GeolocationController.js.map} +1 -1
  10. package/dist/geolocation-api-service/{geolocation-api-service-method-action-types.d.cts → geolocation-api-service-method-action-types.d.ts} +2 -2
  11. package/dist/geolocation-api-service/geolocation-api-service-method-action-types.d.ts.map +1 -0
  12. package/dist/geolocation-api-service/{geolocation-api-service-method-action-types.mjs → geolocation-api-service-method-action-types.js} +1 -1
  13. package/dist/geolocation-api-service/geolocation-api-service-method-action-types.js.map +1 -0
  14. package/dist/geolocation-api-service/{geolocation-api-service.d.cts → geolocation-api-service.d.ts} +6 -6
  15. package/dist/geolocation-api-service/geolocation-api-service.d.ts.map +1 -0
  16. package/dist/geolocation-api-service/{geolocation-api-service.mjs → geolocation-api-service.js} +3 -3
  17. package/dist/geolocation-api-service/geolocation-api-service.js.map +1 -0
  18. package/dist/index.d.ts +9 -0
  19. package/dist/index.d.ts.map +1 -0
  20. package/dist/index.js +4 -0
  21. package/dist/index.js.map +1 -0
  22. package/dist/{types.d.mts → types.d.ts} +1 -1
  23. package/dist/types.d.ts.map +1 -0
  24. package/dist/{types.mjs → types.js} +1 -1
  25. package/dist/types.js.map +1 -0
  26. package/package.json +12 -16
  27. package/dist/GeolocationController-method-action-types.cjs +0 -7
  28. package/dist/GeolocationController-method-action-types.cjs.map +0 -1
  29. package/dist/GeolocationController-method-action-types.d.cts +0 -54
  30. package/dist/GeolocationController-method-action-types.d.cts.map +0 -1
  31. package/dist/GeolocationController-method-action-types.d.mts.map +0 -1
  32. package/dist/GeolocationController-method-action-types.mjs.map +0 -1
  33. package/dist/GeolocationController.cjs +0 -214
  34. package/dist/GeolocationController.d.cts.map +0 -1
  35. package/dist/GeolocationController.d.mts +0 -140
  36. package/dist/GeolocationController.d.mts.map +0 -1
  37. package/dist/GeolocationController.mjs.map +0 -1
  38. package/dist/geolocation-api-service/geolocation-api-service-method-action-types.cjs +0 -7
  39. package/dist/geolocation-api-service/geolocation-api-service-method-action-types.cjs.map +0 -1
  40. package/dist/geolocation-api-service/geolocation-api-service-method-action-types.d.cts.map +0 -1
  41. package/dist/geolocation-api-service/geolocation-api-service-method-action-types.d.mts +0 -42
  42. package/dist/geolocation-api-service/geolocation-api-service-method-action-types.d.mts.map +0 -1
  43. package/dist/geolocation-api-service/geolocation-api-service-method-action-types.mjs.map +0 -1
  44. package/dist/geolocation-api-service/geolocation-api-service.cjs +0 -305
  45. package/dist/geolocation-api-service/geolocation-api-service.cjs.map +0 -1
  46. package/dist/geolocation-api-service/geolocation-api-service.d.cts.map +0 -1
  47. package/dist/geolocation-api-service/geolocation-api-service.d.mts +0 -175
  48. package/dist/geolocation-api-service/geolocation-api-service.d.mts.map +0 -1
  49. package/dist/geolocation-api-service/geolocation-api-service.mjs.map +0 -1
  50. package/dist/index.cjs +0 -14
  51. package/dist/index.cjs.map +0 -1
  52. package/dist/index.d.cts +0 -9
  53. package/dist/index.d.cts.map +0 -1
  54. package/dist/index.d.mts +0 -9
  55. package/dist/index.d.mts.map +0 -1
  56. package/dist/index.mjs +0 -4
  57. package/dist/index.mjs.map +0 -1
  58. package/dist/types.cjs +0 -13
  59. package/dist/types.cjs.map +0 -1
  60. package/dist/types.d.cts +0 -13
  61. package/dist/types.d.cts.map +0 -1
  62. package/dist/types.d.mts.map +0 -1
  63. 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
@@ -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
@@ -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
@@ -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"}
@@ -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"}
@@ -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"]}