@ttt-productions/chat-core 0.4.14 → 0.4.16

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.
@@ -1,5 +1,4 @@
1
- /** Maximum length for a chat message body, including admin-support message text. */
2
- export declare const MAX_CHAT_MESSAGE_LENGTH = 4000;
1
+ export { MAX_CHAT_MESSAGE_LENGTH } from '@ttt-productions/ttt-core';
3
2
  /** Age threshold after which a stale chat-attachment row becomes eligible for cleanup (1 hour). */
4
3
  export declare const CHAT_ATTACHMENT_STALE_AGE_MS: number;
5
4
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,oFAAoF;AACpF,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAE5C,mGAAmG;AACnG,eAAO,MAAM,4BAA4B,QAAiB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,mGAAmG;AACnG,eAAO,MAAM,4BAA4B,QAAiB,CAAC"}
package/dist/constants.js CHANGED
@@ -1,6 +1,7 @@
1
1
  // Chat-domain limits and operational constants.
2
- /** Maximum length for a chat message body, including admin-support message text. */
3
- export const MAX_CHAT_MESSAGE_LENGTH = 4000;
2
+ // Re-exported from ttt-core. Source of truth lives there so ttt-core's
3
+ // schemas can reference it without creating a circular package dependency.
4
+ export { MAX_CHAT_MESSAGE_LENGTH } from '@ttt-productions/ttt-core';
4
5
  /** Age threshold after which a stale chat-attachment row becomes eligible for cleanup (1 hour). */
5
6
  export const CHAT_ATTACHMENT_STALE_AGE_MS = 60 * 60 * 1000;
6
7
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAEhD,oFAAoF;AACpF,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAE5C,mGAAmG;AACnG,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAEhD,uEAAuE;AACvE,2EAA2E;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,mGAAmG;AACnG,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttt-productions/chat-core",
3
- "version": "0.4.14",
3
+ "version": "0.4.16",
4
4
  "description": "Shared Firestore chat core (realtime newest window + infinite older pagination) for TTT Productions apps",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,9 +9,11 @@
9
9
  padding: 0.75rem;
10
10
  border-radius: 0.5rem;
11
11
  }
12
+
12
13
  .chat-bubble--mine {
13
14
  background-color: hsl(var(--primary) / 0.1);
14
15
  }
16
+
15
17
  .chat-bubble--theirs {
16
18
  background-color: hsl(var(--muted));
17
19
  }
@@ -20,6 +22,7 @@
20
22
  .chat-group-gap {
21
23
  margin-top: 0.75rem;
22
24
  }
25
+
23
26
  .chat-continuation-gap {
24
27
  margin-top: 0.125rem;
25
28
  }
@@ -44,10 +47,12 @@
44
47
  background-color: hsl(var(--muted) / 0.5);
45
48
  font-size: 0.75rem;
46
49
  }
50
+
47
51
  .chat-reply-quote-sender {
48
52
  font-weight: 600;
49
53
  color: hsl(var(--foreground));
50
54
  }
55
+
51
56
  .chat-reply-quote-preview {
52
57
  color: hsl(var(--muted-foreground));
53
58
  overflow: hidden;
@@ -66,11 +71,13 @@
66
71
  background-color: hsl(var(--muted));
67
72
  font-size: 0.75rem;
68
73
  }
74
+
69
75
  .chat-attachment-media {
70
76
  max-width: 320px;
71
77
  border-radius: 0.375rem;
72
78
  overflow: hidden;
73
79
  }
80
+
74
81
  .chat-attachment-text-link {
75
82
  display: inline-flex;
76
83
  align-items: center;
@@ -83,19 +90,11 @@
83
90
  text-decoration: none;
84
91
  transition: opacity 0.15s;
85
92
  }
93
+
86
94
  .chat-attachment-text-link:hover {
87
95
  opacity: 0.8;
88
96
  }
89
- .chat-attachment-failed {
90
- display: flex;
91
- align-items: center;
92
- gap: 0.375rem;
93
- padding: 0.5rem 0.75rem;
94
- border-radius: 0.375rem;
95
- background-color: hsl(var(--destructive) / 0.1);
96
- color: hsl(var(--destructive));
97
- font-size: 0.75rem;
98
- }
97
+
99
98
  .chat-attachment-rejected {
100
99
  display: flex;
101
100
  align-items: center;
@@ -114,6 +113,7 @@
114
113
  gap: 0.5rem;
115
114
  width: 100%;
116
115
  }
116
+
117
117
  .chat-composer-file-preview {
118
118
  display: flex;
119
119
  align-items: center;
@@ -123,6 +123,7 @@
123
123
  background-color: hsl(var(--muted));
124
124
  font-size: 0.8125rem;
125
125
  }
126
+
126
127
  .chat-composer-file-name {
127
128
  flex: 1;
128
129
  min-width: 0;
@@ -130,8 +131,9 @@
130
131
  text-overflow: ellipsis;
131
132
  white-space: nowrap;
132
133
  }
134
+
133
135
  .chat-composer-upload-status {
134
136
  display: flex;
135
137
  align-items: center;
136
138
  gap: 0.375rem;
137
- }
139
+ }