@company-semantics/contracts 35.1.0 → 37.0.0
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/package.json +4 -1
- package/src/notifications/__tests__/__snapshots__/render-snapshot.test.ts.snap +615 -215
- package/src/notifications/content.ts +14 -1
- package/src/notifications/index.ts +15 -9
- package/src/notifications/renderers/email/README.md +120 -11
- package/src/notifications/renderers/email/__tests__/colors.test.ts +227 -0
- package/src/notifications/renderers/email/__tests__/render.test.ts +86 -0
- package/src/notifications/renderers/email/__tests__/styles.test.ts +111 -0
- package/src/notifications/renderers/email/chat.ts +42 -30
- package/src/notifications/renderers/email/colors.ts +345 -0
- package/src/notifications/renderers/email/constants.ts +27 -20
- package/src/notifications/renderers/email/cta.ts +58 -10
- package/src/notifications/renderers/email/index.ts +15 -3
- package/src/notifications/renderers/email/render.ts +16 -15
- package/src/notifications/renderers/email/shells.ts +49 -9
- package/src/notifications/renderers/email/styles.ts +319 -0
- package/src/notifications/renderers/slack/README.md +66 -25
- package/src/notifications/renderers/slack/__tests__/index.test.ts +249 -41
- package/src/notifications/renderers/slack/index.ts +192 -107
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@company-semantics/contracts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "37.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
"prepublishOnly": "echo 'ERROR: Publishing is CI-only via tag push. Use pnpm release instead.' && exit 1",
|
|
105
105
|
"test": "vitest run",
|
|
106
106
|
"test:run": "vitest run",
|
|
107
|
+
"color": "tsx scripts/color.ts",
|
|
107
108
|
"generate:spec-hash": "tsx scripts/generate-spec-hash.ts",
|
|
108
109
|
"generate:spec-hash:check": "tsx scripts/generate-spec-hash.ts --check",
|
|
109
110
|
"generate:api": "pnpm generate:api-types && pnpm generate:spec-hash && pnpm generate:openapi-routes",
|
|
@@ -122,10 +123,12 @@
|
|
|
122
123
|
"node": "22.x"
|
|
123
124
|
},
|
|
124
125
|
"dependencies": {
|
|
126
|
+
"@slack/types": "^3.0.0",
|
|
125
127
|
"zod": "^4.4.3"
|
|
126
128
|
},
|
|
127
129
|
"devDependencies": {
|
|
128
130
|
"@types/node": "^22.20.1",
|
|
131
|
+
"culori": "^4.0.2",
|
|
129
132
|
"husky": "^9.1.7",
|
|
130
133
|
"lint-staged": "^17.0.8",
|
|
131
134
|
"markdownlint-cli2": "^0.23.0",
|