@genesislcap/pbc-notify-ui 1.0.22 → 1.0.24

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 (140) hide show
  1. package/.husky/commit-msg +3 -0
  2. package/.husky/pre-commit +4 -0
  3. package/commitlint.config.js +25 -0
  4. package/dist/dts/components/components.d.ts.map +1 -1
  5. package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts.map +1 -1
  6. package/dist/dts/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.d.ts.map +1 -1
  7. package/dist/dts/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.d.ts.map +1 -1
  8. package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts +3 -3
  9. package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts.map +1 -1
  10. package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.d.ts.map +1 -1
  11. package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.d.ts +2 -2
  12. package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.d.ts.map +1 -1
  13. package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.d.ts +1 -1
  14. package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.d.ts.map +1 -1
  15. package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts +8 -8
  16. package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts.map +1 -1
  17. package/dist/dts/components/foundation-inbox/inbox.d.ts.map +1 -1
  18. package/dist/dts/components/foundation-inbox/inbox.styles.d.ts.map +1 -1
  19. package/dist/dts/components/foundation-inbox/inbox.template.d.ts.map +1 -1
  20. package/dist/dts/components/foundation-inbox/inbox.types.d.ts.map +1 -1
  21. package/dist/dts/components/foundation-inbox/inbox.utils.d.ts.map +1 -1
  22. package/dist/dts/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.d.ts.map +1 -1
  23. package/dist/dts/components/foundation-notification-dashboard/components/routes/route-management.d.ts +1 -1
  24. package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.d.ts.map +1 -1
  25. package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.d.ts.map +1 -1
  26. package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.d.ts.map +1 -1
  27. package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.d.ts.map +1 -1
  28. package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.d.ts.map +1 -1
  29. package/dist/dts/components/foundation-notification-dashboard/components/rules/columns.d.ts +1 -1
  30. package/dist/dts/components/foundation-notification-dashboard/components/rules/columns.d.ts.map +1 -1
  31. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts.map +1 -1
  32. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts +1 -1
  33. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts.map +1 -1
  34. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.types.d.ts.map +1 -1
  35. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.d.ts.map +1 -1
  36. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.d.ts.map +1 -1
  37. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts +1 -1
  38. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts.map +1 -1
  39. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts.map +1 -1
  40. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-management.d.ts +1 -1
  41. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-management.d.ts.map +1 -1
  42. package/dist/dts/components/foundation-notification-dashboard/components/templates/columns.d.ts +1 -1
  43. package/dist/dts/components/foundation-notification-dashboard/components/templates/columns.d.ts.map +1 -1
  44. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.d.ts.map +1 -1
  45. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.d.ts +1 -1
  46. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.d.ts.map +1 -1
  47. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.d.ts +3 -3
  48. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.d.ts.map +1 -1
  49. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.d.ts +1 -1
  50. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.d.ts.map +1 -1
  51. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts +2 -2
  52. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts.map +1 -1
  53. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.d.ts.map +1 -1
  54. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.d.ts +1 -1
  55. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.d.ts.map +1 -1
  56. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.d.ts.map +1 -1
  57. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.d.ts +1 -1
  58. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.d.ts.map +1 -1
  59. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-management.d.ts +1 -1
  60. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-management.d.ts.map +1 -1
  61. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts +1 -1
  62. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts.map +1 -1
  63. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.template.d.ts.map +1 -1
  64. package/dist/dts/components/foundation-notification-dashboard/types/right-criteria.d.ts.map +1 -1
  65. package/dist/dts/components/foundation-notification-dashboard/types/rule-execution-strategy.d.ts.map +1 -1
  66. package/dist/dts/services/alert.service.d.ts.map +1 -1
  67. package/dist/dts/services/notify.service.d.ts.map +1 -1
  68. package/dist/dts/services/rule.service.d.ts.map +1 -1
  69. package/dist/dts/services/system.service.d.ts.map +1 -1
  70. package/dist/dts/services/template.service.d.ts.map +1 -1
  71. package/dist/dts/utils/eventDetail.d.ts +1 -1
  72. package/dist/dts/utils/gridConfig.d.ts.map +1 -1
  73. package/dist/dts/utils/humanize.d.ts.map +1 -1
  74. package/dist/dts/utils/icons.d.ts.map +1 -1
  75. package/dist/dts/utils/logger.d.ts.map +1 -1
  76. package/dist/dts/utils/updateArray.d.ts.map +1 -1
  77. package/dist/esm/components/components.js +10 -10
  78. package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.js +1 -1
  79. package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.js +1 -1
  80. package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.styles.js +1 -1
  81. package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.js +5 -10
  82. package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.js +9 -11
  83. package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.js +2 -2
  84. package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.js +12 -13
  85. package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.js +6 -6
  86. package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.js +1 -1
  87. package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.js +27 -33
  88. package/dist/esm/components/foundation-inbox/inbox-base/inbox-base.js +15 -22
  89. package/dist/esm/components/foundation-inbox/inbox.js +1 -1
  90. package/dist/esm/components/foundation-inbox/inbox.styles.js +17 -33
  91. package/dist/esm/components/foundation-inbox/inbox.template.js +44 -37
  92. package/dist/esm/components/foundation-inbox/inbox.utils.js +4 -8
  93. package/dist/esm/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.js +9 -10
  94. package/dist/esm/components/foundation-notification-dashboard/components/routes/route-management.js +4 -4
  95. package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.js +8 -9
  96. package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.js +8 -9
  97. package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.js +11 -12
  98. package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.js +12 -13
  99. package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.js +17 -18
  100. package/dist/esm/components/foundation-notification-dashboard/components/rules/columns.js +10 -10
  101. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.js +2 -2
  102. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.styles.js +2 -2
  103. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.js +21 -32
  104. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.js +12 -19
  105. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.js +29 -18
  106. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +30 -64
  107. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-management.js +15 -19
  108. package/dist/esm/components/foundation-notification-dashboard/components/templates/columns.js +10 -10
  109. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.js +4 -8
  110. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.styles.js +2 -2
  111. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.js +25 -47
  112. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.js +4 -8
  113. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.js +4 -4
  114. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.js +25 -44
  115. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +29 -29
  116. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.js +29 -21
  117. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.js +32 -72
  118. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.js +18 -18
  119. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-management.js +15 -19
  120. package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.js +2 -2
  121. package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.tabs.js +5 -5
  122. package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.template.js +7 -5
  123. package/dist/esm/components/foundation-notification-dashboard/styles/management.styles.js +1 -1
  124. package/dist/esm/components/foundation-notification-dashboard/styles/rules-and-templates.styles.js +1 -1
  125. package/dist/esm/components/foundation-notification-dashboard/types/expression-type.js +1 -1
  126. package/dist/esm/components/foundation-notification-dashboard/types/right-criteria.js +1 -4
  127. package/dist/esm/components/foundation-notification-dashboard/types/rule-execution-strategy.js +1 -4
  128. package/dist/esm/components/foundation-notification-dashboard/types/severity.js +1 -1
  129. package/dist/esm/index.federated.js +1 -0
  130. package/dist/esm/services/alert.service.js +3 -3
  131. package/dist/esm/services/notify.service.js +6 -6
  132. package/dist/esm/services/rule.service.js +15 -12
  133. package/dist/esm/services/system.service.js +11 -8
  134. package/dist/esm/services/template.service.js +11 -9
  135. package/dist/esm/utils/gridConfig.js +1 -1
  136. package/dist/esm/utils/humanize.js +3 -2
  137. package/dist/esm/utils/icons.js +3 -10
  138. package/dist/esm/utils/notifyPermissions.js +4 -4
  139. package/package.json +43 -5
  140. package/scripts/commitlint.js +24 -0
@@ -4,8 +4,10 @@ import { DI } from '@microsoft/fast-foundation';
4
4
  class SystemServiceImpl {
5
5
  getResources() {
6
6
  return __awaiter(this, void 0, void 0, function* () {
7
- const response = yield this.connect.request('NOTIFY_SYSTEM_ENTITY', { REQUEST: { ENTITY_NAME: "*" } });
8
- return response.REPLY.map(table => table.ENTITY_NAME).sort();
7
+ const response = yield this.connect.request('NOTIFY_SYSTEM_ENTITY', {
8
+ REQUEST: { ENTITY_NAME: '*' },
9
+ });
10
+ return response.REPLY.map((table) => table.ENTITY_NAME).sort();
9
11
  });
10
12
  }
11
13
  getFields(resource) {
@@ -15,16 +17,17 @@ class SystemServiceImpl {
15
17
  }
16
18
  const response = yield this.connect.request('SYSTEM_ENTITY_FIELDS', {
17
19
  REQUEST: {
18
- ENTITY_NAME: resource
19
- }
20
+ ENTITY_NAME: resource,
21
+ },
20
22
  });
21
- return response.REPLY
22
- .sort((a, b) => a.NAME.localeCompare(b.NAME))
23
- .map(entity => ({ FIELD_NAME: entity.NAME, FIELD_TYPE: entity.TYPE }));
23
+ return response.REPLY.sort((a, b) => a.NAME.localeCompare(b.NAME)).map((entity) => ({
24
+ FIELD_NAME: entity.NAME,
25
+ FIELD_TYPE: entity.TYPE,
26
+ }));
24
27
  });
25
28
  }
26
29
  }
27
30
  __decorate([
28
31
  Connect
29
32
  ], SystemServiceImpl.prototype, "connect", void 0);
30
- export const SystemService = DI.createInterface(x => x.singleton(SystemServiceImpl));
33
+ export const SystemService = DI.createInterface((x) => x.singleton(SystemServiceImpl));
@@ -4,7 +4,7 @@ import { DI } from '@microsoft/fast-foundation';
4
4
  class TemplateServiceImpl {
5
5
  createRuleTemplate(ruleTemplate) {
6
6
  return __awaiter(this, void 0, void 0, function* () {
7
- return yield this.connect.commitEvent('EVENT_NOTIFICATION_RULE_TEMPLATE_CREATE', {
7
+ return this.connect.commitEvent('EVENT_NOTIFICATION_RULE_TEMPLATE_CREATE', {
8
8
  DETAILS: ruleTemplate,
9
9
  IGNORE_WARNINGS: true,
10
10
  VALIDATE: false,
@@ -13,7 +13,7 @@ class TemplateServiceImpl {
13
13
  }
14
14
  editRuleTemplate(ruleTemplate) {
15
15
  return __awaiter(this, void 0, void 0, function* () {
16
- return yield this.connect.commitEvent('EVENT_NOTIFICATION_RULE_TEMPLATE_UPDATE', {
16
+ return this.connect.commitEvent('EVENT_NOTIFICATION_RULE_TEMPLATE_UPDATE', {
17
17
  DETAILS: ruleTemplate,
18
18
  IGNORE_WARNINGS: true,
19
19
  VALIDATE: false,
@@ -23,7 +23,7 @@ class TemplateServiceImpl {
23
23
  getRuleTemplates() {
24
24
  return __awaiter(this, void 0, void 0, function* () {
25
25
  let ruleTemplates = [];
26
- yield this.connect.request('REQ_NOTIFICATION_RULE_TEMPLATE', { REQUEST: true }).then(data => {
26
+ yield this.connect.request('REQ_NOTIFICATION_RULE_TEMPLATE', { REQUEST: true }).then((data) => {
27
27
  ruleTemplates = data.REPLY;
28
28
  });
29
29
  return ruleTemplates;
@@ -32,11 +32,13 @@ class TemplateServiceImpl {
32
32
  getRuleTemplateDetails(dynamicRuleId) {
33
33
  return __awaiter(this, void 0, void 0, function* () {
34
34
  let ruleTemplateDetails = {};
35
- yield this.connect.request('REQ_NOTIFICATION_RULE_TEMPLATE_DETAILS', {
35
+ yield this.connect
36
+ .request('REQ_NOTIFICATION_RULE_TEMPLATE_DETAILS', {
36
37
  REQUEST: {
37
- ID: dynamicRuleId
38
- }
39
- }).then(data => {
38
+ ID: dynamicRuleId,
39
+ },
40
+ })
41
+ .then((data) => {
40
42
  if (!data.REPLY) {
41
43
  return;
42
44
  }
@@ -48,7 +50,7 @@ class TemplateServiceImpl {
48
50
  deleteRuleTemplate(dynamicRuleId) {
49
51
  return this.connect.commitEvent('EVENT_NOTIFICATION_RULE_TEMPLATE_DELETE', {
50
52
  DETAILS: {
51
- ID: dynamicRuleId
53
+ ID: dynamicRuleId,
52
54
  },
53
55
  IGNORE_WARNINGS: true,
54
56
  VALIDATE: false,
@@ -58,4 +60,4 @@ class TemplateServiceImpl {
58
60
  __decorate([
59
61
  Connect
60
62
  ], TemplateServiceImpl.prototype, "connect", void 0);
61
- export const TemplateService = DI.createInterface(x => x.singleton(TemplateServiceImpl));
63
+ export const TemplateService = DI.createInterface((x) => x.singleton(TemplateServiceImpl));
@@ -2,4 +2,4 @@ export const hideColumn = {
2
2
  hide: true,
3
3
  };
4
4
  export const suppressColumn = Object.assign(Object.assign({}, hideColumn), { suppressColumnsToolPanel: true });
5
- export const hideColumns = (fieldsToSuppress) => fieldsToSuppress.map(columnName => (Object.assign({ field: columnName }, suppressColumn)));
5
+ export const hideColumns = (fieldsToSuppress) => fieldsToSuppress.map((columnName) => (Object.assign({ field: columnName }, suppressColumn)));
@@ -2,8 +2,9 @@ export const humanize = (s) => {
2
2
  if (!s) {
3
3
  return '';
4
4
  }
5
- let i, frags = s.split('_');
6
- for (i = 0; i < frags.length; i++) {
5
+ let i;
6
+ const frags = s.split('_');
7
+ for (i = 0; i < frags.length; i += 1) {
7
8
  frags[i] = frags[i].charAt(0).toUpperCase() + frags[i].slice(1).toLowerCase();
8
9
  }
9
10
  return frags.join(' ');
@@ -1,4 +1,4 @@
1
- import { html } from "@microsoft/fast-element";
1
+ import { html } from '@microsoft/fast-element';
2
2
  export const editIcon = html `
3
3
  <zero-icon
4
4
  style="pointer-events: none; opacity: 0.5"
@@ -6,15 +6,8 @@ export const editIcon = html `
6
6
  variant="solid"
7
7
  name="pen"
8
8
  size="lg"
9
- >
10
- </zero-icon>
9
+ ></zero-icon>
11
10
  `;
12
11
  export const deleteIcon = html `
13
- <zero-icon
14
- style="opacity: 0.5"
15
- variant="regular"
16
- name="trash-alt"
17
- size="lg"
18
- >
19
- </zero-icon>
12
+ <zero-icon style="opacity: 0.5" variant="regular" name="trash-alt" size="lg"></zero-icon>
20
13
  `;
@@ -1,6 +1,6 @@
1
1
  export const NotifyPermission = {
2
- NotificationRuleView: "NotificationRuleView",
3
- NotificationRuleTemplateView: "NotificationRuleTemplateView",
4
- NotificationRouteView: "NotificationRouteView",
5
- NotificationAuditView: "NotificationAuditView",
2
+ NotificationRuleView: 'NotificationRuleView',
3
+ NotificationRuleTemplateView: 'NotificationRuleTemplateView',
4
+ NotificationRouteView: 'NotificationRouteView',
5
+ NotificationAuditView: 'NotificationAuditView',
6
6
  };
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-notify-ui",
3
3
  "description": "Genesis PBC Notify UI",
4
- "version": "1.0.22",
4
+ "version": "1.0.24",
5
5
  "license": "SEE LICENSE IN license.txt",
6
+ "workspaces": [
7
+ "client"
8
+ ],
6
9
  "main": "dist/esm/index.js",
7
10
  "types": "dist/dts/index.d.ts",
8
11
  "engines": {
@@ -29,12 +32,14 @@
29
32
  }
30
33
  },
31
34
  "scripts": {
35
+ "baseline": "npm run clean && npm run bootstrap",
32
36
  "bootstrap": "npm install --no-fund --no-audit",
33
37
  "bootstrap:ci": "npm ci --no-fund --no-audit",
34
38
  "build": "genx build -b ts",
35
39
  "build:webpack": "genx build",
36
40
  "build:webpack:stats": "genx analyze",
37
- "clean": "rimraf dist tsconfig.tsbuildinfo",
41
+ "clean": "genx clean dist node_modules",
42
+ "commitlint": "node ./scripts/commitlint",
38
43
  "dev": "genx dev -e API_HOST",
39
44
  "dev:docker": "npm run dev -- --host 0.0.0.0",
40
45
  "dev:intellij": "genx dev -e",
@@ -51,27 +56,60 @@
51
56
  "test:unit:browser": "genx test --browser",
52
57
  "test:unit:browser:watch": "genx test --browser --watch",
53
58
  "test:unit:watch": "genx test --watch",
54
- "test:debug": "genx test --debug"
59
+ "test:debug": "genx test --debug",
60
+ "lint": "genx lint --profile",
61
+ "lint:fix": "genx lint --fix",
62
+ "lint:eslint": "genx lint -l eslint --profile",
63
+ "lint:stylelint": "genx lint -l stylelint",
64
+ "prepare": "cd .. && husky client/.husky"
55
65
  },
66
+ "lint-staged": {
67
+ "*.{ts,js}": "eslint",
68
+ "*.styles.ts": "stylelint"
69
+ },
70
+ "dependencies": {
71
+ "web-push": "^3.4.4"
72
+ },
73
+ "eslintConfig": {
74
+ "extends": "@genesislcap/eslint-config"
75
+ },
76
+ "stylelint": {
77
+ "extends": "@genesislcap/stylelint-config"
78
+ },
79
+ "prettier": "@genesislcap/prettier-config",
56
80
  "devDependencies": {
81
+ "@commitlint/cli": "^19.2.1",
82
+ "@commitlint/config-conventional": "^19.1.0",
83
+ "@commitlint/format": "^19.0.3",
84
+ "@genesislcap/eslint-config": "~14",
85
+ "@genesislcap/eslint-stylelint-builder": "~14",
57
86
  "@genesislcap/foundation-testing": "~14",
58
87
  "@genesislcap/genx": "~14",
88
+ "@genesislcap/prettier-config": "~14",
89
+ "@genesislcap/stylelint-config": "~14",
90
+ "conventional-changelog-conventionalcommits": "^6.1.0",
91
+ "husky": "9.0.11",
92
+ "lint-prepush": "^2.2.1",
93
+ "lint-staged": "^15.2.2",
59
94
  "playwright-lighthouse": "^3.1.0",
60
95
  "rimraf": "^3.0.2",
61
96
  "tslib": "^2.3.1"
62
97
  },
63
98
  "peerDependencies": {
99
+ "@genesislcap/foundation-comms": "~14",
64
100
  "@genesislcap/foundation-entity-management": "~14",
101
+ "@genesislcap/foundation-forms": "~14",
65
102
  "@genesislcap/foundation-layout": "~14",
66
103
  "@genesislcap/foundation-logger": "~14",
67
104
  "@genesislcap/foundation-notifications": "~14",
68
105
  "@genesislcap/foundation-ui": "~14",
106
+ "@genesislcap/foundation-utils": "~14",
69
107
  "@genesislcap/foundation-zero": "~14",
70
- "@genesislcap/foundation-comms": "~14",
71
108
  "@microsoft/fast-components": "^2.21.3",
72
109
  "@microsoft/fast-element": "^1.7.0",
73
110
  "@microsoft/fast-foundation": "^2.33.2",
74
- "@microsoft/fast-router": "^0.4.2"
111
+ "@microsoft/fast-router": "^0.4.2",
112
+ "@microsoft/fast-web-utilities": "^5.4.1"
75
113
  },
76
114
  "publishConfig": {
77
115
  "access": "public"
@@ -0,0 +1,24 @@
1
+ // wrapper around commitlint CLI allowing to check commit messages
2
+ const format = require('@commitlint/format').default;
3
+ const lint = require('@commitlint/lint').default;
4
+ const load = require('@commitlint/load').default;
5
+
6
+ const message = process.argv.slice(2).join(' ');
7
+
8
+ load({}, { file: 'commitlint.config.js', cwd: process.cwd() })
9
+ .then((opts) =>
10
+ lint(
11
+ message,
12
+ opts.rules,
13
+ opts.parserPreset ? { parserOpts: opts.parserPreset.parserOpts } : {},
14
+ ),
15
+ )
16
+ .then((report) => {
17
+ if (report.valid) {
18
+ console.log(`⧗ input: ${message}
19
+ ✔ Commitlint check successful
20
+ `);
21
+ } else {
22
+ console.log(format({ results: [report] }));
23
+ }
24
+ });