@cometchat/skills-cli 2.0.2 → 2.0.4
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.js +6 -6
- package/dist/registry/v6/experiences/1-conversation-list/templates/astro/ChatApp.css.tpl +5 -1
- package/dist/registry/v6/experiences/1-conversation-list/templates/nextjs/CometChatNoSSR.css.tpl +5 -1
- package/dist/registry/v6/experiences/1-conversation-list/templates/nextjs-pages/CometChatNoSSR.css.tpl +5 -1
- package/dist/registry/v6/experiences/1-conversation-list/templates/react-router/CometChatNoSSR.css.tpl +5 -1
- package/dist/registry/v6/experiences/1-conversation-list/templates/reactjs/App.css.tpl +12 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -593,8 +593,8 @@ var ALL_EXPERIENCES = [
|
|
|
593
593
|
{
|
|
594
594
|
id: 1,
|
|
595
595
|
slug: "conversation-list",
|
|
596
|
-
name: "
|
|
597
|
-
description: "Two-panel
|
|
596
|
+
name: "Multi-conversation",
|
|
597
|
+
description: "Users switch between threads. Two-panel: conversation list + active thread (header, message list, composer). Messaging apps, team chat, inboxes.",
|
|
598
598
|
default_placement: "dedicated-route",
|
|
599
599
|
files_touched: 5,
|
|
600
600
|
components_required: [
|
|
@@ -608,8 +608,8 @@ var ALL_EXPERIENCES = [
|
|
|
608
608
|
{
|
|
609
609
|
id: 2,
|
|
610
610
|
slug: "one-to-one",
|
|
611
|
-
name: "
|
|
612
|
-
description: "
|
|
611
|
+
name: "Single thread",
|
|
612
|
+
description: "One chat window for two known users or a group. Header + message list + composer, no conversation list. Support widgets, marketplace chat, embedded consult.",
|
|
613
613
|
default_placement: "dedicated-route",
|
|
614
614
|
files_touched: 4,
|
|
615
615
|
components_required: [
|
|
@@ -622,8 +622,8 @@ var ALL_EXPERIENCES = [
|
|
|
622
622
|
{
|
|
623
623
|
id: 3,
|
|
624
624
|
slug: "tab-based",
|
|
625
|
-
name: "
|
|
626
|
-
description: "
|
|
625
|
+
name: "Full messenger",
|
|
626
|
+
description: "Bottom tab bar: Chats / Calls / Users / Groups. Users browse, start conversations, make calls. Social apps, community platforms, dating.",
|
|
627
627
|
default_placement: "dedicated-route",
|
|
628
628
|
files_touched: 7,
|
|
629
629
|
components_required: [
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
|
+
flex-shrink: 0;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.conversations-wrapper > .cometchat {
|
|
@@ -17,7 +18,8 @@
|
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
.messages-wrapper {
|
|
20
|
-
|
|
21
|
+
flex: 1;
|
|
22
|
+
min-width: 0;
|
|
21
23
|
height: 100%;
|
|
22
24
|
display: flex;
|
|
23
25
|
flex-direction: column;
|
|
@@ -37,3 +39,5 @@
|
|
|
37
39
|
.cometchat .cometchat-message-composer {
|
|
38
40
|
border-radius: 0;
|
|
39
41
|
}
|
|
42
|
+
|
|
43
|
+
.side-component-wrapper { display: flex; width: 30%; max-width: 420px; flex-direction: column; flex-shrink: 0; background: var(--cometchat-background-color-01, #FFF); border-left: 1px solid var(--cometchat-border-color-light, #F5F5F5); height: 100%; overflow: hidden; }
|
package/dist/registry/v6/experiences/1-conversation-list/templates/nextjs/CometChatNoSSR.css.tpl
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
|
+
flex-shrink: 0;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.conversations-wrapper > .cometchat {
|
|
@@ -17,7 +18,8 @@
|
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
.messages-wrapper {
|
|
20
|
-
|
|
21
|
+
flex: 1;
|
|
22
|
+
min-width: 0;
|
|
21
23
|
height: 100%;
|
|
22
24
|
display: flex;
|
|
23
25
|
flex-direction: column;
|
|
@@ -37,3 +39,5 @@
|
|
|
37
39
|
.cometchat .cometchat-message-composer {
|
|
38
40
|
border-radius: 0;
|
|
39
41
|
}
|
|
42
|
+
|
|
43
|
+
.side-component-wrapper { display: flex; width: 30%; max-width: 420px; flex-direction: column; flex-shrink: 0; background: var(--cometchat-background-color-01, #FFF); border-left: 1px solid var(--cometchat-border-color-light, #F5F5F5); height: 100%; overflow: hidden; }
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
|
+
flex-shrink: 0;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.conversations-wrapper > .cometchat {
|
|
@@ -17,7 +18,8 @@
|
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
.messages-wrapper {
|
|
20
|
-
|
|
21
|
+
flex: 1;
|
|
22
|
+
min-width: 0;
|
|
21
23
|
height: 100%;
|
|
22
24
|
display: flex;
|
|
23
25
|
flex-direction: column;
|
|
@@ -37,3 +39,5 @@
|
|
|
37
39
|
.cometchat .cometchat-message-composer {
|
|
38
40
|
border-radius: 0;
|
|
39
41
|
}
|
|
42
|
+
|
|
43
|
+
.side-component-wrapper { display: flex; width: 30%; max-width: 420px; flex-direction: column; flex-shrink: 0; background: var(--cometchat-background-color-01, #FFF); border-left: 1px solid var(--cometchat-border-color-light, #F5F5F5); height: 100%; overflow: hidden; }
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
|
+
flex-shrink: 0;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.conversations-wrapper > .cometchat {
|
|
@@ -17,7 +18,8 @@
|
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
.messages-wrapper {
|
|
20
|
-
|
|
21
|
+
flex: 1;
|
|
22
|
+
min-width: 0;
|
|
21
23
|
height: 100%;
|
|
22
24
|
display: flex;
|
|
23
25
|
flex-direction: column;
|
|
@@ -37,3 +39,5 @@
|
|
|
37
39
|
.cometchat .cometchat-message-composer {
|
|
38
40
|
border-radius: 0;
|
|
39
41
|
}
|
|
42
|
+
|
|
43
|
+
.side-component-wrapper { display: flex; width: 30%; max-width: 420px; flex-direction: column; flex-shrink: 0; background: var(--cometchat-background-color-01, #FFF); border-left: 1px solid var(--cometchat-border-color-light, #F5F5F5); height: 100%; overflow: hidden; }
|
|
@@ -11,8 +11,14 @@
|
|
|
11
11
|
* - #root → 100vh / 100vw (anchor the whole layout in the viewport)
|
|
12
12
|
* - .conversations-with-messages → height: 100% from #root
|
|
13
13
|
* - .conversations-wrapper → height: 100vh (fixed left panel)
|
|
14
|
-
* - .messages-wrapper →
|
|
15
|
-
*
|
|
14
|
+
* - .messages-wrapper → flex: 1 (right panel fills remaining space,
|
|
15
|
+
* shrinks when side panels like details/search/
|
|
16
|
+
* threads open alongside it)
|
|
17
|
+
*
|
|
18
|
+
* The layout is side-panel-ready: adding a details panel, search panel, or
|
|
19
|
+
* thread panel alongside the messages wrapper will work without any CSS changes.
|
|
20
|
+
* The messages-wrapper uses flex: 1 + min-width: 0 so it shrinks automatically
|
|
21
|
+
* when a sibling side panel is added to the flex container.
|
|
16
22
|
*
|
|
17
23
|
* If you customize this layout, every container in the chain from <html> down to
|
|
18
24
|
* the message list MUST have a resolved height. If you switch to inline styles or
|
|
@@ -25,8 +31,10 @@
|
|
|
25
31
|
*/
|
|
26
32
|
#root { width: 100vw; height: 100vh; }
|
|
27
33
|
.conversations-with-messages { display: flex; height: 100%; width: 100%; }
|
|
28
|
-
.conversations-wrapper { height: 100vh; width: 480px; overflow: hidden; display: flex; flex-direction: column; }
|
|
34
|
+
.conversations-wrapper { height: 100vh; width: 480px; overflow: hidden; display: flex; flex-direction: column; flex-shrink: 0; }
|
|
29
35
|
.conversations-wrapper > .cometchat { overflow: hidden; }
|
|
30
|
-
.messages-wrapper { width:
|
|
36
|
+
.messages-wrapper { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; }
|
|
31
37
|
.empty-conversation { height: 100vh; width: 100%; display: flex; justify-content: center; align-items: center; background: var(--cometchat-background-color-03, #F5F5F5); color: var(--cometchat-text-color-secondary, #727272); font: var(--cometchat-font-body-regular, 400 14px Roboto); }
|
|
32
38
|
.cometchat .cometchat-message-composer { border-radius: 0; }
|
|
39
|
+
/* Side panel — used by details, search, threaded messages. Ready to use in Phase B. */
|
|
40
|
+
.side-component-wrapper { display: flex; width: 30%; max-width: 420px; flex-direction: column; flex-shrink: 0; background: var(--cometchat-background-color-01, #FFF); border-left: 1px solid var(--cometchat-border-color-light, #F5F5F5); height: 100%; overflow: hidden; }
|
package/package.json
CHANGED