@product7/feedback-sdk 1.3.0 → 1.3.2

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.
@@ -365,6 +365,39 @@ export const MESSENGER_STYLES = `
365
365
  opacity: 0.6;
366
366
  }
367
367
 
368
+ /* Continue conversation variant */
369
+ .messenger-home-continue-btn {
370
+ flex-direction: column;
371
+ align-items: flex-start;
372
+ gap: 2px;
373
+ position: relative;
374
+ }
375
+
376
+ .messenger-home-continue-btn > i {
377
+ position: absolute;
378
+ right: 20px;
379
+ top: 50%;
380
+ transform: translateY(-50%);
381
+ }
382
+
383
+ .messenger-home-continue-info {
384
+ display: flex;
385
+ flex-direction: column;
386
+ gap: 2px;
387
+ text-align: left;
388
+ }
389
+
390
+ .messenger-home-continue-label {
391
+ font-size: 14px;
392
+ font-weight: 600;
393
+ }
394
+
395
+ .messenger-home-continue-preview {
396
+ font-size: 12px;
397
+ opacity: 0.6;
398
+ font-weight: 400;
399
+ }
400
+
368
401
  /* Featured Card */
369
402
  .messenger-home-featured {
370
403
  background: #2c2c2e;
@@ -493,7 +526,7 @@ export const MESSENGER_STYLES = `
493
526
  .messenger-conversations-body {
494
527
  flex: 1;
495
528
  overflow-y: auto;
496
- padding: 12px;
529
+ padding: 4px 12px 12px 12px;
497
530
  }
498
531
 
499
532
  .messenger-conversations-empty {
@@ -528,7 +561,7 @@ export const MESSENGER_STYLES = `
528
561
  display: flex;
529
562
  align-items: flex-start;
530
563
  gap: 12px;
531
- padding: 16px;
564
+ padding: 10px 16px;
532
565
  border-radius: 12px;
533
566
  cursor: pointer;
534
567
  transition: background 0.2s ease;
@@ -660,6 +693,11 @@ export const MESSENGER_STYLES = `
660
693
  color: white;
661
694
  }
662
695
 
696
+ .messenger-chat-view {
697
+ position: relative;
698
+ overflow: visible;
699
+ }
700
+
663
701
  .messenger-chat-messages {
664
702
  flex: 1;
665
703
  overflow-y: auto;
@@ -734,7 +772,7 @@ export const MESSENGER_STYLES = `
734
772
  }
735
773
 
736
774
  .messenger-message-own .messenger-message-bubble {
737
- background: #007aff;
775
+ background: rgb(29, 78, 216);
738
776
  color: white;
739
777
  border-bottom-right-radius: 4px;
740
778
  }
@@ -762,10 +800,25 @@ export const MESSENGER_STYLES = `
762
800
  margin-top: auto;
763
801
  }
764
802
 
803
+ /* Conversation Closed Banner */
804
+ .messenger-closed-banner {
805
+ display: flex;
806
+ align-items: center;
807
+ justify-content: center;
808
+ gap: 8px;
809
+ padding: 12px 16px;
810
+ margin: 16px;
811
+ background: rgba(52, 199, 89, 0.12);
812
+ color: #34c759;
813
+ border-radius: 12px;
814
+ font-size: 13px;
815
+ font-weight: 500;
816
+ }
817
+
765
818
  /* Compose Area */
766
819
  .messenger-chat-compose {
767
820
  display: flex;
768
- align-items: flex-end;
821
+ align-items: center;
769
822
  gap: 8px;
770
823
  padding: 12px 16px;
771
824
  border-top: 1px solid rgba(255, 255, 255, 0.1);
@@ -775,7 +828,7 @@ export const MESSENGER_STYLES = `
775
828
  .messenger-compose-input-wrapper {
776
829
  flex: 1;
777
830
  background: #2c2c2e;
778
- border-radius: 20px;
831
+ border-radius: 10px;
779
832
  padding: 8px 16px;
780
833
  }
781
834
 
@@ -822,6 +875,167 @@ export const MESSENGER_STYLES = `
822
875
  cursor: not-allowed;
823
876
  }
824
877
 
878
+ /* Attach Button */
879
+ .messenger-compose-attach {
880
+ width: 40px;
881
+ height: 40px;
882
+ background: transparent;
883
+ border: none;
884
+ border-radius: 50%;
885
+ color: rgba(255, 255, 255, 0.5);
886
+ cursor: pointer;
887
+ display: flex;
888
+ align-items: center;
889
+ justify-content: center;
890
+ transition: all 0.2s ease;
891
+ flex-shrink: 0;
892
+ }
893
+
894
+ .messenger-compose-attach:hover:not(:disabled) {
895
+ color: rgba(255, 255, 255, 0.85);
896
+ background: rgba(255, 255, 255, 0.08);
897
+ }
898
+
899
+ .messenger-compose-attach:disabled {
900
+ opacity: 0.3;
901
+ cursor: not-allowed;
902
+ }
903
+
904
+ /* Attachment Preview Strip */
905
+ .messenger-compose-attachments-preview {
906
+ display: none;
907
+ flex-wrap: wrap;
908
+ gap: 8px;
909
+ padding: 8px 16px;
910
+ border-top: 1px solid rgba(255, 255, 255, 0.1);
911
+ background: #1c1c1e;
912
+ }
913
+
914
+ .messenger-attachment-preview {
915
+ position: relative;
916
+ width: 56px;
917
+ height: 56px;
918
+ border-radius: 8px;
919
+ overflow: hidden;
920
+ border: 1px solid rgba(255, 255, 255, 0.15);
921
+ }
922
+
923
+ .messenger-attachment-thumb {
924
+ width: 100%;
925
+ height: 100%;
926
+ object-fit: cover;
927
+ display: block;
928
+ }
929
+
930
+ .messenger-attachment-file-icon {
931
+ display: flex;
932
+ align-items: center;
933
+ justify-content: center;
934
+ background: #2c2c2e;
935
+ color: rgba(255, 255, 255, 0.5);
936
+ }
937
+
938
+ .messenger-attachment-remove {
939
+ position: absolute;
940
+ top: 2px;
941
+ right: 2px;
942
+ width: 18px;
943
+ height: 18px;
944
+ background: rgba(0, 0, 0, 0.7);
945
+ border: none;
946
+ border-radius: 50%;
947
+ color: white;
948
+ font-size: 12px;
949
+ line-height: 1;
950
+ cursor: pointer;
951
+ display: flex;
952
+ align-items: center;
953
+ justify-content: center;
954
+ padding: 0;
955
+ transition: background 0.15s ease;
956
+ }
957
+
958
+ .messenger-attachment-remove:hover {
959
+ background: rgba(255, 59, 48, 0.85);
960
+ }
961
+
962
+ /* Message Attachments (inline images & file links) */
963
+ .messenger-message-image {
964
+ max-width: 220px;
965
+ max-height: 200px;
966
+ width: auto;
967
+ height: auto;
968
+ border-radius: 8px;
969
+ margin-top: 4px;
970
+ cursor: pointer;
971
+ object-fit: contain;
972
+ display: block;
973
+ }
974
+
975
+ .messenger-message-file {
976
+ display: inline-flex;
977
+ align-items: center;
978
+ gap: 6px;
979
+ margin-top: 4px;
980
+ padding: 8px 12px;
981
+ border-radius: 8px;
982
+ background: #2c2c2e;
983
+ color: #60a5fa;
984
+ text-decoration: none;
985
+ font-size: 13px;
986
+ transition: background 0.15s ease;
987
+ max-width: 100%;
988
+ word-break: break-all;
989
+ cursor: pointer;
990
+ }
991
+
992
+ .messenger-message-file:hover {
993
+ background: #3c3c3e;
994
+ }
995
+
996
+ .messenger-file-download-icon {
997
+ margin-left: auto;
998
+ opacity: 0.5;
999
+ flex-shrink: 0;
1000
+ }
1001
+
1002
+ .messenger-message-file:hover .messenger-file-download-icon {
1003
+ opacity: 1;
1004
+ }
1005
+
1006
+ /* Light theme overrides for attachments */
1007
+ .theme-light .messenger-compose-attach {
1008
+ color: #9ca3af;
1009
+ }
1010
+
1011
+ .theme-light .messenger-compose-attach:hover:not(:disabled) {
1012
+ color: #374151;
1013
+ background: #f3f4f6;
1014
+ }
1015
+
1016
+ .theme-light .messenger-compose-attachments-preview {
1017
+ background: #ffffff;
1018
+ border-top-color: #e5e7eb;
1019
+ }
1020
+
1021
+ .theme-light .messenger-attachment-preview {
1022
+ border-color: #e5e7eb;
1023
+ }
1024
+
1025
+ .theme-light .messenger-attachment-file-icon {
1026
+ background: #f3f4f6;
1027
+ color: #6b7280;
1028
+ }
1029
+
1030
+ .theme-light .messenger-message-file {
1031
+ background: #f3f4f6;
1032
+ color: #2563eb;
1033
+ }
1034
+
1035
+ .theme-light .messenger-message-file:hover {
1036
+ background: #e5e7eb;
1037
+ }
1038
+
825
1039
  /* ========================================
826
1040
  Help View
827
1041
  ======================================== */
@@ -1136,7 +1350,7 @@ export const MESSENGER_STYLES = `
1136
1350
 
1137
1351
  .messenger-nav {
1138
1352
  display: flex;
1139
- padding: 8px 12px;
1353
+ padding: 4px 8px;
1140
1354
  gap: 4px;
1141
1355
  }
1142
1356
 
@@ -1189,8 +1403,8 @@ export const MESSENGER_STYLES = `
1189
1403
  }
1190
1404
 
1191
1405
  .messenger-nav-label {
1192
- font-size: 14px;
1193
- font-weight: 400;
1406
+ font-size: 11px;
1407
+ font-weight: 500;
1194
1408
  color: rgba(255, 255, 255, 0.5);
1195
1409
  transition: color 0.2s ease;
1196
1410
  }
@@ -1449,7 +1663,7 @@ export const MESSENGER_STYLES = `
1449
1663
  }
1450
1664
 
1451
1665
  .theme-light .messenger-message-own .messenger-message-bubble {
1452
- background: #007aff;
1666
+ background: rgb(29, 78, 216);
1453
1667
  color: #ffffff;
1454
1668
  }
1455
1669
 
@@ -1457,6 +1671,11 @@ export const MESSENGER_STYLES = `
1457
1671
  color: #86868b;
1458
1672
  }
1459
1673
 
1674
+ .theme-light .messenger-closed-banner {
1675
+ background: rgba(52, 199, 89, 0.1);
1676
+ color: #22883a;
1677
+ }
1678
+
1460
1679
  .theme-light .messenger-chat-compose {
1461
1680
  background: #ffffff;
1462
1681
  border-top-color: #e5e5e7;
@@ -1723,6 +1942,191 @@ export const MESSENGER_STYLES = `
1723
1942
  }
1724
1943
  }
1725
1944
 
1945
+ /* ========================================
1946
+ Pre-Chat Form View (Transparent Overlay)
1947
+ ======================================== */
1948
+
1949
+ .messenger-prechat-view {
1950
+ background: transparent;
1951
+ position: relative;
1952
+ }
1953
+
1954
+ .messenger-prechat-overlay {
1955
+ position: absolute;
1956
+ top: 0;
1957
+ left: 0;
1958
+ right: 0;
1959
+ bottom: 0;
1960
+ background: rgba(0, 0, 0, 0.5);
1961
+ backdrop-filter: blur(2px);
1962
+ display: flex;
1963
+ align-items: flex-end;
1964
+ padding: 16px;
1965
+ animation: messenger-fade-in 0.2s ease;
1966
+ }
1967
+
1968
+ .messenger-prechat-card {
1969
+ background: #1c1c1e;
1970
+ border-radius: 16px;
1971
+ padding: 20px;
1972
+ width: 100%;
1973
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
1974
+ animation: messenger-slide-up 0.25s ease;
1975
+ }
1976
+
1977
+ .messenger-prechat-card h4 {
1978
+ margin: 0 0 14px;
1979
+ font-size: 15px;
1980
+ font-weight: 600;
1981
+ color: white;
1982
+ text-align: center;
1983
+ }
1984
+
1985
+ .messenger-prechat-form {
1986
+ display: flex;
1987
+ flex-direction: column;
1988
+ gap: 10px;
1989
+ }
1990
+
1991
+ .messenger-prechat-fields {
1992
+ display: flex;
1993
+ flex-direction: column;
1994
+ gap: 8px;
1995
+ }
1996
+
1997
+ .messenger-prechat-input {
1998
+ width: 100%;
1999
+ padding: 11px 14px;
2000
+ background: #2c2c2e;
2001
+ border: 1px solid rgba(255, 255, 255, 0.1);
2002
+ border-radius: 10px;
2003
+ color: white;
2004
+ font-size: 14px;
2005
+ font-family: inherit;
2006
+ outline: none;
2007
+ transition: border-color 0.2s ease;
2008
+ }
2009
+
2010
+ .messenger-prechat-input:focus {
2011
+ border-color: #007aff;
2012
+ }
2013
+
2014
+ .messenger-prechat-input::placeholder {
2015
+ color: rgba(255, 255, 255, 0.4);
2016
+ }
2017
+
2018
+ .messenger-prechat-error {
2019
+ font-size: 12px;
2020
+ color: #ef4444;
2021
+ display: none;
2022
+ text-align: center;
2023
+ }
2024
+
2025
+ .messenger-prechat-actions {
2026
+ display: flex;
2027
+ gap: 10px;
2028
+ margin-top: 4px;
2029
+ }
2030
+
2031
+ .messenger-prechat-skip {
2032
+ flex: 1;
2033
+ padding: 11px 14px;
2034
+ background: transparent;
2035
+ border: 1px solid rgba(255, 255, 255, 0.2);
2036
+ border-radius: 20px;
2037
+ color: rgba(255, 255, 255, 0.7);
2038
+ font-size: 14px;
2039
+ font-weight: 500;
2040
+ cursor: pointer;
2041
+ transition: all 0.2s ease;
2042
+ }
2043
+
2044
+ .messenger-prechat-skip:hover {
2045
+ background: rgba(255, 255, 255, 0.05);
2046
+ border-color: rgba(255, 255, 255, 0.3);
2047
+ }
2048
+
2049
+ .messenger-prechat-submit {
2050
+ flex: 1;
2051
+ display: flex;
2052
+ align-items: center;
2053
+ justify-content: center;
2054
+ gap: 6px;
2055
+ padding: 11px 14px;
2056
+ background: #007aff;
2057
+ border: none;
2058
+ border-radius: 20px;
2059
+ color: white;
2060
+ font-size: 14px;
2061
+ font-weight: 600;
2062
+ cursor: pointer;
2063
+ transition: all 0.2s ease;
2064
+ }
2065
+
2066
+ .messenger-prechat-submit:hover:not(:disabled) {
2067
+ background: #0066d6;
2068
+ }
2069
+
2070
+ .messenger-prechat-submit:disabled {
2071
+ background: #3c3c3e;
2072
+ color: rgba(255, 255, 255, 0.4);
2073
+ cursor: not-allowed;
2074
+ }
2075
+
2076
+ .messenger-prechat-submit-loading {
2077
+ display: inline-flex;
2078
+ align-items: center;
2079
+ animation: messenger-spin 1s linear infinite;
2080
+ }
2081
+
2082
+ @keyframes messenger-spin {
2083
+ from { transform: rotate(0deg); }
2084
+ to { transform: rotate(360deg); }
2085
+ }
2086
+
2087
+ /* Light Theme - Pre-Chat Form */
2088
+ .theme-light .messenger-prechat-overlay {
2089
+ background: rgba(255, 255, 255, 0.6);
2090
+ }
2091
+
2092
+ .theme-light .messenger-prechat-card {
2093
+ background: #ffffff;
2094
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
2095
+ }
2096
+
2097
+ .theme-light .messenger-prechat-card h4 {
2098
+ color: #1d1d1f;
2099
+ }
2100
+
2101
+ .theme-light .messenger-prechat-input {
2102
+ background: #f5f5f7;
2103
+ border-color: #e5e5e7;
2104
+ color: #1d1d1f;
2105
+ }
2106
+
2107
+ .theme-light .messenger-prechat-input:focus {
2108
+ border-color: #007aff;
2109
+ background: #ffffff;
2110
+ }
2111
+
2112
+ .theme-light .messenger-prechat-input::placeholder {
2113
+ color: #86868b;
2114
+ }
2115
+
2116
+ .theme-light .messenger-prechat-skip {
2117
+ border-color: #e5e5e7;
2118
+ color: #6e6e73;
2119
+ }
2120
+
2121
+ .theme-light .messenger-prechat-skip:hover {
2122
+ background: #f5f5f7;
2123
+ }
2124
+
2125
+ .theme-light .messenger-prechat-submit:disabled {
2126
+ background: #e5e5e7;
2127
+ color: #c7c7cc;
2128
+ }
2129
+
1726
2130
  /* ========================================
1727
2131
  Animations
1728
2132
  ======================================== */
@@ -1754,4 +2158,171 @@ export const MESSENGER_STYLES = `
1754
2158
  transition: none;
1755
2159
  }
1756
2160
  }
2161
+
2162
+ /* ========================================
2163
+ Email Collection Overlay (Bottom Sheet)
2164
+ ======================================== */
2165
+
2166
+ .messenger-email-overlay {
2167
+ position: absolute;
2168
+ bottom: -56px;
2169
+ left: 0;
2170
+ right: 0;
2171
+ top: 0;
2172
+ display: flex;
2173
+ align-items: flex-end;
2174
+ z-index: 20;
2175
+ background: rgba(0, 0, 0, 0.08);
2176
+ pointer-events: auto;
2177
+ }
2178
+
2179
+ .messenger-email-card {
2180
+ width: 100%;
2181
+ background: #ffffff;
2182
+ border-radius: 0;
2183
+ padding: 16px 16px 72px;
2184
+ box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
2185
+ animation: messenger-slide-up 0.25s ease;
2186
+ }
2187
+
2188
+ .messenger-email-card h4 {
2189
+ margin: 0 0 2px;
2190
+ font-size: 13px;
2191
+ font-weight: 600;
2192
+ color: #1d1d1f;
2193
+ text-align: center;
2194
+ }
2195
+
2196
+ .messenger-email-card p {
2197
+ margin: 0 0 10px;
2198
+ font-size: 11px;
2199
+ color: #6b7280;
2200
+ text-align: center;
2201
+ }
2202
+
2203
+ .messenger-email-name,
2204
+ .messenger-email-input {
2205
+ width: 100%;
2206
+ padding: 8px 10px;
2207
+ background: #f3f4f6;
2208
+ border: 1px solid transparent;
2209
+ border-radius: 8px;
2210
+ color: #1d1d1f;
2211
+ font-size: 12px;
2212
+ font-family: inherit;
2213
+ outline: none;
2214
+ margin-bottom: 6px;
2215
+ transition: border-color 0.2s ease, box-shadow 0.2s ease;
2216
+ }
2217
+
2218
+ .messenger-email-name:focus,
2219
+ .messenger-email-input:focus {
2220
+ border-color: #007aff;
2221
+ box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.12);
2222
+ background: #ffffff;
2223
+ }
2224
+
2225
+ .messenger-email-name::placeholder,
2226
+ .messenger-email-input::placeholder {
2227
+ color: #9ca3af;
2228
+ }
2229
+
2230
+ .messenger-email-actions {
2231
+ display: flex;
2232
+ gap: 8px;
2233
+ margin-top: 4px;
2234
+ }
2235
+
2236
+ .messenger-email-submit {
2237
+ flex: 1.2;
2238
+ padding: 7px 12px;
2239
+ background: #007aff;
2240
+ border: none;
2241
+ border-radius: 8px;
2242
+ color: white;
2243
+ font-size: 12px;
2244
+ font-weight: 600;
2245
+ cursor: pointer;
2246
+ transition: all 0.2s ease;
2247
+ }
2248
+
2249
+ .messenger-email-submit:hover:not(:disabled) {
2250
+ background: #0066d6;
2251
+ }
2252
+
2253
+ .messenger-email-submit:disabled {
2254
+ background: #d1d5db;
2255
+ color: #9ca3af;
2256
+ cursor: not-allowed;
2257
+ }
2258
+
2259
+ .messenger-email-skip {
2260
+ flex: 0.8;
2261
+ padding: 7px 12px;
2262
+ background: #ffffff;
2263
+ border: 1px solid #e5e5e7;
2264
+ border-radius: 8px;
2265
+ color: #4b5563;
2266
+ font-size: 12px;
2267
+ font-weight: 500;
2268
+ cursor: pointer;
2269
+ transition: all 0.2s ease;
2270
+ }
2271
+
2272
+ .messenger-email-skip:hover {
2273
+ background: #f9fafb;
2274
+ border-color: #d1d5db;
2275
+ }
2276
+
2277
+ /* Dark Theme - Email Overlay */
2278
+ .theme-dark .messenger-email-overlay {
2279
+ background: rgba(0, 0, 0, 0.3);
2280
+ }
2281
+
2282
+ .theme-dark .messenger-email-card {
2283
+ background: #1c1c1e;
2284
+ }
2285
+
2286
+ .theme-dark .messenger-email-card h4 {
2287
+ color: white;
2288
+ }
2289
+
2290
+ .theme-dark .messenger-email-card p {
2291
+ color: rgba(255, 255, 255, 0.6);
2292
+ }
2293
+
2294
+ .theme-dark .messenger-email-name,
2295
+ .theme-dark .messenger-email-input {
2296
+ background: #2c2c2e;
2297
+ border-color: transparent;
2298
+ color: white;
2299
+ }
2300
+
2301
+ .theme-dark .messenger-email-name:focus,
2302
+ .theme-dark .messenger-email-input:focus {
2303
+ border-color: #007aff;
2304
+ box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.25);
2305
+ background: #1c1c1e;
2306
+ }
2307
+
2308
+ .theme-dark .messenger-email-name::placeholder,
2309
+ .theme-dark .messenger-email-input::placeholder {
2310
+ color: rgba(255, 255, 255, 0.4);
2311
+ }
2312
+
2313
+ .theme-dark .messenger-email-submit:disabled {
2314
+ background: #3c3c3e;
2315
+ color: rgba(255, 255, 255, 0.4);
2316
+ }
2317
+
2318
+ .theme-dark .messenger-email-skip {
2319
+ background: transparent;
2320
+ border-color: rgba(255, 255, 255, 0.15);
2321
+ color: rgba(255, 255, 255, 0.8);
2322
+ }
2323
+
2324
+ .theme-dark .messenger-email-skip:hover {
2325
+ background: rgba(255, 255, 255, 0.05);
2326
+ border-color: rgba(255, 255, 255, 0.25);
2327
+ }
1757
2328
  `;