chore(deps): update dependency catppuccin/palette to v1 (#999)

* chore(deps): update dependency catppuccin/palette to v1

* refactor(scripts/labels): update for `@catppuccin/palette` data structure changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: uncenter <[email protected]>
This commit is contained in:
renovate[bot]anduncenter authored and GitHub committed 2024-06-14 19:34:30 -04:00
1 parent 867c571550
commit ce199b0180
3 files changed
+14 -9

No files matched your search

+1
View File
@@ -3,6 +3,7 @@
"@/": "./scripts/", "@/": "./scripts/",
"std/": "https://deno.land/[email protected]/", "std/": "https://deno.land/[email protected]/",
"catppuccin-repo/": "https://raw.githubusercontent.com/catppuccin/catppuccin/d4f2666c2b04337f0a8632713de0889d9a7d332d/", "catppuccin-repo/": "https://raw.githubusercontent.com/catppuccin/catppuccin/d4f2666c2b04337f0a8632713de0889d9a7d332d/",
"@catppuccin/palette": "npm:@catppuccin/[email protected]",
"@actions/core": "npm:@actions/[email protected]", "@actions/core": "npm:@actions/[email protected]",
"@octokit/rest": "npm:@octokit/[email protected]", "@octokit/rest": "npm:@octokit/[email protected]",
"ajv": "npm:[email protected]", "ajv": "npm:[email protected]",
Generated
+8 -2
View File
@@ -3,8 +3,10 @@
"packages": { "packages": {
"specifiers": { "specifiers": {
"npm:@actions/[email protected]": "npm:@actions/[email protected]", "npm:@actions/[email protected]": "npm:@actions/[email protected]",
"npm:@catppuccin/[email protected]": "npm:@catppuccin/[email protected]",
"npm:@octokit/[email protected]": "npm:@octokit/[email protected]_@[email protected]", "npm:@octokit/[email protected]": "npm:@octokit/[email protected]_@[email protected]",
"npm:@types/less": "npm:@types/[email protected]", "npm:@types/less": "npm:@types/[email protected]",
"npm:@types/node": "npm:@types/[email protected]",
"npm:[email protected]": "npm:[email protected]", "npm:[email protected]": "npm:[email protected]",
"npm:[email protected]": "npm:[email protected]", "npm:[email protected]": "npm:[email protected]",
"npm:[email protected]": "npm:[email protected][email protected]", "npm:[email protected]": "npm:[email protected][email protected]",
@@ -64,6 +66,10 @@
"js-yaml": "[email protected]" "js-yaml": "[email protected]"
} }
}, },
"@catppuccin/[email protected]": {
"integrity": "sha512-R5fxLcU47mRcsdQkXZBNfxt7SdEqLGWb1qhEKBrnYfEB4ZWOQRBEow4e78PKxaFUECBNOs6uEkwvwxFL9FmQqQ==",
"dependencies": {}
},
"@csstools/[email protected]_@[email protected]": { "@csstools/[email protected]_@[email protected]": {
"integrity": "sha512-xI/tL2zxzEbESvnSxwFgwvy5HS00oCXxL4MLs6HUiDcYfwowsoQaABKxUElp1ARITrINzBnsECOc1q0eg2GOrA==", "integrity": "sha512-xI/tL2zxzEbESvnSxwFgwvy5HS00oCXxL4MLs6HUiDcYfwowsoQaABKxUElp1ARITrINzBnsECOc1q0eg2GOrA==",
"dependencies": { "dependencies": {
@@ -1517,12 +1523,12 @@
"https://deno.land/[email protected]/yaml/schema/mod.ts": "4472e827bab5025e92bc2eb2eeefa70ecbefc64b2799b765c69af84822efef32", "https://deno.land/[email protected]/yaml/schema/mod.ts": "4472e827bab5025e92bc2eb2eeefa70ecbefc64b2799b765c69af84822efef32",
"https://deno.land/[email protected]/yaml/stringify.ts": "fffc09c65c68d3d63f8159e8cbaa3f489bc20a8e55b4fbb61a8c2e9f914d1d02", "https://deno.land/[email protected]/yaml/stringify.ts": "fffc09c65c68d3d63f8159e8cbaa3f489bc20a8e55b4fbb61a8c2e9f914d1d02",
"https://deno.land/[email protected]/yaml/type.ts": "65553da3da3c029b6589c6e4903f0afbea6768be8fca61580711457151f2b30f", "https://deno.land/[email protected]/yaml/type.ts": "65553da3da3c029b6589c6e4903f0afbea6768be8fca61580711457151f2b30f",
"https://raw.githubusercontent.com/catppuccin/catppuccin/d4f2666c2b04337f0a8632713de0889d9a7d332d/resources/ports.schema.json": "39ce3bcd2dabd033010684df7caa82cc69c25584174eba0922e6435dce53f06a", "https://raw.githubusercontent.com/catppuccin/catppuccin/d4f2666c2b04337f0a8632713de0889d9a7d332d/resources/ports.schema.json": "39ce3bcd2dabd033010684df7caa82cc69c25584174eba0922e6435dce53f06a"
"https://raw.githubusercontent.com/catppuccin/palette/v0.2.0/palette-porcelain.json": "a13a97027e630bdac3a498696b9465f6f947ec6abc2acfee9084e9a951effe4b"
}, },
"workspace": { "workspace": {
"dependencies": [ "dependencies": [
"npm:@actions/[email protected]", "npm:@actions/[email protected]",
"npm:@catppuccin/[email protected]",
"npm:@octokit/[email protected]", "npm:@octokit/[email protected]",
"npm:[email protected]", "npm:[email protected]",
"npm:[email protected]", "npm:[email protected]",
+5 -7
View File
@@ -4,18 +4,16 @@ import { REPO_ROOT } from "@/deps.ts";
import { updateFile } from "@/generate/utils.ts"; import { updateFile } from "@/generate/utils.ts";
import { UserStylesSchema } from "@/types/mod.ts"; import { UserStylesSchema } from "@/types/mod.ts";
import { stringify } from "std/yaml/stringify.ts"; import { stringify } from "std/yaml/stringify.ts";
import palette from "https://raw.githubusercontent.com/catppuccin/palette/v0.2.0/palette-porcelain.json" with { import { type ColorName, flavors } from "@catppuccin/palette";
type: "json",
};
/** /**
* Macchiato color definitions as hex values. * Macchiato color definitions as hex values.
*/ */
const macchiatoHex = Object.entries(palette.macchiato) const macchiatoHex = flavors.macchiato.colorEntries
.reduce((acc, [k, v]) => { .reduce((acc, [identifier, { hex }]) => {
acc[k] = `#${v.hex}`; acc[identifier] = hex;
return acc; return acc;
}, {} as Record<keyof typeof palette.macchiato, string>); }, {} as Record<ColorName, string>);
const toIssueLabel = (slug: string | number) => `lbl:${slug}`; const toIssueLabel = (slug: string | number) => `lbl:${slug}`;