@c2n/chat-message 0.0.14 → 0.0.15
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 +3 -3
- package/react.d.ts +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c2n/chat-message",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/chat-message.js",
|
|
6
6
|
"exports": {
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@c2n/core": "0.0.
|
|
65
|
+
"@c2n/core": "0.0.15",
|
|
66
66
|
"lit": "3.3.3"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@c2n/config": "*"
|
|
70
70
|
},
|
|
71
71
|
"customElements": "custom-elements.json",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "129a6e537c68c04ed2a36508789bf42c9781e196"
|
|
73
73
|
}
|
package/react.d.ts
CHANGED
|
@@ -9,15 +9,14 @@
|
|
|
9
9
|
//
|
|
10
10
|
// On a server-rendered page (Next.js, React Router SSR) write a camelCase property by its kebab-case attribute
|
|
11
11
|
// name ('row-key', not rowKey): the server emits props verbatim, HTML lowercases them, and hydration does not
|
|
12
|
-
// set properties. Those names are listed next to the properties below.
|
|
12
|
+
// set properties. Those names are listed next to the properties below. Structured converter-backed values
|
|
13
|
+
// also accept their serialized string form, so server JSX can emit the same JSON/CSV attribute used by HTML.
|
|
13
14
|
|
|
14
15
|
import type { DetailedHTMLProps, HTMLAttributes } from 'react'
|
|
15
16
|
import type { ChatMessage } from '@c2n/chat-message'
|
|
16
17
|
|
|
17
18
|
/** Standard React host-element attributes plus the element's own public properties. */
|
|
18
19
|
type C2Props<T> = DetailedHTMLProps<HTMLAttributes<T>, T> & Partial<Omit<T, keyof HTMLElement>>
|
|
19
|
-
/** What React writes to a custom element's attribute: true becomes the empty string, false removes it. */
|
|
20
|
-
type Attribute = string | number | boolean
|
|
21
20
|
|
|
22
21
|
declare module 'react' {
|
|
23
22
|
namespace JSX {
|