@scalar/use-codemirror 0.7.3 → 0.7.5
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 +12 -0
- package/dist/index.js +70 -20
- package/dist/style.css +6 -0
- package/dist/themes/index.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -12647,13 +12647,13 @@ const lightTheme = createTheme({
|
|
|
12647
12647
|
gutterBackground: "var(--theme-background-2, var(--default-theme-background-2))",
|
|
12648
12648
|
gutterForeground: "var(--theme-color-3, var(--default-theme-color-3))",
|
|
12649
12649
|
gutterBorder: "transparent",
|
|
12650
|
-
lineHighlight: "
|
|
12650
|
+
lineHighlight: "var(--theme-background-3, var(--default-theme-background-3))",
|
|
12651
12651
|
fontFamily: "var(--theme-font-code, var(--default-theme-font-code))"
|
|
12652
12652
|
},
|
|
12653
12653
|
styles: [
|
|
12654
12654
|
{
|
|
12655
12655
|
tag: [tags$1.standard(tags$1.tagName), tags$1.tagName],
|
|
12656
|
-
color: "var(--theme-color-
|
|
12656
|
+
color: "var(--theme-color-purple, var(--default-theme-color-purple))"
|
|
12657
12657
|
},
|
|
12658
12658
|
{
|
|
12659
12659
|
tag: [tags$1.comment],
|
|
@@ -12680,21 +12680,46 @@ const lightTheme = createTheme({
|
|
|
12680
12680
|
color: "var(--theme-color-blue, var(--default-theme-color-blue))"
|
|
12681
12681
|
},
|
|
12682
12682
|
{
|
|
12683
|
-
tag: [tags$1.bracket, tags$1.
|
|
12684
|
-
color: "var(--theme-color-
|
|
12683
|
+
tag: [tags$1.bracket, tags$1.regexp, tags$1.meta],
|
|
12684
|
+
color: "var(--theme-color-3, var(--default-theme-color-3))"
|
|
12685
|
+
},
|
|
12686
|
+
{
|
|
12687
|
+
tag: [tags$1.number],
|
|
12688
|
+
color: "var(--theme-color-blue, var(--default-theme-color-blue))"
|
|
12689
|
+
},
|
|
12690
|
+
{
|
|
12691
|
+
tag: [tags$1.name, tags$1.quote],
|
|
12692
|
+
color: "var(--theme-color-3, var(--default-theme-color-3))"
|
|
12693
|
+
},
|
|
12694
|
+
{
|
|
12695
|
+
tag: [tags$1.heading],
|
|
12696
|
+
color: "var(--theme-color-3, var(--default-theme-color-3))",
|
|
12697
|
+
fontWeight: "bold"
|
|
12698
|
+
},
|
|
12699
|
+
{
|
|
12700
|
+
tag: [tags$1.emphasis],
|
|
12701
|
+
color: "var(--theme-color-3, var(--default-theme-color-3))",
|
|
12702
|
+
fontStyle: "italic"
|
|
12703
|
+
},
|
|
12704
|
+
{
|
|
12705
|
+
tag: [tags$1.deleted],
|
|
12706
|
+
color: "var(--theme-color-3, var(--default-theme-color-3))",
|
|
12707
|
+
backgroundColor: "transparent"
|
|
12708
|
+
},
|
|
12709
|
+
{
|
|
12710
|
+
tag: [tags$1.atom, tags$1.bool, tags$1.special(tags$1.variableName)],
|
|
12711
|
+
color: "var(--theme-color-3, var(--default-theme-color-3))"
|
|
12685
12712
|
},
|
|
12686
|
-
{ tag: [tags$1.name, tags$1.quote], color: "#22863a" },
|
|
12687
|
-
{ tag: [tags$1.heading], color: "#24292e", fontWeight: "bold" },
|
|
12688
|
-
{ tag: [tags$1.emphasis], color: "#24292e", fontStyle: "italic" },
|
|
12689
|
-
{ tag: [tags$1.deleted], color: "#b31d28", backgroundColor: "ffeef0" },
|
|
12690
|
-
{ tag: [tags$1.atom, tags$1.bool, tags$1.special(tags$1.variableName)], color: "#5203D1" },
|
|
12691
12713
|
{
|
|
12692
12714
|
tag: [tags$1.url, tags$1.escape, tags$1.regexp, tags$1.link],
|
|
12693
12715
|
color: "var(--theme-color-1, var(--default-theme-color-1))"
|
|
12694
12716
|
},
|
|
12695
12717
|
{ tag: tags$1.link, textDecoration: "underline" },
|
|
12696
12718
|
{ tag: tags$1.strikethrough, textDecoration: "line-through" },
|
|
12697
|
-
{
|
|
12719
|
+
{
|
|
12720
|
+
tag: tags$1.invalid,
|
|
12721
|
+
color: "var(--theme-color-3, var(--default-theme-color-3))"
|
|
12722
|
+
}
|
|
12698
12723
|
]
|
|
12699
12724
|
});
|
|
12700
12725
|
const darkTheme = createTheme({
|
|
@@ -12708,13 +12733,13 @@ const darkTheme = createTheme({
|
|
|
12708
12733
|
gutterBackground: "var(--theme-background-2, var(--default-theme-background-2))",
|
|
12709
12734
|
gutterForeground: "var(--theme-color-3, var(--default-theme-color-3))",
|
|
12710
12735
|
gutterBorder: "transparent",
|
|
12711
|
-
lineHighlight: "
|
|
12736
|
+
lineHighlight: "var(--theme-background-3, var(--default-theme-background-3))",
|
|
12712
12737
|
fontFamily: "var(--theme-font-code, var(--default-theme-font-code))"
|
|
12713
12738
|
},
|
|
12714
12739
|
styles: [
|
|
12715
12740
|
{
|
|
12716
12741
|
tag: [tags$1.standard(tags$1.tagName), tags$1.tagName],
|
|
12717
|
-
color: "var(--theme-color-
|
|
12742
|
+
color: "var(--theme-color-purple, var(--default-theme-color-purple))"
|
|
12718
12743
|
},
|
|
12719
12744
|
{
|
|
12720
12745
|
tag: [tags$1.comment],
|
|
@@ -12741,21 +12766,46 @@ const darkTheme = createTheme({
|
|
|
12741
12766
|
color: "var(--theme-color-blue, var(--default-theme-color-blue))"
|
|
12742
12767
|
},
|
|
12743
12768
|
{
|
|
12744
|
-
tag: [tags$1.bracket, tags$1.
|
|
12745
|
-
color: "var(--theme-color-
|
|
12769
|
+
tag: [tags$1.bracket, tags$1.regexp, tags$1.meta],
|
|
12770
|
+
color: "var(--theme-color-3, var(--default-theme-color-3))"
|
|
12771
|
+
},
|
|
12772
|
+
{
|
|
12773
|
+
tag: [tags$1.number],
|
|
12774
|
+
color: "var(--theme-color-blue, var(--default-theme-color-blue))"
|
|
12775
|
+
},
|
|
12776
|
+
{
|
|
12777
|
+
tag: [tags$1.name, tags$1.quote],
|
|
12778
|
+
color: "var(--theme-color-3, var(--default-theme-color-3))"
|
|
12779
|
+
},
|
|
12780
|
+
{
|
|
12781
|
+
tag: [tags$1.heading],
|
|
12782
|
+
color: "var(--theme-color-3, var(--default-theme-color-3))",
|
|
12783
|
+
fontWeight: "bold"
|
|
12784
|
+
},
|
|
12785
|
+
{
|
|
12786
|
+
tag: [tags$1.emphasis],
|
|
12787
|
+
color: "var(--theme-color-3, var(--default-theme-color-3))",
|
|
12788
|
+
fontStyle: "italic"
|
|
12789
|
+
},
|
|
12790
|
+
{
|
|
12791
|
+
tag: [tags$1.deleted],
|
|
12792
|
+
color: "var(--theme-color-3, var(--default-theme-color-3))",
|
|
12793
|
+
backgroundColor: "transparent"
|
|
12794
|
+
},
|
|
12795
|
+
{
|
|
12796
|
+
tag: [tags$1.atom, tags$1.bool, tags$1.special(tags$1.variableName)],
|
|
12797
|
+
color: "var(--theme-color-3, var(--default-theme-color-3))"
|
|
12746
12798
|
},
|
|
12747
|
-
{ tag: [tags$1.name, tags$1.quote], color: "#22863a" },
|
|
12748
|
-
{ tag: [tags$1.heading], color: "#24292e", fontWeight: "bold" },
|
|
12749
|
-
{ tag: [tags$1.emphasis], color: "#24292e", fontStyle: "italic" },
|
|
12750
|
-
{ tag: [tags$1.deleted], color: "#b31d28", backgroundColor: "ffeef0" },
|
|
12751
|
-
{ tag: [tags$1.atom, tags$1.bool, tags$1.special(tags$1.variableName)], color: "#5203D1" },
|
|
12752
12799
|
{
|
|
12753
12800
|
tag: [tags$1.url, tags$1.escape, tags$1.regexp, tags$1.link],
|
|
12754
12801
|
color: "var(--theme-color-1, var(--default-theme-color-1))"
|
|
12755
12802
|
},
|
|
12756
12803
|
{ tag: tags$1.link, textDecoration: "underline" },
|
|
12757
12804
|
{ tag: tags$1.strikethrough, textDecoration: "line-through" },
|
|
12758
|
-
{
|
|
12805
|
+
{
|
|
12806
|
+
tag: tags$1.invalid,
|
|
12807
|
+
color: "var(--theme-color-3, var(--default-theme-color-3))"
|
|
12808
|
+
}
|
|
12759
12809
|
]
|
|
12760
12810
|
});
|
|
12761
12811
|
const isDark = ref(false);
|
package/dist/style.css
CHANGED
|
@@ -6,9 +6,15 @@
|
|
|
6
6
|
padding-top: 4px;
|
|
7
7
|
min-height: 76px;
|
|
8
8
|
background: var(--theme-background-2, var(--default-theme-background-2));
|
|
9
|
+
color: var(--theme-color-1, var(--default-theme-color-1));
|
|
9
10
|
display: flex;
|
|
10
11
|
align-items: stretch;
|
|
11
12
|
}
|
|
13
|
+
@media screen and (max-width: 720px) {
|
|
14
|
+
.scalar-api-client__codemirror__wrapper {
|
|
15
|
+
width: calc(100% - 50px);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
12
18
|
.scalar-api-client__codemirror {
|
|
13
19
|
flex-grow: 1;
|
|
14
20
|
max-width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,uCAuFrB,CAAA;AAEF,eAAO,MAAM,SAAS,uCAuFpB,CAAA"}
|
package/package.json
CHANGED