@timpel/forumkit-sdk-web 0.1.0 → 0.2.1
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/{chunk-YICVG5QM.js → chunk-2UVRYLED.js} +71 -1
- package/dist/chunk-2UVRYLED.js.map +1 -0
- package/dist/{chunk-FASHQ6GM.js → chunk-EJQY26NT.js} +946 -414
- package/dist/chunk-EJQY26NT.js.map +1 -0
- package/dist/index.css +517 -104
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -2
- package/dist/{rich-text-editor-T54NZOYU.js → rich-text-editor-6ICCYZSK.js} +2 -2
- package/dist/wrappers/react.css +517 -104
- package/dist/wrappers/react.css.map +1 -1
- package/dist/wrappers/react.d.ts +1 -1
- package/dist/wrappers/react.js +6 -4
- package/dist/wrappers/react.js.map +1 -1
- package/dist/wrappers/vue.css +517 -104
- package/dist/wrappers/vue.css.map +1 -1
- package/dist/wrappers/vue.d.ts +18 -0
- package/dist/wrappers/vue.js +10 -2
- package/dist/wrappers/vue.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-FASHQ6GM.js.map +0 -1
- package/dist/chunk-YICVG5QM.js.map +0 -1
- /package/dist/{rich-text-editor-T54NZOYU.js.map → rich-text-editor-6ICCYZSK.js.map} +0 -0
package/dist/wrappers/react.d.ts
CHANGED
|
@@ -16,6 +16,6 @@ type ForumKitProps = ForumKitConfig & {
|
|
|
16
16
|
* theme={{ primaryColor: '#6200EE' }}
|
|
17
17
|
* />
|
|
18
18
|
*/
|
|
19
|
-
declare function ForumKit({ forumId, token, theme, apiUrl, className }: ForumKitProps): React.JSX.Element;
|
|
19
|
+
declare function ForumKit({ forumId, token, theme, apiUrl, platform, onLogout, className }: ForumKitProps): React.JSX.Element;
|
|
20
20
|
|
|
21
21
|
export { ForumKit };
|
package/dist/wrappers/react.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-EJQY26NT.js";
|
|
2
|
+
import "../chunk-2UVRYLED.js";
|
|
3
3
|
|
|
4
4
|
// src/wrappers/react.tsx
|
|
5
5
|
import { useEffect, useRef } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
function ForumKit({ forumId, token, theme, apiUrl, className }) {
|
|
7
|
+
function ForumKit({ forumId, token, theme, apiUrl, platform, onLogout, className }) {
|
|
8
8
|
const ref = useRef(null);
|
|
9
9
|
useEffect(() => {
|
|
10
10
|
const el = ref.current;
|
|
@@ -13,7 +13,9 @@ function ForumKit({ forumId, token, theme, apiUrl, className }) {
|
|
|
13
13
|
el.setAttribute("token", token);
|
|
14
14
|
if (theme) el.setAttribute("theme", JSON.stringify(theme));
|
|
15
15
|
if (apiUrl) el.setAttribute("api-url", apiUrl);
|
|
16
|
-
|
|
16
|
+
if (platform) el.setAttribute("platform", platform);
|
|
17
|
+
el.onLogout = onLogout;
|
|
18
|
+
}, [forumId, token, theme, apiUrl, platform, onLogout]);
|
|
17
19
|
return (
|
|
18
20
|
// @ts-expect-error — custom element not in JSX intrinsic elements
|
|
19
21
|
/* @__PURE__ */ jsx("forum-kit", { ref, class: className })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/wrappers/react.tsx"],"sourcesContent":["import React, { useEffect, useRef } from 'react';\nimport type { ForumKitConfig } from '@forumkit/types';\nimport '../components/forum-kit';\n\ntype ForumKitProps = ForumKitConfig & {\n className?: string;\n};\n\n/**\n * React wrapper for the <forum-kit> Web Component.\n *\n * Usage:\n * import { ForumKit } from '@forumkit/sdk-web/react';\n *\n * <ForumKit\n * forumId=\"my-forum\"\n * token={userToken}\n * theme={{ primaryColor: '#6200EE' }}\n * />\n */\nexport function ForumKit({ forumId, token, theme, apiUrl, className }: ForumKitProps): React.JSX.Element {\n const ref = useRef<
|
|
1
|
+
{"version":3,"sources":["../../src/wrappers/react.tsx"],"sourcesContent":["import React, { useEffect, useRef } from 'react';\nimport type { ForumKitConfig } from '@forumkit/types';\nimport type { ForumKitElement } from '../components/forum-kit';\nimport '../components/forum-kit';\n\ntype ForumKitProps = ForumKitConfig & {\n className?: string;\n};\n\n/**\n * React wrapper for the <forum-kit> Web Component.\n *\n * Usage:\n * import { ForumKit } from '@forumkit/sdk-web/react';\n *\n * <ForumKit\n * forumId=\"my-forum\"\n * token={userToken}\n * theme={{ primaryColor: '#6200EE' }}\n * />\n */\nexport function ForumKit({ forumId, token, theme, apiUrl, platform, onLogout, className }: ForumKitProps): React.JSX.Element {\n const ref = useRef<ForumKitElement>(null);\n\n useEffect(() => {\n const el = ref.current;\n if (!el) return;\n\n el.setAttribute('forum-id', forumId);\n el.setAttribute('token', token);\n if (theme) el.setAttribute('theme', JSON.stringify(theme));\n if (apiUrl) el.setAttribute('api-url', apiUrl);\n if (platform) el.setAttribute('platform', platform);\n el.onLogout = onLogout;\n }, [forumId, token, theme, apiUrl, platform, onLogout]);\n\n return (\n // @ts-expect-error — custom element not in JSX intrinsic elements\n <forum-kit ref={ref} class={className} />\n );\n}\n"],"mappings":";;;;AAAA,SAAgB,WAAW,cAAc;AAsCrC;AAjBG,SAAS,SAAS,EAAE,SAAS,OAAO,OAAO,QAAQ,UAAU,UAAU,UAAU,GAAqC;AAC3H,QAAM,MAAM,OAAwB,IAAI;AAExC,YAAU,MAAM;AACd,UAAM,KAAK,IAAI;AACf,QAAI,CAAC,GAAI;AAET,OAAG,aAAa,YAAY,OAAO;AACnC,OAAG,aAAa,SAAS,KAAK;AAC9B,QAAI,MAAO,IAAG,aAAa,SAAS,KAAK,UAAU,KAAK,CAAC;AACzD,QAAI,OAAQ,IAAG,aAAa,WAAW,MAAM;AAC7C,QAAI,SAAU,IAAG,aAAa,YAAY,QAAQ;AAClD,OAAG,WAAW;AAAA,EAChB,GAAG,CAAC,SAAS,OAAO,OAAO,QAAQ,UAAU,QAAQ,CAAC;AAEtD;AAAA;AAAA,IAEE,oBAAC,eAAU,KAAU,OAAO,WAAW;AAAA;AAE3C;","names":[]}
|
package/dist/wrappers/vue.css
CHANGED
|
@@ -88,6 +88,62 @@
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
/* src/views/components/layout/search-results-dropdown.css */
|
|
91
|
+
.fk-search-dropdown-section {
|
|
92
|
+
margin-bottom: 4px;
|
|
93
|
+
}
|
|
94
|
+
.fk-search-dropdown-section-title {
|
|
95
|
+
padding: 6px 10px 2px;
|
|
96
|
+
font-size: 11px;
|
|
97
|
+
font-weight: 700;
|
|
98
|
+
letter-spacing: 0.5px;
|
|
99
|
+
text-transform: uppercase;
|
|
100
|
+
color: var(--muted);
|
|
101
|
+
}
|
|
102
|
+
.fk-search-dropdown-history-row {
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
width: 100%;
|
|
106
|
+
}
|
|
107
|
+
.fk-search-dropdown-history-main {
|
|
108
|
+
flex: 1;
|
|
109
|
+
min-width: 0;
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
gap: 8px;
|
|
113
|
+
padding: 8px 10px;
|
|
114
|
+
border-radius: 10px;
|
|
115
|
+
border: none;
|
|
116
|
+
background: transparent;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
text-align: left;
|
|
119
|
+
font-family: inherit;
|
|
120
|
+
color: var(--text-2);
|
|
121
|
+
}
|
|
122
|
+
.fk-search-dropdown-history-main:hover {
|
|
123
|
+
background: var(--hover);
|
|
124
|
+
}
|
|
125
|
+
.fk-search-dropdown-history-text {
|
|
126
|
+
flex: 1;
|
|
127
|
+
min-width: 0;
|
|
128
|
+
font-size: 13.5px;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
text-overflow: ellipsis;
|
|
131
|
+
white-space: nowrap;
|
|
132
|
+
}
|
|
133
|
+
.fk-search-dropdown-history-clear {
|
|
134
|
+
flex-shrink: 0;
|
|
135
|
+
border: none;
|
|
136
|
+
background: transparent;
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
padding: 6px 10px;
|
|
139
|
+
font-size: 12px;
|
|
140
|
+
color: var(--muted);
|
|
141
|
+
border-radius: 6px;
|
|
142
|
+
font-family: inherit;
|
|
143
|
+
}
|
|
144
|
+
.fk-search-dropdown-history-clear:hover {
|
|
145
|
+
background: var(--hover);
|
|
146
|
+
}
|
|
91
147
|
.fk-search-dropdown-backdrop {
|
|
92
148
|
position: fixed;
|
|
93
149
|
inset: 0;
|
|
@@ -330,6 +386,21 @@
|
|
|
330
386
|
.fk-search-results-tabs .fk-profile-tab {
|
|
331
387
|
font-weight: 400;
|
|
332
388
|
}
|
|
389
|
+
.fk-search-did-you-mean {
|
|
390
|
+
font-size: 13px;
|
|
391
|
+
color: var(--text-2);
|
|
392
|
+
padding: 8px 0 12px;
|
|
393
|
+
}
|
|
394
|
+
.fk-search-did-you-mean button {
|
|
395
|
+
background: none;
|
|
396
|
+
border: none;
|
|
397
|
+
padding: 0;
|
|
398
|
+
cursor: pointer;
|
|
399
|
+
color: var(--accent);
|
|
400
|
+
font-weight: 500;
|
|
401
|
+
font-size: 13px;
|
|
402
|
+
text-decoration: underline;
|
|
403
|
+
}
|
|
333
404
|
|
|
334
405
|
/* src/views/components/shared/carousel.css */
|
|
335
406
|
.fk-carousel {
|
|
@@ -762,6 +833,108 @@
|
|
|
762
833
|
gap: 8px;
|
|
763
834
|
}
|
|
764
835
|
|
|
836
|
+
/* src/views/components/composer/rich-text-editor.css */
|
|
837
|
+
.fk-rte {
|
|
838
|
+
display: flex;
|
|
839
|
+
flex-direction: column;
|
|
840
|
+
}
|
|
841
|
+
.fk-rte-loading {
|
|
842
|
+
padding: 16px 18px;
|
|
843
|
+
color: var(--muted);
|
|
844
|
+
font-size: 14px;
|
|
845
|
+
}
|
|
846
|
+
.fk-rte-content {
|
|
847
|
+
min-height: 180px;
|
|
848
|
+
resize: vertical;
|
|
849
|
+
overflow-y: auto;
|
|
850
|
+
}
|
|
851
|
+
.fk-rte-content .ProseMirror {
|
|
852
|
+
padding: 16px 18px;
|
|
853
|
+
color: var(--text);
|
|
854
|
+
font-size: 15px;
|
|
855
|
+
font-weight: 100;
|
|
856
|
+
line-height: 1.6;
|
|
857
|
+
outline: none;
|
|
858
|
+
min-height: 180px;
|
|
859
|
+
height: 100%;
|
|
860
|
+
border-radius: 0 0 22px 22px;
|
|
861
|
+
}
|
|
862
|
+
.fk-rte-content .ProseMirror p {
|
|
863
|
+
margin: 0 0 0.7em;
|
|
864
|
+
}
|
|
865
|
+
.fk-rte-content .ProseMirror p.is-editor-empty:first-child::before {
|
|
866
|
+
content: attr(data-placeholder);
|
|
867
|
+
color: var(--faint);
|
|
868
|
+
float: left;
|
|
869
|
+
height: 0;
|
|
870
|
+
pointer-events: none;
|
|
871
|
+
}
|
|
872
|
+
.fk-rte-content .ProseMirror h2 {
|
|
873
|
+
font-size: 1.3em;
|
|
874
|
+
font-weight: 700;
|
|
875
|
+
margin: 0.6em 0 0.4em;
|
|
876
|
+
}
|
|
877
|
+
.fk-rte-content .ProseMirror ul,
|
|
878
|
+
.fk-rte-content .ProseMirror ol {
|
|
879
|
+
padding-left: 1.4em;
|
|
880
|
+
margin: 0 0 0.7em;
|
|
881
|
+
}
|
|
882
|
+
.fk-rte-content .ProseMirror blockquote {
|
|
883
|
+
border-left: 3px solid var(--border-strong);
|
|
884
|
+
margin: 0 0 0.7em;
|
|
885
|
+
padding: 2px 0 2px 14px;
|
|
886
|
+
color: var(--text-2);
|
|
887
|
+
}
|
|
888
|
+
.fk-rte-content .ProseMirror code {
|
|
889
|
+
background: var(--surface-2);
|
|
890
|
+
border-radius: 5px;
|
|
891
|
+
padding: 0.1em 0.35em;
|
|
892
|
+
font-size: 0.9em;
|
|
893
|
+
font-family:
|
|
894
|
+
ui-monospace,
|
|
895
|
+
SFMono-Regular,
|
|
896
|
+
Menlo,
|
|
897
|
+
monospace;
|
|
898
|
+
}
|
|
899
|
+
.fk-rte-content .ProseMirror pre {
|
|
900
|
+
background: var(--surface-2);
|
|
901
|
+
border-radius: 12px;
|
|
902
|
+
padding: 12px 14px;
|
|
903
|
+
overflow-x: auto;
|
|
904
|
+
margin: 0 0 0.7em;
|
|
905
|
+
}
|
|
906
|
+
.fk-rte-content .ProseMirror pre code {
|
|
907
|
+
background: none;
|
|
908
|
+
padding: 0;
|
|
909
|
+
font-size: 0.85em;
|
|
910
|
+
}
|
|
911
|
+
.fk-rte-content .ProseMirror img,
|
|
912
|
+
.fk-rte-content .ProseMirror video {
|
|
913
|
+
max-width: 100%;
|
|
914
|
+
border-radius: 12px;
|
|
915
|
+
vertical-align: middle;
|
|
916
|
+
}
|
|
917
|
+
.fk-rte-content .ProseMirror table {
|
|
918
|
+
border-collapse: collapse;
|
|
919
|
+
width: 100%;
|
|
920
|
+
margin: 0 0 0.7em;
|
|
921
|
+
}
|
|
922
|
+
.fk-rte-content .ProseMirror th,
|
|
923
|
+
.fk-rte-content .ProseMirror td {
|
|
924
|
+
border: 1px solid var(--border-strong);
|
|
925
|
+
padding: 6px 10px;
|
|
926
|
+
text-align: left;
|
|
927
|
+
}
|
|
928
|
+
.fk-rte-content .ProseMirror th {
|
|
929
|
+
background: var(--surface-2);
|
|
930
|
+
font-weight: 700;
|
|
931
|
+
}
|
|
932
|
+
.fk-rte-content .ProseMirror .fk-spoiler-md {
|
|
933
|
+
background: var(--surface-2);
|
|
934
|
+
border-radius: 4px;
|
|
935
|
+
cursor: pointer;
|
|
936
|
+
}
|
|
937
|
+
|
|
765
938
|
/* src/views/components/profile/image-editor-modal.css */
|
|
766
939
|
.fk-image-editor {
|
|
767
940
|
display: flex;
|
|
@@ -1313,108 +1486,6 @@
|
|
|
1313
1486
|
opacity: 0.88;
|
|
1314
1487
|
}
|
|
1315
1488
|
|
|
1316
|
-
/* src/views/components/composer/rich-text-editor.css */
|
|
1317
|
-
.fk-rte {
|
|
1318
|
-
display: flex;
|
|
1319
|
-
flex-direction: column;
|
|
1320
|
-
}
|
|
1321
|
-
.fk-rte-loading {
|
|
1322
|
-
padding: 16px 18px;
|
|
1323
|
-
color: var(--muted);
|
|
1324
|
-
font-size: 14px;
|
|
1325
|
-
}
|
|
1326
|
-
.fk-rte-content {
|
|
1327
|
-
min-height: 180px;
|
|
1328
|
-
resize: vertical;
|
|
1329
|
-
overflow-y: auto;
|
|
1330
|
-
}
|
|
1331
|
-
.fk-rte-content .ProseMirror {
|
|
1332
|
-
padding: 16px 18px;
|
|
1333
|
-
color: var(--text);
|
|
1334
|
-
font-size: 15px;
|
|
1335
|
-
font-weight: 100;
|
|
1336
|
-
line-height: 1.6;
|
|
1337
|
-
outline: none;
|
|
1338
|
-
min-height: 180px;
|
|
1339
|
-
height: 100%;
|
|
1340
|
-
border-radius: 0 0 22px 22px;
|
|
1341
|
-
}
|
|
1342
|
-
.fk-rte-content .ProseMirror p {
|
|
1343
|
-
margin: 0 0 0.7em;
|
|
1344
|
-
}
|
|
1345
|
-
.fk-rte-content .ProseMirror p.is-editor-empty:first-child::before {
|
|
1346
|
-
content: attr(data-placeholder);
|
|
1347
|
-
color: var(--faint);
|
|
1348
|
-
float: left;
|
|
1349
|
-
height: 0;
|
|
1350
|
-
pointer-events: none;
|
|
1351
|
-
}
|
|
1352
|
-
.fk-rte-content .ProseMirror h2 {
|
|
1353
|
-
font-size: 1.3em;
|
|
1354
|
-
font-weight: 700;
|
|
1355
|
-
margin: 0.6em 0 0.4em;
|
|
1356
|
-
}
|
|
1357
|
-
.fk-rte-content .ProseMirror ul,
|
|
1358
|
-
.fk-rte-content .ProseMirror ol {
|
|
1359
|
-
padding-left: 1.4em;
|
|
1360
|
-
margin: 0 0 0.7em;
|
|
1361
|
-
}
|
|
1362
|
-
.fk-rte-content .ProseMirror blockquote {
|
|
1363
|
-
border-left: 3px solid var(--border-strong);
|
|
1364
|
-
margin: 0 0 0.7em;
|
|
1365
|
-
padding: 2px 0 2px 14px;
|
|
1366
|
-
color: var(--text-2);
|
|
1367
|
-
}
|
|
1368
|
-
.fk-rte-content .ProseMirror code {
|
|
1369
|
-
background: var(--surface-2);
|
|
1370
|
-
border-radius: 5px;
|
|
1371
|
-
padding: 0.1em 0.35em;
|
|
1372
|
-
font-size: 0.9em;
|
|
1373
|
-
font-family:
|
|
1374
|
-
ui-monospace,
|
|
1375
|
-
SFMono-Regular,
|
|
1376
|
-
Menlo,
|
|
1377
|
-
monospace;
|
|
1378
|
-
}
|
|
1379
|
-
.fk-rte-content .ProseMirror pre {
|
|
1380
|
-
background: var(--surface-2);
|
|
1381
|
-
border-radius: 12px;
|
|
1382
|
-
padding: 12px 14px;
|
|
1383
|
-
overflow-x: auto;
|
|
1384
|
-
margin: 0 0 0.7em;
|
|
1385
|
-
}
|
|
1386
|
-
.fk-rte-content .ProseMirror pre code {
|
|
1387
|
-
background: none;
|
|
1388
|
-
padding: 0;
|
|
1389
|
-
font-size: 0.85em;
|
|
1390
|
-
}
|
|
1391
|
-
.fk-rte-content .ProseMirror img,
|
|
1392
|
-
.fk-rte-content .ProseMirror video {
|
|
1393
|
-
max-width: 100%;
|
|
1394
|
-
border-radius: 12px;
|
|
1395
|
-
vertical-align: middle;
|
|
1396
|
-
}
|
|
1397
|
-
.fk-rte-content .ProseMirror table {
|
|
1398
|
-
border-collapse: collapse;
|
|
1399
|
-
width: 100%;
|
|
1400
|
-
margin: 0 0 0.7em;
|
|
1401
|
-
}
|
|
1402
|
-
.fk-rte-content .ProseMirror th,
|
|
1403
|
-
.fk-rte-content .ProseMirror td {
|
|
1404
|
-
border: 1px solid var(--border-strong);
|
|
1405
|
-
padding: 6px 10px;
|
|
1406
|
-
text-align: left;
|
|
1407
|
-
}
|
|
1408
|
-
.fk-rte-content .ProseMirror th {
|
|
1409
|
-
background: var(--surface-2);
|
|
1410
|
-
font-weight: 700;
|
|
1411
|
-
}
|
|
1412
|
-
.fk-rte-content .ProseMirror .fk-spoiler-md {
|
|
1413
|
-
background: var(--surface-2);
|
|
1414
|
-
border-radius: 4px;
|
|
1415
|
-
cursor: pointer;
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
1489
|
/* src/views/routes/compose.css */
|
|
1419
1490
|
.fk-compose {
|
|
1420
1491
|
max-width: 850px;
|
|
@@ -2880,6 +2951,45 @@ textarea::placeholder {
|
|
|
2880
2951
|
outline: 2px solid transparent;
|
|
2881
2952
|
outline-offset: 2px;
|
|
2882
2953
|
}
|
|
2954
|
+
@property --fk-ask-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
|
|
2955
|
+
@keyframes fk-ask-spin {
|
|
2956
|
+
to {
|
|
2957
|
+
--fk-ask-angle: 360deg;
|
|
2958
|
+
}
|
|
2959
|
+
}
|
|
2960
|
+
.fk-topnav-search--ask-active {
|
|
2961
|
+
position: relative;
|
|
2962
|
+
overflow: visible;
|
|
2963
|
+
}
|
|
2964
|
+
.fk-topnav-search--ask-active::after {
|
|
2965
|
+
content: "";
|
|
2966
|
+
position: absolute;
|
|
2967
|
+
inset: -1.5px;
|
|
2968
|
+
border-radius: 999px;
|
|
2969
|
+
background:
|
|
2970
|
+
conic-gradient(
|
|
2971
|
+
from var(--fk-ask-angle),
|
|
2972
|
+
transparent 0%,
|
|
2973
|
+
transparent 86%,
|
|
2974
|
+
rgba(255, 255, 255, 0.85) 93%,
|
|
2975
|
+
transparent 100%);
|
|
2976
|
+
animation: fk-ask-spin 1.6s linear infinite;
|
|
2977
|
+
pointer-events: none;
|
|
2978
|
+
z-index: 1;
|
|
2979
|
+
-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
2980
|
+
-webkit-mask-composite: xor;
|
|
2981
|
+
mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
2982
|
+
mask-composite: exclude;
|
|
2983
|
+
padding: 1.5px;
|
|
2984
|
+
}
|
|
2985
|
+
.fk-topnav-search--ask-active .fk-topnav-ask {
|
|
2986
|
+
opacity: 1;
|
|
2987
|
+
color: var(--accent);
|
|
2988
|
+
}
|
|
2989
|
+
:host(:not([data-theme="light"])) .fk-topnav-search--ask-active .fk-topnav-ask,
|
|
2990
|
+
.fk-root:not([data-theme=light]) .fk-topnav-search--ask-active .fk-topnav-ask {
|
|
2991
|
+
color: #ffffff;
|
|
2992
|
+
}
|
|
2883
2993
|
|
|
2884
2994
|
/* src/views/components/layout/sidebar.css */
|
|
2885
2995
|
.fk-sidebar-hamburger {
|
|
@@ -3477,12 +3587,12 @@ textarea::placeholder {
|
|
|
3477
3587
|
}
|
|
3478
3588
|
.fk-composer-tabs {
|
|
3479
3589
|
display: flex;
|
|
3480
|
-
gap:
|
|
3590
|
+
gap: 0;
|
|
3481
3591
|
margin-bottom: 36px;
|
|
3482
3592
|
}
|
|
3483
3593
|
.fk-composer-tab {
|
|
3484
3594
|
position: relative;
|
|
3485
|
-
padding: 6px
|
|
3595
|
+
padding: 6px 22px;
|
|
3486
3596
|
cursor: pointer;
|
|
3487
3597
|
font-size: 13px;
|
|
3488
3598
|
font-weight: 500;
|
|
@@ -3571,6 +3681,15 @@ textarea::placeholder {
|
|
|
3571
3681
|
opacity: 0.6;
|
|
3572
3682
|
cursor: default;
|
|
3573
3683
|
}
|
|
3684
|
+
.fk-composer-suggest-hint {
|
|
3685
|
+
font-size: 12px;
|
|
3686
|
+
color: var(--up);
|
|
3687
|
+
}
|
|
3688
|
+
.fk-composer-link-hint {
|
|
3689
|
+
font-size: 12px;
|
|
3690
|
+
color: var(--up);
|
|
3691
|
+
margin: 0;
|
|
3692
|
+
}
|
|
3574
3693
|
.fk-composer-counter {
|
|
3575
3694
|
font-size: 13px;
|
|
3576
3695
|
color: var(--muted);
|
|
@@ -4165,6 +4284,36 @@ textarea::placeholder {
|
|
|
4165
4284
|
.fk-ai-panel-body p:last-child {
|
|
4166
4285
|
margin-bottom: 0;
|
|
4167
4286
|
}
|
|
4287
|
+
.fk-ai-suggest-block {
|
|
4288
|
+
background: var(--surface-2);
|
|
4289
|
+
border-radius: 20px;
|
|
4290
|
+
padding: 14px 16px;
|
|
4291
|
+
}
|
|
4292
|
+
.fk-ai-suggest-text {
|
|
4293
|
+
margin: 0 0 10px;
|
|
4294
|
+
white-space: pre-wrap;
|
|
4295
|
+
}
|
|
4296
|
+
.fk-ai-copy-btn {
|
|
4297
|
+
display: inline-flex;
|
|
4298
|
+
align-items: center;
|
|
4299
|
+
justify-content: center;
|
|
4300
|
+
width: 30px;
|
|
4301
|
+
height: 30px;
|
|
4302
|
+
border-radius: 100px;
|
|
4303
|
+
border: 1px solid var(--border);
|
|
4304
|
+
background: var(--surface);
|
|
4305
|
+
color: var(--text-2);
|
|
4306
|
+
cursor: pointer;
|
|
4307
|
+
transition: background 0.15s, color 0.15s;
|
|
4308
|
+
}
|
|
4309
|
+
.fk-ai-copy-btn:hover {
|
|
4310
|
+
background: var(--hover-1);
|
|
4311
|
+
color: var(--text);
|
|
4312
|
+
}
|
|
4313
|
+
.fk-ai-copy-btn--copied {
|
|
4314
|
+
color: var(--accent);
|
|
4315
|
+
border-color: var(--accent);
|
|
4316
|
+
}
|
|
4168
4317
|
|
|
4169
4318
|
/* src/views/components/profile/profile-header.css */
|
|
4170
4319
|
.fk-profile-header {
|
|
@@ -4535,5 +4684,269 @@ button.fk-profile-filter-label {
|
|
|
4535
4684
|
padding-left: 100px;
|
|
4536
4685
|
}
|
|
4537
4686
|
|
|
4687
|
+
/* src/views/routes/ask-result.css */
|
|
4688
|
+
.fk-profile.fk-ask-result-wide {
|
|
4689
|
+
max-width: 800px;
|
|
4690
|
+
}
|
|
4691
|
+
.fk-ask-result-header {
|
|
4692
|
+
display: flex;
|
|
4693
|
+
align-items: center;
|
|
4694
|
+
gap: 10px;
|
|
4695
|
+
margin-bottom: 24px;
|
|
4696
|
+
}
|
|
4697
|
+
.fk-ask-result-title {
|
|
4698
|
+
font-size: 20px;
|
|
4699
|
+
font-weight: 700;
|
|
4700
|
+
color: var(--text);
|
|
4701
|
+
margin: 0;
|
|
4702
|
+
}
|
|
4703
|
+
.fk-ask-turn {
|
|
4704
|
+
margin-bottom: 44px;
|
|
4705
|
+
}
|
|
4706
|
+
.fk-ask-turn-query-row {
|
|
4707
|
+
display: flex;
|
|
4708
|
+
justify-content: flex-end;
|
|
4709
|
+
margin-bottom: 14px;
|
|
4710
|
+
}
|
|
4711
|
+
.fk-ask-turn-query-pill {
|
|
4712
|
+
background: var(--surface-2);
|
|
4713
|
+
border-radius: 20px;
|
|
4714
|
+
padding: 9px 14px;
|
|
4715
|
+
max-width: 72%;
|
|
4716
|
+
font-size: 14px;
|
|
4717
|
+
font-weight: 500;
|
|
4718
|
+
color: var(--text);
|
|
4719
|
+
}
|
|
4720
|
+
.fk-ask-source-pill {
|
|
4721
|
+
display: inline-flex;
|
|
4722
|
+
align-items: center;
|
|
4723
|
+
gap: 6px;
|
|
4724
|
+
cursor: pointer;
|
|
4725
|
+
border: 1px solid var(--border);
|
|
4726
|
+
border-radius: 20px;
|
|
4727
|
+
padding: 6px 10px 6px 8px;
|
|
4728
|
+
margin-bottom: 14px;
|
|
4729
|
+
font-size: 12px;
|
|
4730
|
+
font-weight: 500;
|
|
4731
|
+
color: var(--text-2);
|
|
4732
|
+
background: var(--surface-2);
|
|
4733
|
+
transition: background 0.15s;
|
|
4734
|
+
max-width: 90%;
|
|
4735
|
+
}
|
|
4736
|
+
.fk-ask-source-pill-avatars {
|
|
4737
|
+
display: flex;
|
|
4738
|
+
align-items: center;
|
|
4739
|
+
flex-shrink: 0;
|
|
4740
|
+
}
|
|
4741
|
+
.fk-ask-source-pill-avatars > * + * {
|
|
4742
|
+
margin-left: -6px;
|
|
4743
|
+
}
|
|
4744
|
+
.fk-ask-source-pill-text {
|
|
4745
|
+
flex: 1;
|
|
4746
|
+
min-width: 0;
|
|
4747
|
+
white-space: nowrap;
|
|
4748
|
+
overflow: hidden;
|
|
4749
|
+
text-overflow: ellipsis;
|
|
4750
|
+
}
|
|
4751
|
+
.fk-ask-source-pill:hover {
|
|
4752
|
+
background: var(--hover-2);
|
|
4753
|
+
}
|
|
4754
|
+
.fk-ask-category {
|
|
4755
|
+
margin-bottom: 22px;
|
|
4756
|
+
}
|
|
4757
|
+
.fk-ask-category-title {
|
|
4758
|
+
font-size: 12px;
|
|
4759
|
+
font-weight: 700;
|
|
4760
|
+
letter-spacing: 0.4px;
|
|
4761
|
+
text-transform: uppercase;
|
|
4762
|
+
color: var(--muted);
|
|
4763
|
+
margin-bottom: 10px;
|
|
4764
|
+
}
|
|
4765
|
+
.fk-ask-bullet {
|
|
4766
|
+
padding-left: 12px;
|
|
4767
|
+
border-left: 2px solid var(--border-strong);
|
|
4768
|
+
margin-bottom: 12px;
|
|
4769
|
+
}
|
|
4770
|
+
.fk-ask-bullet-fact {
|
|
4771
|
+
font-size: 14px;
|
|
4772
|
+
font-weight: 600;
|
|
4773
|
+
color: var(--text);
|
|
4774
|
+
margin-bottom: 2px;
|
|
4775
|
+
}
|
|
4776
|
+
.fk-ask-bullet-quote {
|
|
4777
|
+
font-size: 13px;
|
|
4778
|
+
font-style: italic;
|
|
4779
|
+
color: var(--accent);
|
|
4780
|
+
margin-bottom: 5px;
|
|
4781
|
+
}
|
|
4782
|
+
.fk-ask-attr-chip {
|
|
4783
|
+
display: inline-flex;
|
|
4784
|
+
align-items: center;
|
|
4785
|
+
gap: 4px;
|
|
4786
|
+
cursor: pointer;
|
|
4787
|
+
background: var(--surface-2);
|
|
4788
|
+
border-radius: 10px;
|
|
4789
|
+
padding: 3px 8px;
|
|
4790
|
+
font-size: 11px;
|
|
4791
|
+
font-weight: 500;
|
|
4792
|
+
color: var(--text-2);
|
|
4793
|
+
border: none;
|
|
4794
|
+
}
|
|
4795
|
+
.fk-ask-attr-chip:hover {
|
|
4796
|
+
background: var(--hover-2);
|
|
4797
|
+
}
|
|
4798
|
+
.fk-ask-spinner {
|
|
4799
|
+
display: flex;
|
|
4800
|
+
align-items: center;
|
|
4801
|
+
gap: 8px;
|
|
4802
|
+
padding: 12px 0;
|
|
4803
|
+
color: var(--muted);
|
|
4804
|
+
font-size: 13px;
|
|
4805
|
+
}
|
|
4806
|
+
.fk-ask-intro {
|
|
4807
|
+
font-size: 15px;
|
|
4808
|
+
color: var(--text);
|
|
4809
|
+
line-height: 1.6;
|
|
4810
|
+
margin-bottom: 20px;
|
|
4811
|
+
}
|
|
4812
|
+
.fk-ask-media-row {
|
|
4813
|
+
display: flex;
|
|
4814
|
+
gap: 8px;
|
|
4815
|
+
overflow-x: auto;
|
|
4816
|
+
padding-bottom: 4px;
|
|
4817
|
+
margin-bottom: 16px;
|
|
4818
|
+
}
|
|
4819
|
+
.fk-ask-media-thumb {
|
|
4820
|
+
width: 120px;
|
|
4821
|
+
height: 120px;
|
|
4822
|
+
border-radius: 12px;
|
|
4823
|
+
overflow: hidden;
|
|
4824
|
+
border: 1px solid var(--border);
|
|
4825
|
+
flex-shrink: 0;
|
|
4826
|
+
cursor: pointer;
|
|
4827
|
+
background: none;
|
|
4828
|
+
padding: 0;
|
|
4829
|
+
}
|
|
4830
|
+
.fk-ask-media-thumb img {
|
|
4831
|
+
width: 100%;
|
|
4832
|
+
height: 100%;
|
|
4833
|
+
object-fit: cover;
|
|
4834
|
+
}
|
|
4835
|
+
.fk-ask-disclaimer {
|
|
4836
|
+
font-size: 11px;
|
|
4837
|
+
font-style: italic;
|
|
4838
|
+
color: var(--muted);
|
|
4839
|
+
margin-top: 12px;
|
|
4840
|
+
}
|
|
4841
|
+
.fk-ask-followup-bar {
|
|
4842
|
+
position: sticky;
|
|
4843
|
+
bottom: 0;
|
|
4844
|
+
display: flex;
|
|
4845
|
+
align-items: center;
|
|
4846
|
+
gap: 10px;
|
|
4847
|
+
background: var(--bg);
|
|
4848
|
+
padding: 16px 0 20px;
|
|
4849
|
+
}
|
|
4850
|
+
.fk-ask-followup-input {
|
|
4851
|
+
flex: 1;
|
|
4852
|
+
background: var(--surface);
|
|
4853
|
+
border: 1px solid var(--border-strong);
|
|
4854
|
+
border-radius: 22px;
|
|
4855
|
+
padding: 10px 16px;
|
|
4856
|
+
font-size: 15px;
|
|
4857
|
+
color: var(--text);
|
|
4858
|
+
outline: none;
|
|
4859
|
+
font-family: inherit;
|
|
4860
|
+
}
|
|
4861
|
+
.fk-ask-followup-input:focus {
|
|
4862
|
+
border-color: var(--accent);
|
|
4863
|
+
box-shadow: 0 0 0 3px var(--ring);
|
|
4864
|
+
}
|
|
4865
|
+
.fk-ask-followup-btn {
|
|
4866
|
+
width: 36px;
|
|
4867
|
+
height: 36px;
|
|
4868
|
+
border-radius: 50%;
|
|
4869
|
+
background: var(--accent);
|
|
4870
|
+
color: var(--accent-fg);
|
|
4871
|
+
display: flex;
|
|
4872
|
+
align-items: center;
|
|
4873
|
+
justify-content: center;
|
|
4874
|
+
flex-shrink: 0;
|
|
4875
|
+
border: none;
|
|
4876
|
+
cursor: pointer;
|
|
4877
|
+
}
|
|
4878
|
+
.fk-ask-followup-btn:disabled {
|
|
4879
|
+
opacity: 0.35;
|
|
4880
|
+
cursor: default;
|
|
4881
|
+
}
|
|
4882
|
+
.fk-ask-sources-modal-title {
|
|
4883
|
+
font-size: 16px;
|
|
4884
|
+
font-weight: 700;
|
|
4885
|
+
color: var(--text);
|
|
4886
|
+
padding: 20px 20px 0;
|
|
4887
|
+
}
|
|
4888
|
+
.fk-ask-sources-inner {
|
|
4889
|
+
padding: 12px 20px 20px;
|
|
4890
|
+
max-height: 60vh;
|
|
4891
|
+
overflow-y: auto;
|
|
4892
|
+
display: flex;
|
|
4893
|
+
flex-direction: column;
|
|
4894
|
+
gap: 8px;
|
|
4895
|
+
}
|
|
4896
|
+
.fk-ask-source-card {
|
|
4897
|
+
display: flex;
|
|
4898
|
+
align-items: flex-start;
|
|
4899
|
+
gap: 12px;
|
|
4900
|
+
background: var(--surface-2);
|
|
4901
|
+
border-radius: 12px;
|
|
4902
|
+
padding: 14px;
|
|
4903
|
+
cursor: pointer;
|
|
4904
|
+
border: none;
|
|
4905
|
+
text-align: left;
|
|
4906
|
+
width: 100%;
|
|
4907
|
+
}
|
|
4908
|
+
.fk-ask-source-card:hover {
|
|
4909
|
+
background: var(--hover-2);
|
|
4910
|
+
}
|
|
4911
|
+
.fk-ask-source-card-body {
|
|
4912
|
+
flex: 1;
|
|
4913
|
+
min-width: 0;
|
|
4914
|
+
}
|
|
4915
|
+
.fk-ask-source-card-title {
|
|
4916
|
+
font-size: 14px;
|
|
4917
|
+
font-weight: 600;
|
|
4918
|
+
color: var(--text);
|
|
4919
|
+
display: -webkit-box;
|
|
4920
|
+
-webkit-line-clamp: 2;
|
|
4921
|
+
-webkit-box-orient: vertical;
|
|
4922
|
+
overflow: hidden;
|
|
4923
|
+
margin-bottom: 3px;
|
|
4924
|
+
}
|
|
4925
|
+
.fk-ask-source-card-meta {
|
|
4926
|
+
font-size: 12px;
|
|
4927
|
+
color: var(--muted);
|
|
4928
|
+
}
|
|
4929
|
+
.fk-ask-suggestions {
|
|
4930
|
+
display: flex;
|
|
4931
|
+
flex-wrap: wrap;
|
|
4932
|
+
gap: 8px;
|
|
4933
|
+
margin-top: 14px;
|
|
4934
|
+
}
|
|
4935
|
+
.fk-ask-suggestion-chip {
|
|
4936
|
+
border: 1px solid var(--accent);
|
|
4937
|
+
color: var(--accent);
|
|
4938
|
+
border-radius: 20px;
|
|
4939
|
+
padding: 7px 14px;
|
|
4940
|
+
font-size: 13px;
|
|
4941
|
+
font-weight: 500;
|
|
4942
|
+
background: transparent;
|
|
4943
|
+
cursor: pointer;
|
|
4944
|
+
white-space: nowrap;
|
|
4945
|
+
transition: background 0.15s;
|
|
4946
|
+
}
|
|
4947
|
+
.fk-ask-suggestion-chip:hover {
|
|
4948
|
+
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
|
4949
|
+
}
|
|
4950
|
+
|
|
4538
4951
|
/* src/views/styles/all.css?inline */
|
|
4539
4952
|
/*# sourceMappingURL=vue.css.map */
|