@genesislcap/pbc-notify-seed 1.0.0 → 1.0.1-pre-release

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/.genx/prompts.js CHANGED
@@ -17,6 +17,9 @@ const prompts = async (inquirer, prevAns) => {
17
17
  emailGatewayEnabled = prevAns.emailGatewayEnabled,
18
18
  screenGatewayEnabled = prevAns.screenGatewayEnabled,
19
19
  teamsGatewayEnabled = prevAns.teamsGatewayEnabled,
20
+ sendGridEnabled = prevAns.sendGridEnabled,
21
+ apiKey = prevAns.apiKey,
22
+ defaultSender = prevAns.defaultSender,
20
23
  smtpHost = prevAns.smtpHost,
21
24
  smtpPort = prevAns.smtpPort,
22
25
  smtpUser = prevAns.smtpUser,
@@ -47,6 +50,27 @@ const prompts = async (inquirer, prevAns) => {
47
50
  default: prevAns.teamsGatewayEnabled || true,
48
51
  when: prevAns.teamsGatewayEnabled === undefined,
49
52
  },
53
+ {
54
+ name: 'sendGridEnabled',
55
+ type: 'confirm',
56
+ message: 'Enable SendGrid Gateway',
57
+ default: prevAns.sendGridEnabled || false,
58
+ when: prevAns.sendGridEnabled === undefined,
59
+ },
60
+ {
61
+ name: 'apiKey',
62
+ type: 'input',
63
+ message: 'SendGrid API Key',
64
+ default: prevAns.apiKey || "",
65
+ when: ({sendGridEnabled}) => sendGridEnabled === true && prevAns.apiKey === undefined,
66
+ },
67
+ {
68
+ name: 'defaultSender',
69
+ type: 'input',
70
+ message: 'SendGrid Default Sender',
71
+ default: prevAns.defaultSender || "",
72
+ when: ({sendGridEnabled}) => sendGridEnabled === true && prevAns.defaultSender === undefined,
73
+ },
50
74
  {
51
75
  name: 'smtpHost',
52
76
  type: 'input',
@@ -109,6 +133,9 @@ const prompts = async (inquirer, prevAns) => {
109
133
  screenGatewayEnabled,
110
134
  emailGatewayEnabled,
111
135
  teamsGatewayEnabled,
136
+ sendGridEnabled,
137
+ apiKey,
138
+ defaultSender,
112
139
  smtpHost,
113
140
  smtpPort,
114
141
  smtpUser,
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "prerequisites": {
3
3
  "foundationUI": "14.*",
4
- "gsf": "7.*"
4
+ "gsf": "8.*"
5
5
  },
6
6
  "dependencies": {
7
- "pbcNotify": "1.0.30",
8
- "serverDepId": "7.2.0",
9
- "fileServerDepId": "7.2.0"
7
+ "pbcNotify": "1.0.34",
8
+ "serverDepId": "8.0.0-RC1",
9
+ "fileServerDepId": "8.0.0-RC1"
10
10
  }
11
11
  }
@@ -1,6 +1,6 @@
1
1
  import type { ToastButton } from '@genesislcap/foundation-notifications';
2
2
  import type { AppElement } from '@genesislcap/foundation-shell/app';
3
- import { html } from '@microsoft/fast-element';
3
+ import { html } from '@genesislcap/web-core';
4
4
  import { getNotifyStore } from './stores';
5
5
 
6
6
  const store = getNotifyStore();
@@ -18,7 +18,7 @@ export const notificationsButton: AppElement = {
18
18
  data-pbc-asset-id="notifications-button"
19
19
  @click=${(x, c) => c.parent.$emit('notification-icon-clicked')}
20
20
  >
21
- <zero-icon variant="regular" name="bell" part="notifications-icon"></zero-icon>
21
+ <rapid-icon variant="regular" name="bell" part="notifications-icon"></rapid-icon>
22
22
  <foundation-inbox-counter part="notifications-inbox-counter"></foundation-inbox-counter>
23
23
  </div>
24
24
  `,
@@ -30,7 +30,7 @@ export const notificationsButton: AppElement = {
30
30
  export const inboxFlyout: AppElement = {
31
31
  targetId: 'layout',
32
32
  elements: html`
33
- <zero-flyout
33
+ <rapid-flyout
34
34
  position="right"
35
35
  @closed=${(x, c) => c.parent.$emit('change-inbox-display', false)}
36
36
  ?closed=${() => !store.inboxDisplayState}
@@ -38,7 +38,7 @@ export const inboxFlyout: AppElement = {
38
38
  >
39
39
  <div slot="title">Alerts Center</div>
40
40
  <foundation-inbox></foundation-inbox>
41
- </zero-flyout>
41
+ </rapid-flyout>
42
42
  `,
43
43
  };
44
44
 
@@ -48,7 +48,7 @@ export const inboxFlyout: AppElement = {
48
48
  export const notificationListener: AppElement = {
49
49
  targetId: 'layout',
50
50
  elements: html`
51
- <zero-notification-listener
51
+ <rapid-notification-listener
52
52
  resource-name="ALL_NOTIFY_ALERT_RECORDS"
53
53
  :toastButtons="${(): ToastButton[] => [
54
54
  // {
@@ -62,7 +62,7 @@ export const notificationListener: AppElement = {
62
62
  // },
63
63
  ]}"
64
64
  data-pbc-asset-id="notification-listener"
65
- ></zero-notification-listener>
65
+ ></rapid-notification-listener>
66
66
  `,
67
67
  };
68
68
 
@@ -6,14 +6,14 @@ import type { AppMetadata } from '@genesislcap/foundation-shell/app';
6
6
  export const metadata: AppMetadata = {
7
7
  name: '@genesislcap/pbc-notify-ui',
8
8
  description: 'Genesis Notify PBC',
9
- version: '1.0.0',
9
+ version: '1.0.1',
10
10
  prerequisites: {
11
11
  '@genesislcap/foundation-ui': '14.*',
12
- gsf: '7.*',
12
+ gsf: '8.*',
13
13
  },
14
14
  dependencies: {
15
- '@genesislcap/pbc-notify-ui': '1.0.30',
15
+ '@genesislcap/pbc-notify-ui': '1.0.34',
16
16
  '@genesislcap/foundation-notifications': '14.*',
17
- serverDepId: '7.2.0',
17
+ serverDepId: '8.0.0-RC1',
18
18
  },
19
19
  };
@@ -1,11 +1,11 @@
1
1
  import type { AppRoute } from '@genesislcap/foundation-shell/app';
2
- import { css, customElement, FASTElement, html } from '@microsoft/fast-element';
2
+ import { css, customElement, GenesisElement, html } from '@genesislcap/web-core';
3
3
 
4
4
  /**
5
5
  * @internal
6
6
  */
7
7
  const notificationsDashboardTemplate = html`
8
- <foundation-notification-dashboard></foundation-notification-dashboard>
8
+ <foundation-notification-dashboard></foundation-notification-dashboard>
9
9
  `;
10
10
 
11
11
  /**
@@ -40,12 +40,12 @@ const notificationsDashboardStyles = css`
40
40
  overflow-y: auto;
41
41
  }
42
42
 
43
- zero-modal::part(dialog) {
43
+ rapid-modal::part(dialog) {
44
44
  padding: 0;
45
45
  }
46
46
 
47
- zero-modal.edit .wrapper,
48
- zero-modal.add .wrapper {
47
+ rapid-modal.edit .wrapper,
48
+ rapid-modal.add .wrapper {
49
49
  padding: 32px 12px;
50
50
  }
51
51
  `;
@@ -58,7 +58,7 @@ const notificationsDashboardStyles = css`
58
58
  template: notificationsDashboardTemplate,
59
59
  styles: notificationsDashboardStyles,
60
60
  })
61
- class Notifications extends FASTElement {}
61
+ class Notifications extends GenesisElement {}
62
62
 
63
63
  /**
64
64
  * @public
@@ -1,8 +1,7 @@
1
1
  import type { NavEventDetailMap } from '@genesislcap/foundation-header';
2
2
  import type { AppStore } from '@genesislcap/foundation-shell/app';
3
3
  import { AbstractStore, registerStore, Store } from '@genesislcap/foundation-store';
4
- import { observable } from '@microsoft/fast-element';
5
- import { DI } from '@microsoft/fast-foundation';
4
+ import { DI, observable } from '@genesislcap/web-core';
6
5
 
7
6
  /**
8
7
  * These could be broken out into alerts, inbox etc. Basically whatever is a separate package, or a separate answer in
@@ -1,19 +1,5 @@
1
1
  import type { AppStyle } from '@genesislcap/foundation-shell/app';
2
- import { css } from '@microsoft/fast-element';
3
-
4
- /**
5
- * @privateRemarks
6
- * This one was to cross-check main targeting via notify was working, nav-height change not required here.
7
- * @public
8
- */
9
- export const main: AppStyle = {
10
- targetId: 'main',
11
- styles: css`
12
- :host {
13
- --nav-height: 60px;
14
- }
15
- `,
16
- };
2
+ import { css } from '@genesislcap/web-core';
17
3
 
18
4
  /**
19
5
  * @public
@@ -21,7 +7,7 @@ export const main: AppStyle = {
21
7
  export const inbox: AppStyle = {
22
8
  targetId: 'layout',
23
9
  styles: css`
24
- zero-flyout::part(flyout) {
10
+ rapid-flyout::part(flyout) {
25
11
  display: flex;
26
12
  flex-direction: column;
27
13
  width: 40%;
@@ -29,11 +15,11 @@ export const inbox: AppStyle = {
29
15
  padding: 0;
30
16
  }
31
17
 
32
- zero-flyout::part(header) {
33
- border-bottom: calc(var(--stroke-width)* 1px) solid var(--neutral-stroke-divider-rest);
18
+ rapid-flyout::part(header) {
19
+ border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
34
20
  }
35
21
 
36
- zero-flyout::part(content) {
22
+ rapid-flyout::part(content) {
37
23
  height: 100%;
38
24
  display: flex;
39
25
  flex-direction: column;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-notify-seed",
3
- "version": "1.0.0",
3
+ "version": "1.0.1-pre-release",
4
4
  "description": "Genesis Notify PBC",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "publishConfig": {
@@ -20,5 +20,11 @@ notify {
20
20
  {{#if teamsGatewayEnabled}}
21
21
  teams("Teams")
22
22
  {{/if}}
23
+ {{#if sendGridEnabled}}
24
+ sendGrid("SendGrid") {
25
+ apiKey = "{{apiKey}}"
26
+ defaultSender = "{{defaultSender}}"
27
+ }
28
+ {{/if}}
23
29
  }
24
30
  }