@metamask-previews/notification-services-controller 0.10.0-preview-b7ea5d52 → 0.10.0-preview-3c1aabe6

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 (89) hide show
  1. package/dist/NotificationServicesController/NotificationServicesController.cjs +8 -85
  2. package/dist/NotificationServicesController/NotificationServicesController.cjs.map +1 -1
  3. package/dist/NotificationServicesController/NotificationServicesController.d.cts +1 -36
  4. package/dist/NotificationServicesController/NotificationServicesController.d.cts.map +1 -1
  5. package/dist/NotificationServicesController/NotificationServicesController.d.mts +1 -36
  6. package/dist/NotificationServicesController/NotificationServicesController.d.mts.map +1 -1
  7. package/dist/NotificationServicesController/NotificationServicesController.mjs +8 -85
  8. package/dist/NotificationServicesController/NotificationServicesController.mjs.map +1 -1
  9. package/dist/NotificationServicesController/__fixtures__/index.cjs +0 -1
  10. package/dist/NotificationServicesController/__fixtures__/index.cjs.map +1 -1
  11. package/dist/NotificationServicesController/__fixtures__/index.d.cts +0 -1
  12. package/dist/NotificationServicesController/__fixtures__/index.d.cts.map +1 -1
  13. package/dist/NotificationServicesController/__fixtures__/index.d.mts +0 -1
  14. package/dist/NotificationServicesController/__fixtures__/index.d.mts.map +1 -1
  15. package/dist/NotificationServicesController/__fixtures__/index.mjs +0 -1
  16. package/dist/NotificationServicesController/__fixtures__/index.mjs.map +1 -1
  17. package/dist/NotificationServicesController/constants/notification-schema.cjs +0 -1
  18. package/dist/NotificationServicesController/constants/notification-schema.cjs.map +1 -1
  19. package/dist/NotificationServicesController/constants/notification-schema.d.cts +1 -2
  20. package/dist/NotificationServicesController/constants/notification-schema.d.cts.map +1 -1
  21. package/dist/NotificationServicesController/constants/notification-schema.d.mts +1 -2
  22. package/dist/NotificationServicesController/constants/notification-schema.d.mts.map +1 -1
  23. package/dist/NotificationServicesController/constants/notification-schema.mjs +0 -1
  24. package/dist/NotificationServicesController/constants/notification-schema.mjs.map +1 -1
  25. package/dist/NotificationServicesController/processors/process-notifications.cjs +0 -5
  26. package/dist/NotificationServicesController/processors/process-notifications.cjs.map +1 -1
  27. package/dist/NotificationServicesController/processors/process-notifications.d.cts +3 -3
  28. package/dist/NotificationServicesController/processors/process-notifications.d.cts.map +1 -1
  29. package/dist/NotificationServicesController/processors/process-notifications.d.mts +3 -3
  30. package/dist/NotificationServicesController/processors/process-notifications.d.mts.map +1 -1
  31. package/dist/NotificationServicesController/processors/process-notifications.mjs +0 -5
  32. package/dist/NotificationServicesController/processors/process-notifications.mjs.map +1 -1
  33. package/dist/NotificationServicesController/types/notification/notification.cjs.map +1 -1
  34. package/dist/NotificationServicesController/types/notification/notification.d.cts +6 -10
  35. package/dist/NotificationServicesController/types/notification/notification.d.cts.map +1 -1
  36. package/dist/NotificationServicesController/types/notification/notification.d.mts +6 -10
  37. package/dist/NotificationServicesController/types/notification/notification.d.mts.map +1 -1
  38. package/dist/NotificationServicesController/types/notification/notification.mjs.map +1 -1
  39. package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs +1 -3
  40. package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs.map +1 -1
  41. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.cts +1 -2
  42. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.cts.map +1 -1
  43. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts +1 -2
  44. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts.map +1 -1
  45. package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs +1 -3
  46. package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs.map +1 -1
  47. package/dist/NotificationServicesPushController/services/services.cjs +2 -2
  48. package/dist/NotificationServicesPushController/services/services.cjs.map +1 -1
  49. package/dist/NotificationServicesPushController/services/services.d.cts +0 -1
  50. package/dist/NotificationServicesPushController/services/services.d.cts.map +1 -1
  51. package/dist/NotificationServicesPushController/services/services.d.mts +0 -1
  52. package/dist/NotificationServicesPushController/services/services.d.mts.map +1 -1
  53. package/dist/NotificationServicesPushController/services/services.mjs +2 -2
  54. package/dist/NotificationServicesPushController/services/services.mjs.map +1 -1
  55. package/dist/NotificationServicesPushController/utils/get-notification-data.mjs +1 -2
  56. package/dist/NotificationServicesPushController/utils/get-notification-data.mjs.map +1 -1
  57. package/package.json +3 -4
  58. package/dist/NotificationServicesController/__fixtures__/mock-snap-notification.cjs +0 -29
  59. package/dist/NotificationServicesController/__fixtures__/mock-snap-notification.cjs.map +0 -1
  60. package/dist/NotificationServicesController/__fixtures__/mock-snap-notification.d.cts +0 -8
  61. package/dist/NotificationServicesController/__fixtures__/mock-snap-notification.d.cts.map +0 -1
  62. package/dist/NotificationServicesController/__fixtures__/mock-snap-notification.d.mts +0 -8
  63. package/dist/NotificationServicesController/__fixtures__/mock-snap-notification.d.mts.map +0 -1
  64. package/dist/NotificationServicesController/__fixtures__/mock-snap-notification.mjs +0 -25
  65. package/dist/NotificationServicesController/__fixtures__/mock-snap-notification.mjs.map +0 -1
  66. package/dist/NotificationServicesController/processors/process-snap-notifications.cjs +0 -23
  67. package/dist/NotificationServicesController/processors/process-snap-notifications.cjs.map +0 -1
  68. package/dist/NotificationServicesController/processors/process-snap-notifications.d.cts +0 -10
  69. package/dist/NotificationServicesController/processors/process-snap-notifications.d.cts.map +0 -1
  70. package/dist/NotificationServicesController/processors/process-snap-notifications.d.mts +0 -10
  71. package/dist/NotificationServicesController/processors/process-snap-notifications.d.mts.map +0 -1
  72. package/dist/NotificationServicesController/processors/process-snap-notifications.mjs +0 -19
  73. package/dist/NotificationServicesController/processors/process-snap-notifications.mjs.map +0 -1
  74. package/dist/NotificationServicesController/types/snaps/index.cjs +0 -18
  75. package/dist/NotificationServicesController/types/snaps/index.cjs.map +0 -1
  76. package/dist/NotificationServicesController/types/snaps/index.d.cts +0 -2
  77. package/dist/NotificationServicesController/types/snaps/index.d.cts.map +0 -1
  78. package/dist/NotificationServicesController/types/snaps/index.d.mts +0 -2
  79. package/dist/NotificationServicesController/types/snaps/index.d.mts.map +0 -1
  80. package/dist/NotificationServicesController/types/snaps/index.mjs +0 -2
  81. package/dist/NotificationServicesController/types/snaps/index.mjs.map +0 -1
  82. package/dist/NotificationServicesController/types/snaps/snaps.cjs +0 -3
  83. package/dist/NotificationServicesController/types/snaps/snaps.cjs.map +0 -1
  84. package/dist/NotificationServicesController/types/snaps/snaps.d.cts +0 -23
  85. package/dist/NotificationServicesController/types/snaps/snaps.d.cts.map +0 -1
  86. package/dist/NotificationServicesController/types/snaps/snaps.d.mts +0 -23
  87. package/dist/NotificationServicesController/types/snaps/snaps.d.mts.map +0 -1
  88. package/dist/NotificationServicesController/types/snaps/snaps.mjs +0 -2
  89. package/dist/NotificationServicesController/types/snaps/snaps.mjs.map +0 -1
@@ -1,2 +0,0 @@
1
- export * from "./snaps.cjs";
2
- //# sourceMappingURL=index.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/snaps/index.ts"],"names":[],"mappings":"AAAA,4BAAwB"}
@@ -1,2 +0,0 @@
1
- export * from "./snaps.mjs";
2
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/snaps/index.ts"],"names":[],"mappings":"AAAA,4BAAwB"}
@@ -1,2 +0,0 @@
1
- export * from "./snaps.mjs";
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/snaps/index.ts"],"names":[],"mappings":"AAAA,4BAAwB","sourcesContent":["export * from './snaps';\n"]}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=snaps.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"snaps.cjs","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/snaps/snaps.ts"],"names":[],"mappings":"","sourcesContent":["import type { TRIGGER_TYPES } from '../../constants';\n\nexport type ExpandedView = {\n title: string;\n interfaceId: string;\n footerLink?: { href: string; text: string };\n};\n\nexport type RawSnapNotificationData =\n | {\n message: string;\n origin: string;\n }\n | { message: string; origin: string; detailedView: ExpandedView };\n\nexport type RawSnapNotification = {\n type: TRIGGER_TYPES.SNAP;\n data: RawSnapNotificationData;\n readDate: string | null;\n};\n"]}
@@ -1,23 +0,0 @@
1
- import type { TRIGGER_TYPES } from "../../constants/index.cjs";
2
- export type ExpandedView = {
3
- title: string;
4
- interfaceId: string;
5
- footerLink?: {
6
- href: string;
7
- text: string;
8
- };
9
- };
10
- export type RawSnapNotificationData = {
11
- message: string;
12
- origin: string;
13
- } | {
14
- message: string;
15
- origin: string;
16
- detailedView: ExpandedView;
17
- };
18
- export type RawSnapNotification = {
19
- type: TRIGGER_TYPES.SNAP;
20
- data: RawSnapNotificationData;
21
- readDate: string | null;
22
- };
23
- //# sourceMappingURL=snaps.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"snaps.d.cts","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/snaps/snaps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kCAAwB;AAErD,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAC/B;IACE,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,GACD;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,YAAY,CAAA;CAAE,CAAC;AAEpE,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC;IACzB,IAAI,EAAE,uBAAuB,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC"}
@@ -1,23 +0,0 @@
1
- import type { TRIGGER_TYPES } from "../../constants/index.mjs";
2
- export type ExpandedView = {
3
- title: string;
4
- interfaceId: string;
5
- footerLink?: {
6
- href: string;
7
- text: string;
8
- };
9
- };
10
- export type RawSnapNotificationData = {
11
- message: string;
12
- origin: string;
13
- } | {
14
- message: string;
15
- origin: string;
16
- detailedView: ExpandedView;
17
- };
18
- export type RawSnapNotification = {
19
- type: TRIGGER_TYPES.SNAP;
20
- data: RawSnapNotificationData;
21
- readDate: string | null;
22
- };
23
- //# sourceMappingURL=snaps.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"snaps.d.mts","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/snaps/snaps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kCAAwB;AAErD,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAC/B;IACE,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,GACD;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,YAAY,CAAA;CAAE,CAAC;AAEpE,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC;IACzB,IAAI,EAAE,uBAAuB,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=snaps.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"snaps.mjs","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/snaps/snaps.ts"],"names":[],"mappings":"","sourcesContent":["import type { TRIGGER_TYPES } from '../../constants';\n\nexport type ExpandedView = {\n title: string;\n interfaceId: string;\n footerLink?: { href: string; text: string };\n};\n\nexport type RawSnapNotificationData =\n | {\n message: string;\n origin: string;\n }\n | { message: string; origin: string; detailedView: ExpandedView };\n\nexport type RawSnapNotification = {\n type: TRIGGER_TYPES.SNAP;\n data: RawSnapNotificationData;\n readDate: string | null;\n};\n"]}