@ttt-productions/chat-core 0.4.11 → 0.4.12
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/index.d.ts +3 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -11
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.ts +9 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +10 -0
- package/dist/react/index.js.map +1 -0
- package/package.json +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export * from "./hooks/useChatMessages.js";
|
|
5
|
-
export * from "./hooks/useChatThreadAccess.js";
|
|
6
|
-
export * from "./ui/ChatShell.js";
|
|
7
|
-
export * from "./ui/MessageList.js";
|
|
8
|
-
export * from "./ui/Composer.js";
|
|
9
|
-
export * from "./ui/MessageItemDefault.js";
|
|
10
|
-
export * from "./ui/menus.js";
|
|
1
|
+
export { MAX_CHAT_MESSAGE_LENGTH, CHAT_ATTACHMENT_STALE_AGE_MS } from "./constants.js";
|
|
2
|
+
export { GROUP_GAP_SEC } from "./types.js";
|
|
3
|
+
export type { ChatAttachmentStatus, ChatAttachment, ChatId, ChatThreadV1, ChatMessageV1, ChatAccessMode, ChatCoreConfig, ChatAttachmentConfig, RegisterAttachmentInput, RegisterAttachmentFn, DismissFailedAttachmentFn, ModerationHandlers, MessageRenderer, MessageRendererRegistry, ChatNameResolver, ChatPrewarmSenders, } from "./types.js";
|
|
11
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAEvF,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,YAAY,EACR,oBAAoB,EACpB,cAAc,EACd,MAAM,EACN,YAAY,EACZ,aAAa,EACb,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,kBAAkB,GACrB,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export * from "./ui/ChatShell.js";
|
|
7
|
-
export * from "./ui/MessageList.js";
|
|
8
|
-
export * from "./ui/Composer.js";
|
|
9
|
-
export * from "./ui/MessageItemDefault.js";
|
|
10
|
-
export * from "./ui/menus.js";
|
|
11
|
-
// Templates removed in v0.3.0 — use ChatShell directly with render slots.
|
|
1
|
+
// Server-safe barrel. React UI, hooks, and the ChatNameResolver context
|
|
2
|
+
// live on the "/react" subpath. Cloud Functions and other server code
|
|
3
|
+
// import from this barrel only.
|
|
4
|
+
export { MAX_CHAT_MESSAGE_LENGTH, CHAT_ATTACHMENT_STALE_AGE_MS } from "./constants.js";
|
|
5
|
+
export { GROUP_GAP_SEC } from "./types.js";
|
|
12
6
|
// CSS: import "@ttt-productions/chat-core/styles" in your app layout.
|
|
13
7
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,sEAAsE;AACtE,gCAAgC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAEvF,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAoB3C,sEAAsE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "../context/ChatNameResolverContext.js";
|
|
2
|
+
export * from "../hooks/useChatMessages.js";
|
|
3
|
+
export * from "../hooks/useChatThreadAccess.js";
|
|
4
|
+
export * from "../ui/ChatShell.js";
|
|
5
|
+
export * from "../ui/MessageList.js";
|
|
6
|
+
export * from "../ui/Composer.js";
|
|
7
|
+
export * from "../ui/MessageItemDefault.js";
|
|
8
|
+
export * from "../ui/menus.js";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAEA,cAAc,uCAAuC,CAAC;AAEtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAEhD,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
export * from "../context/ChatNameResolverContext.js";
|
|
3
|
+
export * from "../hooks/useChatMessages.js";
|
|
4
|
+
export * from "../hooks/useChatThreadAccess.js";
|
|
5
|
+
export * from "../ui/ChatShell.js";
|
|
6
|
+
export * from "../ui/MessageList.js";
|
|
7
|
+
export * from "../ui/Composer.js";
|
|
8
|
+
export * from "../ui/MessageItemDefault.js";
|
|
9
|
+
export * from "../ui/menus.js";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,cAAc,uCAAuC,CAAC;AAEtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAEhD,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttt-productions/chat-core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.12",
|
|
4
4
|
"description": "Shared Firestore chat core (realtime newest window + infinite older pagination) for TTT Productions apps",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"types": "./dist/index.d.ts",
|
|
24
24
|
"default": "./dist/index.js"
|
|
25
25
|
},
|
|
26
|
+
"./react": {
|
|
27
|
+
"types": "./dist/react/index.d.ts",
|
|
28
|
+
"default": "./dist/react/index.js"
|
|
29
|
+
},
|
|
26
30
|
"./styles": "./src/styles/chat.css"
|
|
27
31
|
},
|
|
28
32
|
"scripts": {
|