@chatterfly/widget 0.3.0 → 0.4.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/dist/index.css CHANGED
@@ -65,6 +65,7 @@
65
65
  }
66
66
  }
67
67
  .widget_widget {
68
+ position: relative;
68
69
  font-family: var(--cf-font);
69
70
  font-size: 14px;
70
71
  color: var(--cf-fg);
@@ -1119,6 +1120,24 @@
1119
1120
  background: var(--cf-surface);
1120
1121
  border-bottom: 1px solid var(--cf-border);
1121
1122
  }
1123
+ .widget_reconnectingPill {
1124
+ position: absolute;
1125
+ top: 0.5rem;
1126
+ left: 50%;
1127
+ transform: translateX(-50%);
1128
+ z-index: 5;
1129
+ display: flex;
1130
+ align-items: center;
1131
+ gap: 0.4rem;
1132
+ padding: 0.25rem 0.65rem;
1133
+ font-size: 11px;
1134
+ color: var(--cf-muted);
1135
+ background: var(--cf-surface);
1136
+ border: 1px solid var(--cf-border);
1137
+ border-radius: 999px;
1138
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
1139
+ pointer-events: none;
1140
+ }
1122
1141
  .widget_terminalBanner {
1123
1142
  padding: 0.75rem 1rem;
1124
1143
  text-align: center;
@@ -1134,6 +1153,77 @@
1134
1153
  color: var(--cf-error);
1135
1154
  background: color-mix(in srgb, var(--cf-error) 6%, transparent);
1136
1155
  }
1156
+ .widget_startNewConversationButton {
1157
+ display: block;
1158
+ margin: 0.625rem auto 0;
1159
+ padding: 0.4rem 1rem;
1160
+ background: transparent;
1161
+ color: inherit;
1162
+ border: 1px solid currentColor;
1163
+ border-radius: var(--cf-radius);
1164
+ font-family: var(--cf-font);
1165
+ font-size: 12px;
1166
+ font-weight: 600;
1167
+ cursor: pointer;
1168
+ opacity: 0.85;
1169
+ transition: opacity 0.15s;
1170
+ }
1171
+ .widget_startNewConversationButton:hover {
1172
+ opacity: 1;
1173
+ }
1174
+ .widget_gateCard {
1175
+ display: flex;
1176
+ flex-direction: column;
1177
+ align-items: center;
1178
+ justify-content: center;
1179
+ gap: 0.75rem;
1180
+ padding: 2rem 1.5rem;
1181
+ text-align: center;
1182
+ }
1183
+ .widget_gateTitle {
1184
+ font-size: 15px;
1185
+ font-weight: 600;
1186
+ color: var(--cf-fg);
1187
+ }
1188
+ .widget_gateDescription {
1189
+ font-size: 13px;
1190
+ color: var(--cf-muted);
1191
+ }
1192
+ .widget_gateActions {
1193
+ display: flex;
1194
+ gap: 0.5rem;
1195
+ margin-top: 0.25rem;
1196
+ }
1197
+ .widget_gateButtonPrimary {
1198
+ padding: 0.5rem 1.25rem;
1199
+ background: var(--cf-primary);
1200
+ color: #fff;
1201
+ border: none;
1202
+ border-radius: var(--cf-radius);
1203
+ font-family: var(--cf-font);
1204
+ font-size: 13px;
1205
+ font-weight: 600;
1206
+ cursor: pointer;
1207
+ transition: opacity 0.15s;
1208
+ }
1209
+ .widget_gateButtonPrimary:hover {
1210
+ opacity: 0.88;
1211
+ }
1212
+ .widget_gateButtonSecondary {
1213
+ padding: 0.5rem 1.25rem;
1214
+ background: transparent;
1215
+ color: var(--cf-fg);
1216
+ border: 1px solid var(--cf-border);
1217
+ border-radius: var(--cf-radius);
1218
+ font-family: var(--cf-font);
1219
+ font-size: 13px;
1220
+ font-weight: 600;
1221
+ cursor: pointer;
1222
+ transition: background 0.15s;
1223
+ }
1224
+ .widget_gateButtonSecondary:hover {
1225
+ background: var(--cf-surface);
1226
+ }
1137
1227
  .widget_typingIndicator {
1138
1228
  display: flex;
1139
1229
  gap: 4px;