@scalar/blocks 0.7.4 → 0.8.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/CHANGELOG.md +14 -0
- package/dist/code-example/helpers/operation-to-har/process-security-schemes.d.ts.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-security-schemes.js +30 -26
- package/dist/code-example/helpers/operation-to-har/process-security-schemes.js.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/style.css +75 -48
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @scalar/blocks
|
|
2
2
|
|
|
3
|
+
## 0.8.1
|
|
4
|
+
|
|
5
|
+
No changes in this release.
|
|
6
|
+
|
|
7
|
+
## 0.8.0
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- [#11103](https://github.com/scalar/scalar/pull/11103): Support `x-scalar-token-prefix` on header API keys. Generated code examples and outgoing requests add the configured prefix while stored credentials remain unchanged.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#11123](https://github.com/scalar/scalar/pull/11123): Fix the API reference freezing on schemas with several recursive or cross-referencing `$ref`s. Generated examples that are too large to render at full depth are now rendered at the deepest depth that fits.
|
|
16
|
+
|
|
3
17
|
## 0.7.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-security-schemes.d.ts","sourceRoot":"","sources":["../../../../src/code-example/helpers/operation-to-har/process-security-schemes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"process-security-schemes.d.ts","sourceRoot":"","sources":["../../../../src/code-example/helpers/operation-to-har/process-security-schemes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAA;AACzF,OAAO,KAAK,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,YAAY,CAAA;AAGvD,KAAK,8BAA8B,GAAG;IACpC,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAA;IAC9B,WAAW,EAAE,UAAU,CAAC,aAAa,CAAC,CAAA;IACtC,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAA;CAC/B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GACjC,iBAAiB,0BAA0B,EAAE,KAC5C,8BA2EF,CAAA"}
|
|
@@ -1,50 +1,54 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { formatTokenPrefix as e } from "@scalar/helpers/http/format-token-prefix";
|
|
2
|
+
import { encode as t } from "js-base64";
|
|
2
3
|
// src/code-example/helpers/operation-to-har/process-security-schemes.ts
|
|
3
|
-
var
|
|
4
|
-
let
|
|
4
|
+
var n = (n) => {
|
|
5
|
+
let r = {
|
|
5
6
|
headers: [],
|
|
6
7
|
queryString: [],
|
|
7
8
|
cookies: []
|
|
8
9
|
};
|
|
9
|
-
for (let
|
|
10
|
-
let
|
|
11
|
-
if (!
|
|
12
|
-
let
|
|
13
|
-
name:
|
|
14
|
-
value:
|
|
10
|
+
for (let i of n) if (i.type === "apiKey") {
|
|
11
|
+
let t = i["x-scalar-secret-token"] || "YOUR_SECRET_TOKEN";
|
|
12
|
+
if (!i.name) continue;
|
|
13
|
+
let n = {
|
|
14
|
+
name: i.name,
|
|
15
|
+
value: t
|
|
15
16
|
};
|
|
16
|
-
switch (
|
|
17
|
+
switch (i.in) {
|
|
17
18
|
case "header":
|
|
18
|
-
|
|
19
|
+
r.headers.push({
|
|
20
|
+
...n,
|
|
21
|
+
value: e(t, i["x-scalar-token-prefix"])
|
|
22
|
+
});
|
|
19
23
|
break;
|
|
20
24
|
case "query":
|
|
21
|
-
|
|
25
|
+
r.queryString.push(n);
|
|
22
26
|
break;
|
|
23
|
-
case "cookie":
|
|
27
|
+
case "cookie": r.cookies.push(n);
|
|
24
28
|
}
|
|
25
|
-
} else if (
|
|
26
|
-
if (
|
|
27
|
-
let
|
|
28
|
-
|
|
29
|
+
} else if (i.type === "http") {
|
|
30
|
+
if (i.scheme === "basic") {
|
|
31
|
+
let e = `${i["x-scalar-secret-username"] || ""}:${i["x-scalar-secret-password"] || ""}`, n = e === ":" ? "username:password" : t(e);
|
|
32
|
+
r.headers.push({
|
|
29
33
|
name: "Authorization",
|
|
30
|
-
value: `Basic ${
|
|
34
|
+
value: `Basic ${n}`
|
|
31
35
|
});
|
|
32
|
-
} else if (
|
|
33
|
-
let e =
|
|
34
|
-
|
|
36
|
+
} else if (i.scheme === "bearer") {
|
|
37
|
+
let e = i["x-scalar-secret-token"] || "YOUR_SECRET_TOKEN";
|
|
38
|
+
r.headers.push({
|
|
35
39
|
name: "Authorization",
|
|
36
40
|
value: `Bearer ${e}`
|
|
37
41
|
});
|
|
38
42
|
}
|
|
39
|
-
} else if (
|
|
40
|
-
let e = Object.values(
|
|
41
|
-
|
|
43
|
+
} else if (i.type === "oauth2" && i.flows) {
|
|
44
|
+
let e = Object.values(i.flows).find((e) => e["x-scalar-secret-token"])?.["x-scalar-secret-token"] || "YOUR_SECRET_TOKEN";
|
|
45
|
+
r.headers.push({
|
|
42
46
|
name: "Authorization",
|
|
43
47
|
value: `Bearer ${e}`
|
|
44
48
|
});
|
|
45
49
|
}
|
|
46
|
-
return
|
|
50
|
+
return r;
|
|
47
51
|
};
|
|
48
|
-
export {
|
|
52
|
+
export { n as processSecuritySchemes };
|
|
49
53
|
|
|
50
54
|
//# sourceMappingURL=process-security-schemes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-security-schemes.js","names":["processSecuritySchemes","result","scheme","securitySchemes","value","param","auth","encode","token","f"],"sources":["../../../../src/code-example/helpers/operation-to-har/process-security-schemes.ts"],"sourcesContent":["import type { SecuritySchemeObjectSecret } from '@scalar/workspace-store/request-example'\nimport type { Request as HarRequest } from 'har-format'\nimport { encode } from 'js-base64'\n\ntype ProcessedSecuritySchemesReturn = {\n headers: HarRequest['headers']\n queryString: HarRequest['queryString']\n cookies: HarRequest['cookies']\n}\n\n/**\n * Process security schemes into whichever parameters they are applicable to\n *\n * TODO: we probably want to be able to disable YOUR_SECRET_TOKEN placeholder text + or allow it to be customzied\n */\nexport const processSecuritySchemes = (\n securitySchemes: SecuritySchemeObjectSecret[],\n): ProcessedSecuritySchemesReturn => {\n const result: ProcessedSecuritySchemesReturn = {\n headers: [],\n queryString: [],\n cookies: [],\n }\n\n for (const scheme of securitySchemes) {\n // Handle apiKey type\n if (scheme.type === 'apiKey') {\n const value = scheme['x-scalar-secret-token'] || 'YOUR_SECRET_TOKEN'\n if (!scheme.name) {\n continue\n }\n\n const param = { name: scheme.name, value }\n\n switch (scheme.in) {\n case 'header':\n result.headers.push(param)\n break\n case 'query':\n result.queryString.push(param)\n break\n case 'cookie':\n result.cookies.push(param)\n break\n }\n continue\n }\n\n // Handle http type\n if (scheme.type === 'http') {\n if (scheme.scheme === 'basic') {\n const username = scheme['x-scalar-secret-username'] || ''\n const password = scheme['x-scalar-secret-password'] || ''\n\n // The snippet is documentation, so we always show an Authorization header. When both\n // fields are empty we render a readable `username:password` placeholder, mirroring the\n // `YOUR_SECRET_TOKEN` placeholder used by the other schemes. (The real request omits the\n // header entirely in that case — see buildRequestSecurity.)\n const value = `${username}:${password}`\n const auth = value === ':' ? 'username:password' : encode(value)\n\n result.headers.push({\n name: 'Authorization',\n value: `Basic ${auth}`,\n })\n } else if (scheme.scheme === 'bearer') {\n const token = scheme['x-scalar-secret-token'] || 'YOUR_SECRET_TOKEN'\n\n result.headers.push({\n name: 'Authorization',\n value: `Bearer ${token}`,\n })\n }\n continue\n }\n\n // Handle oauth2 type\n if (scheme.type === 'oauth2' && scheme.flows) {\n const flows = Object.values(scheme.flows)\n\n // Find the first flow with a token\n const flow = flows.find((f) => f['x-scalar-secret-token'])\n const token = flow?.['x-scalar-secret-token'] || 'YOUR_SECRET_TOKEN'\n\n result.headers.push({\n name: 'Authorization',\n value: `Bearer ${token}`,\n })\n }\n }\n\n return result\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"process-security-schemes.js","names":["processSecuritySchemes","result","scheme","securitySchemes","value","param","formatTokenPrefix","auth","encode","token","f"],"sources":["../../../../src/code-example/helpers/operation-to-har/process-security-schemes.ts"],"sourcesContent":["import { formatTokenPrefix } from '@scalar/helpers/http/format-token-prefix'\nimport type { SecuritySchemeObjectSecret } from '@scalar/workspace-store/request-example'\nimport type { Request as HarRequest } from 'har-format'\nimport { encode } from 'js-base64'\n\ntype ProcessedSecuritySchemesReturn = {\n headers: HarRequest['headers']\n queryString: HarRequest['queryString']\n cookies: HarRequest['cookies']\n}\n\n/**\n * Process security schemes into whichever parameters they are applicable to\n *\n * TODO: we probably want to be able to disable YOUR_SECRET_TOKEN placeholder text + or allow it to be customzied\n */\nexport const processSecuritySchemes = (\n securitySchemes: SecuritySchemeObjectSecret[],\n): ProcessedSecuritySchemesReturn => {\n const result: ProcessedSecuritySchemesReturn = {\n headers: [],\n queryString: [],\n cookies: [],\n }\n\n for (const scheme of securitySchemes) {\n // Handle apiKey type\n if (scheme.type === 'apiKey') {\n const value = scheme['x-scalar-secret-token'] || 'YOUR_SECRET_TOKEN'\n if (!scheme.name) {\n continue\n }\n\n const param = { name: scheme.name, value }\n\n switch (scheme.in) {\n case 'header':\n result.headers.push({ ...param, value: formatTokenPrefix(value, scheme['x-scalar-token-prefix']) })\n break\n case 'query':\n result.queryString.push(param)\n break\n case 'cookie':\n result.cookies.push(param)\n break\n }\n continue\n }\n\n // Handle http type\n if (scheme.type === 'http') {\n if (scheme.scheme === 'basic') {\n const username = scheme['x-scalar-secret-username'] || ''\n const password = scheme['x-scalar-secret-password'] || ''\n\n // The snippet is documentation, so we always show an Authorization header. When both\n // fields are empty we render a readable `username:password` placeholder, mirroring the\n // `YOUR_SECRET_TOKEN` placeholder used by the other schemes. (The real request omits the\n // header entirely in that case — see buildRequestSecurity.)\n const value = `${username}:${password}`\n const auth = value === ':' ? 'username:password' : encode(value)\n\n result.headers.push({\n name: 'Authorization',\n value: `Basic ${auth}`,\n })\n } else if (scheme.scheme === 'bearer') {\n const token = scheme['x-scalar-secret-token'] || 'YOUR_SECRET_TOKEN'\n\n result.headers.push({\n name: 'Authorization',\n value: `Bearer ${token}`,\n })\n }\n continue\n }\n\n // Handle oauth2 type\n if (scheme.type === 'oauth2' && scheme.flows) {\n const flows = Object.values(scheme.flows)\n\n // Find the first flow with a token\n const flow = flows.find((f) => f['x-scalar-secret-token'])\n const token = flow?.['x-scalar-secret-token'] || 'YOUR_SECRET_TOKEN'\n\n result.headers.push({\n name: 'Authorization',\n value: `Bearer ${token}`,\n })\n }\n }\n\n return result\n}\n"],"mappings":";;;AAgBA,IAAaA,KACX,MACmC;CACnC,IAAMC,IAAyC;EAC7C,SAAS,CAAC;EACV,aAAa,CAAC;EACd,SAAS,CAAC;CACZ;CAEA,KAAK,IAAMC,KAAUC,GAEnB,IAAID,EAAO,SAAS,UAAU;EAC5B,IAAME,IAAQF,EAAO,4BAA4B;EACjD,IAAI,CAACA,EAAO,MACV;EAGF,IAAMG,IAAQ;GAAE,MAAMH,EAAO;GAAM;EAAM;EAEzC,QAAQA,EAAO,IAAf;GACE,KAAK;IACH,EAAO,QAAQ,KAAK;KAAE,GAAGG;KAAO,OAAOC,EAAkBF,GAAOF,EAAO,wBAAwB;IAAE,CAAC;IAClG;GACF,KAAK;IACH,EAAO,YAAY,KAAKG,CAAK;IAC7B;GACF,KAAK,UACH,EAAO,QAAQ,KAAKA,CAAK;EAE7B;CAEF,OAGA,IAAIH,EAAO,SAAS,QAAQ;EAC1B,IAAIA,EAAO,WAAW,SAAS;GAQ7B,IAAME,IAAQ,GAPGF,EAAO,+BAA+B,GAO7B,GANTA,EAAO,+BAA+B,MAOjDK,IAAOH,MAAU,MAAM,sBAAsBI,EAAOJ,CAAK;GAE/D,EAAO,QAAQ,KAAK;IAClB,MAAM;IACN,OAAO,SAASG;GAClB,CAAC;EACH,OAAO,IAAIL,EAAO,WAAW,UAAU;GACrC,IAAMO,IAAQP,EAAO,4BAA4B;GAEjD,EAAO,QAAQ,KAAK;IAClB,MAAM;IACN,OAAO,UAAUO;GACnB,CAAC;EACH;CAEF,OAGA,IAAIP,EAAO,SAAS,YAAYA,EAAO,OAAO;EAK5C,IAAMO,IAJQ,OAAO,OAAOP,EAAO,KAGtB,CAAA,CAAM,MAAM,MAAMQ,EAAE,wBACnB,CAAA,GAAO,4BAA4B;EAEjD,EAAO,QAAQ,KAAK;GAClB,MAAM;GACN,OAAO,UAAUD;EACnB,CAAC;CACH;CAGF,OAAOR;AACT"}
|
package/dist/constants.js
CHANGED
package/dist/style.css
CHANGED
|
@@ -395,6 +395,49 @@
|
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
+
.light-mode, .dark-mode, .light-mode .dark-mode, .dark-mode .light-mode {
|
|
399
|
+
--scalar-code-keyword: var(--scalar-color-purple);
|
|
400
|
+
--scalar-code-string: var(--scalar-color-blue);
|
|
401
|
+
--scalar-code-number: var(--scalar-color-orange);
|
|
402
|
+
--scalar-code-function: var(--scalar-color-orange);
|
|
403
|
+
--scalar-code-builtin: var(--scalar-color-blue);
|
|
404
|
+
--scalar-code-type: var(--scalar-color-1);
|
|
405
|
+
--scalar-code-parameter: var(--scalar-color-red);
|
|
406
|
+
--scalar-code-property: var(--scalar-color-green);
|
|
407
|
+
--scalar-code-comment: var(--scalar-color-2);
|
|
408
|
+
--scalar-code-punctuation: var(--scalar-color-2);
|
|
409
|
+
--scalar-code-addition: var(--scalar-color-green);
|
|
410
|
+
--scalar-code-deletion: var(--scalar-color-red);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
@supports (color: oklch(from white l c h)) {
|
|
414
|
+
.light-mode, .dark-mode .light-mode {
|
|
415
|
+
--scalar-code-keyword: oklch(from var(--scalar-color-purple) min(l, .395) min(c, .22) h);
|
|
416
|
+
--scalar-code-string: oklch(from var(--scalar-color-blue) min(l, .55) min(c, .14) h);
|
|
417
|
+
--scalar-code-number: oklch(from var(--scalar-color-orange) min(l, .59) min(c, .17) calc(h + 3));
|
|
418
|
+
--scalar-code-function: oklch(from var(--scalar-color-orange) min(l, .59) min(c, .17) calc(h + 3));
|
|
419
|
+
--scalar-code-builtin: oklch(from var(--scalar-color-blue) min(l, .55) min(c, .14) h);
|
|
420
|
+
--scalar-code-type: oklch(from var(--scalar-color-blue) min(l, .33) min(c, .1) calc(h + 8));
|
|
421
|
+
--scalar-code-parameter: oklch(from var(--scalar-color-red) min(l, .5) min(c, .2) calc(h - 14));
|
|
422
|
+
--scalar-code-property: oklch(from var(--scalar-color-green) min(l, .51) min(c, .11) h);
|
|
423
|
+
--scalar-code-addition: oklch(from var(--scalar-color-green) min(l, .51) min(c, .11) h);
|
|
424
|
+
--scalar-code-deletion: oklch(from var(--scalar-color-red) min(l, .5) min(c, .2) calc(h - 14));
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.dark-mode, .light-mode .dark-mode {
|
|
428
|
+
--scalar-code-keyword: oklch(from var(--scalar-color-purple) max(l, .68) c h);
|
|
429
|
+
--scalar-code-string: oklch(from var(--scalar-color-blue) max(l, .68) c h);
|
|
430
|
+
--scalar-code-number: oklch(from var(--scalar-color-orange) max(l, .75) min(c, .16) h);
|
|
431
|
+
--scalar-code-function: oklch(from var(--scalar-color-orange) max(l, .75) min(c, .16) h);
|
|
432
|
+
--scalar-code-builtin: oklch(from var(--scalar-color-blue) max(l, .68) c h);
|
|
433
|
+
--scalar-code-type: oklch(from var(--scalar-color-blue) max(l, .85) min(c, .075) h);
|
|
434
|
+
--scalar-code-parameter: oklch(from var(--scalar-color-red) max(l, .68) min(c, .19) calc(h - 14));
|
|
435
|
+
--scalar-code-property: oklch(from var(--scalar-color-green) max(l, .68) c h);
|
|
436
|
+
--scalar-code-addition: oklch(from var(--scalar-color-green) max(l, .68) c h);
|
|
437
|
+
--scalar-code-deletion: oklch(from var(--scalar-color-red) max(l, .68) min(c, .19) calc(h - 14));
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
398
441
|
:root, :host {
|
|
399
442
|
--leading-snug: 1.375;
|
|
400
443
|
--ease-in: cubic-bezier(.4, 0, 1, 1);
|
|
@@ -752,10 +795,6 @@
|
|
|
752
795
|
margin-block: 2px -2px;
|
|
753
796
|
}
|
|
754
797
|
|
|
755
|
-
.scalar-app .hljs-regexp, .scalar-app .hljs-string, .scalar-app .hljs-built_in, .scalar-app .hljs-subst, .scalar-app .hljs-name, .scalar-app .hljs-doctag, .scalar-app .hljs-section, .scalar-app .hljs-title {
|
|
756
|
-
color: var(--scalar-color-blue);
|
|
757
|
-
}
|
|
758
|
-
|
|
759
798
|
.scalar-code-block-pre {
|
|
760
799
|
font-family: var(--scalar-font-code);
|
|
761
800
|
font-variant-ligatures: none;
|
|
@@ -847,8 +886,8 @@
|
|
|
847
886
|
filter: brightness(1.1);
|
|
848
887
|
}
|
|
849
888
|
|
|
850
|
-
.scalar-icon[data-v-
|
|
851
|
-
stroke-width: var(--
|
|
889
|
+
.scalar-icon[data-v-6150d8b1], .scalar-icon[data-v-6150d8b1] * {
|
|
890
|
+
stroke-width: var(--scalar-icon-stroke-width);
|
|
852
891
|
}
|
|
853
892
|
|
|
854
893
|
:where(pre:has( > code.hljs)) {
|
|
@@ -869,13 +908,13 @@
|
|
|
869
908
|
.scalar-app code.hljs {
|
|
870
909
|
all: unset;
|
|
871
910
|
font-size: inherit;
|
|
872
|
-
color: var(--scalar-color-
|
|
911
|
+
color: var(--scalar-color-1);
|
|
873
912
|
font-family: var(--scalar-font-code);
|
|
874
913
|
counter-reset: linenumber;
|
|
875
914
|
}
|
|
876
915
|
|
|
877
916
|
.scalar-app .hljs {
|
|
878
|
-
color: var(--scalar-color-
|
|
917
|
+
color: var(--scalar-color-1);
|
|
879
918
|
background: none;
|
|
880
919
|
}
|
|
881
920
|
|
|
@@ -890,64 +929,60 @@
|
|
|
890
929
|
}
|
|
891
930
|
|
|
892
931
|
.scalar-app .hljs-comment, .scalar-app .hljs-quote {
|
|
893
|
-
color: var(--scalar-color-
|
|
932
|
+
color: var(--scalar-code-comment, var(--scalar-color-2));
|
|
894
933
|
font-style: italic;
|
|
895
934
|
}
|
|
896
935
|
|
|
897
|
-
.scalar-app .hljs-
|
|
898
|
-
color: var(--scalar-color-
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
.scalar-app .hljs-regexp, .scalar-app .hljs-string, .scalar-app .hljs-built_in {
|
|
902
|
-
color: var(--scalar-color-blue);
|
|
936
|
+
.scalar-app .hljs-punctuation, .scalar-app .hljs-operator, .scalar-app .hljs-bullet {
|
|
937
|
+
color: var(--scalar-code-punctuation, var(--scalar-color-2));
|
|
903
938
|
}
|
|
904
939
|
|
|
905
|
-
.scalar-app .hljs-
|
|
906
|
-
color: var(--scalar-color-
|
|
940
|
+
.scalar-app .hljs-number, .scalar-app .hljs-literal, .scalar-app .hljs-symbol {
|
|
941
|
+
color: var(--scalar-code-number, var(--scalar-color-orange));
|
|
907
942
|
}
|
|
908
943
|
|
|
909
|
-
.scalar-app .hljs-
|
|
910
|
-
color: var(--scalar-color-
|
|
944
|
+
.scalar-app .hljs-regexp, .scalar-app .hljs-string {
|
|
945
|
+
color: var(--scalar-code-string, var(--scalar-color-blue));
|
|
911
946
|
}
|
|
912
947
|
|
|
913
|
-
.scalar-app .hljs-
|
|
914
|
-
color: var(--scalar-color-
|
|
948
|
+
.scalar-app .hljs-built_in, .scalar-app .hljs-meta {
|
|
949
|
+
color: var(--scalar-code-builtin, var(--scalar-color-blue));
|
|
915
950
|
}
|
|
916
951
|
|
|
917
|
-
.scalar-app .hljs-subst, .scalar-app .hljs-name {
|
|
918
|
-
color: var(--scalar-color-
|
|
952
|
+
.scalar-app .hljs-keyword, .scalar-app .hljs-doctag, .scalar-app .hljs-subst, .scalar-app .hljs-name {
|
|
953
|
+
color: var(--scalar-code-keyword, var(--scalar-color-purple));
|
|
919
954
|
}
|
|
920
955
|
|
|
921
|
-
.scalar-app .hljs-
|
|
922
|
-
color: var(--scalar-color-
|
|
956
|
+
.scalar-app .hljs-section, .scalar-app .hljs-link, .scalar-app .hljs-title, .scalar-app .hljs-title.function_ {
|
|
957
|
+
color: var(--scalar-code-function, var(--scalar-color-orange));
|
|
923
958
|
}
|
|
924
959
|
|
|
925
|
-
.scalar-app .hljs-
|
|
926
|
-
color: var(--scalar-color-
|
|
960
|
+
.scalar-app .hljs-title.class_, .scalar-app .hljs-type {
|
|
961
|
+
color: var(--scalar-code-type, var(--scalar-color-1));
|
|
927
962
|
}
|
|
928
963
|
|
|
929
|
-
.scalar-app .hljs-
|
|
930
|
-
color: var(--scalar-color-
|
|
964
|
+
.scalar-app .hljs-params {
|
|
965
|
+
color: var(--scalar-code-parameter, var(--scalar-color-red));
|
|
931
966
|
}
|
|
932
967
|
|
|
933
|
-
.scalar-app .hljs-
|
|
934
|
-
color: var(--scalar-color-
|
|
968
|
+
.scalar-app .hljs-property, .scalar-app .hljs-attr, .scalar-app .hljs-attribute, .scalar-app .hljs-selector-tag, .scalar-app .hljs-selector-attr, .scalar-app .hljs-selector-pseudo {
|
|
969
|
+
color: var(--scalar-code-property, var(--scalar-color-green));
|
|
935
970
|
}
|
|
936
971
|
|
|
937
972
|
.scalar-app .hljs-selector-id, .scalar-app .hljs-template-variable, .scalar-app .hljs-variable {
|
|
938
973
|
color: var(--scalar-color-1);
|
|
939
974
|
}
|
|
940
975
|
|
|
941
|
-
.scalar-app .hljs-
|
|
942
|
-
|
|
976
|
+
.scalar-app .hljs-addition {
|
|
977
|
+
color: var(--scalar-code-addition, var(--scalar-color-green));
|
|
943
978
|
}
|
|
944
979
|
|
|
945
|
-
.scalar-app .hljs-
|
|
946
|
-
|
|
980
|
+
.scalar-app .hljs-name, .scalar-app .hljs-section, .scalar-app .hljs-strong {
|
|
981
|
+
font-weight: var(--scalar-semibold);
|
|
947
982
|
}
|
|
948
983
|
|
|
949
984
|
.scalar-app .hljs-deletion {
|
|
950
|
-
color: var(--scalar-color-red);
|
|
985
|
+
color: var(--scalar-code-deletion, var(--scalar-color-red));
|
|
951
986
|
}
|
|
952
987
|
|
|
953
988
|
.scalar-app .hljs-formula {
|
|
@@ -975,27 +1010,19 @@
|
|
|
975
1010
|
}
|
|
976
1011
|
|
|
977
1012
|
.hljs.language-html .hljs-attr {
|
|
978
|
-
color: var(--scalar-color-
|
|
1013
|
+
color: var(--scalar-code-property, var(--scalar-color-green));
|
|
979
1014
|
}
|
|
980
1015
|
|
|
981
1016
|
.hljs.language-curl .hljs-string {
|
|
982
|
-
color: var(--scalar-color-blue);
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
.hljs.language-curl .hljs-literal {
|
|
986
|
-
color: var(--scalar-color-1);
|
|
1017
|
+
color: var(--scalar-code-string, var(--scalar-color-blue));
|
|
987
1018
|
}
|
|
988
1019
|
|
|
989
|
-
.hljs.language-php .hljs-variable {
|
|
990
|
-
color: var(--scalar-color-blue);
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
.hljs.language-objectivec .hljs-meta {
|
|
1020
|
+
.hljs.language-curl .hljs-literal, .hljs.language-php .hljs-variable, .hljs.language-objectivec .hljs-meta {
|
|
994
1021
|
color: var(--scalar-color-1);
|
|
995
1022
|
}
|
|
996
1023
|
|
|
997
1024
|
.hljs.language-objectivec .hljs-built_in {
|
|
998
|
-
color: var(--scalar-color-
|
|
1025
|
+
color: var(--scalar-code-builtin, var(--scalar-color-blue));
|
|
999
1026
|
}
|
|
1000
1027
|
|
|
1001
1028
|
.scalar-app .markdown {
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"blocks",
|
|
18
18
|
"docs"
|
|
19
19
|
],
|
|
20
|
-
"version": "0.
|
|
20
|
+
"version": "0.8.1",
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=22"
|
|
23
23
|
},
|
|
@@ -62,15 +62,15 @@
|
|
|
62
62
|
"CHANGELOG.md"
|
|
63
63
|
],
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@scalar/components": "0.35.
|
|
66
|
-
"@scalar/helpers": "0.
|
|
65
|
+
"@scalar/components": "0.35.4",
|
|
66
|
+
"@scalar/helpers": "0.19.0",
|
|
67
67
|
"@scalar/icons": "0.7.11",
|
|
68
|
-
"@scalar/localization": "0.2.
|
|
69
|
-
"@scalar/snippetz": "0.10.
|
|
70
|
-
"@scalar/themes": "0.
|
|
71
|
-
"@scalar/types": "0.
|
|
72
|
-
"@scalar/use-hooks": "0.4.
|
|
73
|
-
"@scalar/workspace-store": "0.
|
|
68
|
+
"@scalar/localization": "0.2.15",
|
|
69
|
+
"@scalar/snippetz": "0.10.21",
|
|
70
|
+
"@scalar/themes": "0.21.0",
|
|
71
|
+
"@scalar/types": "0.31.0",
|
|
72
|
+
"@scalar/use-hooks": "0.4.29",
|
|
73
|
+
"@scalar/workspace-store": "0.75.0",
|
|
74
74
|
"@types/har-format": "^1.2.16",
|
|
75
75
|
"@vueuse/core": "15.0.0",
|
|
76
76
|
"js-base64": "^3.9.6",
|