cross-country 1.2.22 → 1.2.23
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/components/atoms/text/input/__stories__/perplexity-service.js +7 -7
- package/dist/components/molecules/header/index.js +1 -1
- package/dist/components/molecules/screen/screen.js +1 -1
- package/package.json +2 -2
- package/dist/lib/types/branch.type.d.ts +0 -21
- package/dist/types/branch.type.js +0 -1
- /package/dist/components/molecules/header/{Header.js → header.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const s = {
|
|
2
2
|
UNSPLASH_API_KEY: "",
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
},
|
|
3
|
+
RAPID_API_KEY: "64376730e2msh02a5a75e9e45d6bp1fbfbfjsnb455679ebdd9",
|
|
4
|
+
PERPLEXITY_API_KEY: "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"
|
|
5
|
+
}, i = s == null ? void 0 : s.PERPLEXITY_API_KEY, P = async (n, o = 0.6, r = null) => {
|
|
6
6
|
const c = "https://api.perplexity.ai/chat/completions", a = {
|
|
7
7
|
Accept: "application/json",
|
|
8
8
|
"Content-Type": "application/json",
|
|
9
|
-
Authorization: `Bearer ${
|
|
9
|
+
Authorization: `Bearer ${i}`
|
|
10
10
|
// Fetch from your project's environment variables
|
|
11
|
-
},
|
|
11
|
+
}, p = {
|
|
12
12
|
model: "pplx-7b-online",
|
|
13
13
|
stream: !1,
|
|
14
14
|
max_tokens: 80,
|
|
@@ -27,7 +27,7 @@ const s = {
|
|
|
27
27
|
}, e = await (await fetch(c, {
|
|
28
28
|
method: "POST",
|
|
29
29
|
headers: a,
|
|
30
|
-
body: JSON.stringify(
|
|
30
|
+
body: JSON.stringify(p)
|
|
31
31
|
})).json();
|
|
32
32
|
if (e != null && e.choices && (e == null ? void 0 : e.choices.length) > 0) {
|
|
33
33
|
const t = e == null ? void 0 : e.choices[0].message;
|
|
@@ -37,5 +37,5 @@ const s = {
|
|
|
37
37
|
return "";
|
|
38
38
|
};
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
P as default
|
|
41
41
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cross-country",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.23",
|
|
4
4
|
"description": "an atomic design system built for personal metrics & lonely forest bathers",
|
|
5
5
|
"author": "headwinds",
|
|
6
6
|
"license": "MIT",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@xstate/react": "4.1.0",
|
|
81
81
|
"@xstate/store": "^2.4.0",
|
|
82
82
|
"clsx": "^1.1.0",
|
|
83
|
-
"cross-country": "^1.2.
|
|
83
|
+
"cross-country": "^1.2.23",
|
|
84
84
|
"d3": "^7.8.2",
|
|
85
85
|
"d3-axis": "^3.0.0",
|
|
86
86
|
"date-fns": "^3.6.0",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type BranchType = {
|
|
2
|
-
id: string;
|
|
3
|
-
tags: string[];
|
|
4
|
-
photoUrl: string;
|
|
5
|
-
photoLargeUrl: string;
|
|
6
|
-
images: string[];
|
|
7
|
-
link: string;
|
|
8
|
-
publishedDate: string;
|
|
9
|
-
branchTitleUnescape: string;
|
|
10
|
-
feedLink: string;
|
|
11
|
-
feedTitle: string;
|
|
12
|
-
aboutUnescape: string;
|
|
13
|
-
index: number;
|
|
14
|
-
textUnescape: string;
|
|
15
|
-
bUseText: boolean;
|
|
16
|
-
x: number;
|
|
17
|
-
y: number;
|
|
18
|
-
bViewed: boolean;
|
|
19
|
-
bTrashed: boolean;
|
|
20
|
-
origin: 'porthole' | 'local';
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
File without changes
|