@metamask-previews/notification-services-controller 0.2.1-preview-04657153 → 0.2.1-preview-473880a1
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/dist/NotificationServicesController/NotificationServicesController.js +3 -3
- package/dist/NotificationServicesController/NotificationServicesController.mjs +2 -2
- package/dist/NotificationServicesController/index.js +44 -9
- package/dist/NotificationServicesController/index.mjs +44 -9
- package/dist/NotificationServicesController/services/feature-announcements.js +2 -2
- package/dist/NotificationServicesController/services/feature-announcements.mjs +1 -1
- package/dist/NotificationServicesPushController/NotificationServicesPushController.js +3 -3
- package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs +3 -3
- package/dist/NotificationServicesPushController/index.js +23 -7
- package/dist/NotificationServicesPushController/index.mjs +23 -7
- package/dist/NotificationServicesPushController/services/push/push-web.js +3 -3
- package/dist/NotificationServicesPushController/services/push/push-web.mjs +3 -3
- package/dist/NotificationServicesPushController/services/services.js +3 -3
- package/dist/NotificationServicesPushController/services/services.mjs +3 -3
- package/dist/NotificationServicesPushController/utils/get-notification-message.js +3 -3
- package/dist/NotificationServicesPushController/utils/get-notification-message.mjs +3 -3
- package/dist/NotificationServicesPushController/utils/index.js +3 -3
- package/dist/NotificationServicesPushController/utils/index.mjs +3 -3
- package/dist/{chunk-RVDEVD2D.js → chunk-2O32EME6.js} +3 -3
- package/dist/{chunk-SLSTQQJR.js → chunk-ABWWUGTE.js} +44 -7
- package/dist/chunk-ABWWUGTE.js.map +1 -0
- package/dist/{chunk-QFJZBLYQ.mjs → chunk-C62SK2KY.mjs} +22 -1
- package/dist/chunk-C62SK2KY.mjs.map +1 -0
- package/dist/{chunk-AYAVYLQD.mjs → chunk-DFDFJ4DX.mjs} +2 -2
- package/dist/{chunk-56OOTY2L.mjs → chunk-GNN2XQW4.mjs} +41 -4
- package/dist/chunk-GNN2XQW4.mjs.map +1 -0
- package/dist/{chunk-HZEB53A6.js → chunk-LGXHJ24K.js} +22 -1
- package/dist/chunk-LGXHJ24K.js.map +1 -0
- package/dist/{chunk-UMB6F2XF.mjs → chunk-RZXUP2M6.mjs} +20 -2
- package/dist/chunk-RZXUP2M6.mjs.map +1 -0
- package/dist/{chunk-WBI6LXZV.js → chunk-XGHB2EF3.js} +20 -2
- package/dist/chunk-XGHB2EF3.js.map +1 -0
- package/dist/index.js +5 -5
- package/dist/index.mjs +4 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/NotificationServicesController/__fixtures__/mockResponses.d.ts +2 -2
- package/dist/types/NotificationServicesController/__fixtures__/mockResponses.d.ts.map +1 -1
- package/dist/types/NotificationServicesController/index.d.ts +4 -1
- package/dist/types/NotificationServicesController/index.d.ts.map +1 -1
- package/dist/types/NotificationServicesController/services/feature-announcements.d.ts.map +1 -1
- package/dist/types/NotificationServicesController/types/feature-announcement/feature-announcement.d.ts +11 -9
- package/dist/types/NotificationServicesController/types/feature-announcement/feature-announcement.d.ts.map +1 -1
- package/dist/types/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.ts +4 -3
- package/dist/types/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.ts.map +1 -1
- package/dist/types/NotificationServicesController/types/feature-announcement/type-links.d.ts +15 -10
- package/dist/types/NotificationServicesController/types/feature-announcement/type-links.d.ts.map +1 -1
- package/dist/types/NotificationServicesPushController/index.d.ts +2 -0
- package/dist/types/NotificationServicesPushController/index.d.ts.map +1 -1
- package/notification-services/mocks/package.json +1 -1
- package/notification-services/package.json +1 -1
- package/notification-services/ui/package.json +1 -1
- package/package.json +4 -29
- package/push-services/mocks/package.json +1 -1
- package/push-services/package.json +1 -1
- package/dist/chunk-56OOTY2L.mjs.map +0 -1
- package/dist/chunk-HZEB53A6.js.map +0 -1
- package/dist/chunk-QFJZBLYQ.mjs.map +0 -1
- package/dist/chunk-SLSTQQJR.js.map +0 -1
- package/dist/chunk-UMB6F2XF.mjs.map +0 -1
- package/dist/chunk-WBI6LXZV.js.map +0 -1
- package/notification-services/constants/package.json +0 -9
- package/notification-services/processors/package.json +0 -9
- package/notification-services/types/package.json +0 -9
- package/push-services/types/package.json +0 -9
- package/push-services/utils/package.json +0 -9
- /package/dist/{chunk-RVDEVD2D.js.map → chunk-2O32EME6.js.map} +0 -0
- /package/dist/{chunk-AYAVYLQD.mjs.map → chunk-DFDFJ4DX.mjs.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/NotificationServicesPushController/index.ts","../src/NotificationServicesPushController/__fixtures__/index.ts","../src/NotificationServicesPushController/__fixtures__/mockResponse.ts"],"sourcesContent":["import Controller from './NotificationServicesPushController';\n\nconst NotificationServicesPushController = Controller;\nexport { Controller };\nexport default NotificationServicesPushController;\nexport * from './NotificationServicesPushController';\nexport * as Types from './types';\nexport * as Utils from './utils';\nexport * as Mocks from './__fixtures__';\n","export * from './mockResponse';\n","import { REGISTRATION_TOKENS_ENDPOINT } from '../services/endpoints';\nimport type { LinksResult } from '../services/services';\n\ntype MockResponse = {\n url: string | RegExp;\n requestMethod: 'GET' | 'POST' | 'PUT';\n response: unknown;\n};\n\nexport const MOCK_REG_TOKEN = 'REG_TOKEN';\nexport const MOCK_LINKS_RESPONSE: LinksResult = {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n trigger_ids: ['1', '2', '3'],\n // eslint-disable-next-line @typescript-eslint/naming-convention\n registration_tokens: [\n { token: 'reg_token_1', platform: 'portfolio' },\n { token: 'reg_token_2', platform: 'extension' },\n ],\n};\n\nexport const getMockRetrievePushNotificationLinksResponse = () => {\n return {\n url: REGISTRATION_TOKENS_ENDPOINT,\n requestMethod: 'GET',\n response: MOCK_LINKS_RESPONSE,\n } satisfies MockResponse;\n};\n\nexport const getMockUpdatePushNotificationLinksResponse = () => {\n return {\n url: REGISTRATION_TOKENS_ENDPOINT,\n requestMethod: 'POST',\n response: null,\n } satisfies MockResponse;\n};\n\nexport const MOCK_FCM_RESPONSE = {\n name: '',\n token: 'fcm-token',\n web: {\n endpoint: '',\n p256dh: '',\n auth: '',\n applicationPubKey: '',\n },\n};\n\nexport const getMockCreateFCMRegistrationTokenResponse = () => {\n return {\n url: /^https:\\/\\/fcmregistrations\\.googleapis\\.com\\/v1\\/projects\\/.*$/u,\n requestMethod: 'POST',\n response: MOCK_FCM_RESPONSE,\n } satisfies MockResponse;\n};\n\nexport const getMockDeleteFCMRegistrationTokenResponse = () => {\n return {\n url: /^https:\\/\\/fcmregistrations\\.googleapis\\.com\\/v1\\/projects\\/.*$/u,\n requestMethod: 'POST',\n response: {},\n } satisfies MockResponse;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACSO,IAAM,iBAAiB;AACvB,IAAM,sBAAmC;AAAA;AAAA,EAE9C,aAAa,CAAC,KAAK,KAAK,GAAG;AAAA;AAAA,EAE3B,qBAAqB;AAAA,IACnB,EAAE,OAAO,eAAe,UAAU,YAAY;AAAA,IAC9C,EAAE,OAAO,eAAe,UAAU,YAAY;AAAA,EAChD;AACF;AAEO,IAAM,+CAA+C,MAAM;AAChE,SAAO;AAAA,IACL,KAAK;AAAA,IACL,eAAe;AAAA,IACf,UAAU;AAAA,EACZ;AACF;AAEO,IAAM,6CAA6C,MAAM;AAC9D,SAAO;AAAA,IACL,KAAK;AAAA,IACL,eAAe;AAAA,IACf,UAAU;AAAA,EACZ;AACF;AAEO,IAAM,oBAAoB;AAAA,EAC/B,MAAM;AAAA,EACN,OAAO;AAAA,EACP,KAAK;AAAA,IACH,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,mBAAmB;AAAA,EACrB;AACF;AAEO,IAAM,4CAA4C,MAAM;AAC7D,SAAO;AAAA,IACL,KAAK;AAAA,IACL,eAAe;AAAA,IACf,UAAU;AAAA,EACZ;AACF;AAEO,IAAM,4CAA4C,MAAM;AAC7D,SAAO;AAAA,IACL,KAAK;AAAA,IACL,eAAe;AAAA,IACf,UAAU,CAAC;AAAA,EACb;AACF;;;AF3DA,IAAMA,sCAAqC;AAE3C,IAAO,6CAAQC;","names":["NotificationServicesPushController","NotificationServicesPushController"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/NotificationServicesPushController/index.ts","../src/NotificationServicesPushController/__fixtures__/index.ts","../src/NotificationServicesPushController/__fixtures__/mockResponse.ts"],"names":["NotificationServicesPushController"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACSO,IAAM,iBAAiB;AACvB,IAAM,sBAAmC;AAAA;AAAA,EAE9C,aAAa,CAAC,KAAK,KAAK,GAAG;AAAA;AAAA,EAE3B,qBAAqB;AAAA,IACnB,EAAE,OAAO,eAAe,UAAU,YAAY;AAAA,IAC9C,EAAE,OAAO,eAAe,UAAU,YAAY;AAAA,EAChD;AACF;AAEO,IAAM,+CAA+C,MAAM;AAChE,SAAO;AAAA,IACL,KAAK;AAAA,IACL,eAAe;AAAA,IACf,UAAU;AAAA,EACZ;AACF;AAEO,IAAM,6CAA6C,MAAM;AAC9D,SAAO;AAAA,IACL,KAAK;AAAA,IACL,eAAe;AAAA,IACf,UAAU;AAAA,EACZ;AACF;AAEO,IAAM,oBAAoB;AAAA,EAC/B,MAAM;AAAA,EACN,OAAO;AAAA,EACP,KAAK;AAAA,IACH,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,mBAAmB;AAAA,EACrB;AACF;AAEO,IAAM,4CAA4C,MAAM;AAC7D,SAAO;AAAA,IACL,KAAK;AAAA,IACL,eAAe;AAAA,IACf,UAAU;AAAA,EACZ;AACF;AAEO,IAAM,4CAA4C,MAAM;AAC7D,SAAO;AAAA,IACL,KAAK;AAAA,IACL,eAAe;AAAA,IACf,UAAU,CAAC;AAAA,EACb;AACF;;;AF3DA,IAAMA,sCAAqC;AAE3C,IAAO,6CAAQA","sourcesContent":["import Controller from './NotificationServicesPushController';\n\nconst NotificationServicesPushController = Controller;\nexport { Controller };\nexport default NotificationServicesPushController;\nexport * from './NotificationServicesPushController';\nexport * as Types from './types';\nexport * as Utils from './utils';\nexport * as Mocks from './__fixtures__';\n","export * from './mockResponse';\n","import { REGISTRATION_TOKENS_ENDPOINT } from '../services/endpoints';\nimport type { LinksResult } from '../services/services';\n\ntype MockResponse = {\n url: string | RegExp;\n requestMethod: 'GET' | 'POST' | 'PUT';\n response: unknown;\n};\n\nexport const MOCK_REG_TOKEN = 'REG_TOKEN';\nexport const MOCK_LINKS_RESPONSE: LinksResult = {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n trigger_ids: ['1', '2', '3'],\n // eslint-disable-next-line @typescript-eslint/naming-convention\n registration_tokens: [\n { token: 'reg_token_1', platform: 'portfolio' },\n { token: 'reg_token_2', platform: 'extension' },\n ],\n};\n\nexport const getMockRetrievePushNotificationLinksResponse = () => {\n return {\n url: REGISTRATION_TOKENS_ENDPOINT,\n requestMethod: 'GET',\n response: MOCK_LINKS_RESPONSE,\n } satisfies MockResponse;\n};\n\nexport const getMockUpdatePushNotificationLinksResponse = () => {\n return {\n url: REGISTRATION_TOKENS_ENDPOINT,\n requestMethod: 'POST',\n response: null,\n } satisfies MockResponse;\n};\n\nexport const MOCK_FCM_RESPONSE = {\n name: '',\n token: 'fcm-token',\n web: {\n endpoint: '',\n p256dh: '',\n auth: '',\n applicationPubKey: '',\n },\n};\n\nexport const getMockCreateFCMRegistrationTokenResponse = () => {\n return {\n url: /^https:\\/\\/fcmregistrations\\.googleapis\\.com\\/v1\\/projects\\/.*$/u,\n requestMethod: 'POST',\n response: MOCK_FCM_RESPONSE,\n } satisfies MockResponse;\n};\n\nexport const getMockDeleteFCMRegistrationTokenResponse = () => {\n return {\n url: /^https:\\/\\/fcmregistrations\\.googleapis\\.com\\/v1\\/projects\\/.*$/u,\n requestMethod: 'POST',\n response: {},\n } satisfies MockResponse;\n};\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@metamask/notification-services-controller",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"sideEffects": false,
|
|
7
|
-
"main": "../../dist/NotificationServicesController/constants/index.js",
|
|
8
|
-
"types": "../../dist/types/NotificationServicesController/constants/index.d.ts"
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@metamask/notification-services-controller",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"sideEffects": false,
|
|
7
|
-
"main": "../../dist/NotificationServicesController/processors/index.js",
|
|
8
|
-
"types": "../../dist/types/NotificationServicesController/processors/index.d.ts"
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@metamask/notification-services-controller",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"sideEffects": false,
|
|
7
|
-
"main": "../../dist/NotificationServicesController/types/index.js",
|
|
8
|
-
"types": "../../dist/types/NotificationServicesController/types/index.d.ts"
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@metamask/notification-services-controller",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"sideEffects": false,
|
|
7
|
-
"main": "../../dist/NotificationServicesPushController/types/index.js",
|
|
8
|
-
"types": "../../dist/types/NotificationServicesPushController/types/index.d.ts"
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@metamask/notification-services-controller",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"sideEffects": false,
|
|
7
|
-
"main": "../../dist/NotificationServicesPushController/utils/index.js",
|
|
8
|
-
"types": "../../dist/types/NotificationServicesPushController/utils/index.d.ts"
|
|
9
|
-
}
|
|
File without changes
|
|
File without changes
|