@uipath/apollo-wind 2.20.1 → 2.21.0
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/ui/index.cjs +16 -16
- package/dist/editor-themes/codemirror.cjs +194 -0
- package/dist/editor-themes/codemirror.d.ts +128 -0
- package/dist/editor-themes/codemirror.js +145 -0
- package/dist/editor-themes/index.cjs +70 -0
- package/dist/editor-themes/index.d.ts +23 -0
- package/dist/editor-themes/index.js +3 -0
- package/dist/editor-themes/monaco.cjs +1052 -0
- package/dist/editor-themes/monaco.d.ts +830 -0
- package/dist/editor-themes/monaco.js +1003 -0
- package/dist/index.cjs +9 -13
- package/dist/index.d.ts +0 -2
- package/dist/index.js +1 -2
- package/dist/styles.css +50 -7
- package/package.json +13 -3
- package/dist/components/ui/code-block.cjs +0 -235
- package/dist/components/ui/code-block.d.ts +0 -48
- package/dist/components/ui/code-block.js +0 -201
- /package/dist/templates/{Experiments → Patterns}/ideas-AnimatedGradientText.d.ts +0 -0
|
@@ -30,13 +30,13 @@ var __webpack_modules__ = {
|
|
|
30
30
|
"@/components/ui/calendar" (module) {
|
|
31
31
|
module.exports = require("./calendar.cjs");
|
|
32
32
|
},
|
|
33
|
-
"
|
|
33
|
+
"@/components/ui/card" (module) {
|
|
34
34
|
module.exports = require("./card.cjs");
|
|
35
35
|
},
|
|
36
36
|
"@/components/ui/checkbox" (module) {
|
|
37
37
|
module.exports = require("./checkbox.cjs");
|
|
38
38
|
},
|
|
39
|
-
"
|
|
39
|
+
"@/components/ui/collapsible" (module) {
|
|
40
40
|
module.exports = require("./collapsible.cjs");
|
|
41
41
|
},
|
|
42
42
|
"./combobox" (module) {
|
|
@@ -45,7 +45,7 @@ var __webpack_modules__ = {
|
|
|
45
45
|
"@/components/ui/command" (module) {
|
|
46
46
|
module.exports = require("./command.cjs");
|
|
47
47
|
},
|
|
48
|
-
"
|
|
48
|
+
"@/components/ui/context-menu" (module) {
|
|
49
49
|
module.exports = require("./context-menu.cjs");
|
|
50
50
|
},
|
|
51
51
|
"./data-table" (module) {
|
|
@@ -60,7 +60,7 @@ var __webpack_modules__ = {
|
|
|
60
60
|
"@/components/ui/dialog" (module) {
|
|
61
61
|
module.exports = require("./dialog.cjs");
|
|
62
62
|
},
|
|
63
|
-
"
|
|
63
|
+
"@/components/ui/dropdown-menu" (module) {
|
|
64
64
|
module.exports = require("./dropdown-menu.cjs");
|
|
65
65
|
},
|
|
66
66
|
"@/components/ui/editable-cell" (module) {
|
|
@@ -72,13 +72,13 @@ var __webpack_modules__ = {
|
|
|
72
72
|
"./file-upload" (module) {
|
|
73
73
|
module.exports = require("./file-upload.cjs");
|
|
74
74
|
},
|
|
75
|
-
"
|
|
75
|
+
"@/components/ui/hover-card" (module) {
|
|
76
76
|
module.exports = require("./hover-card.cjs");
|
|
77
77
|
},
|
|
78
|
-
"
|
|
78
|
+
"@/components/ui/input" (module) {
|
|
79
79
|
module.exports = require("./input.cjs");
|
|
80
80
|
},
|
|
81
|
-
"
|
|
81
|
+
"@/components/ui/label" (module) {
|
|
82
82
|
module.exports = require("./label.cjs");
|
|
83
83
|
},
|
|
84
84
|
"./layout" (module) {
|
|
@@ -138,7 +138,7 @@ var __webpack_modules__ = {
|
|
|
138
138
|
"./switch" (module) {
|
|
139
139
|
module.exports = require("./switch.cjs");
|
|
140
140
|
},
|
|
141
|
-
"
|
|
141
|
+
"@/components/ui/table" (module) {
|
|
142
142
|
module.exports = require("./table.cjs");
|
|
143
143
|
},
|
|
144
144
|
"./tabs" (module) {
|
|
@@ -276,7 +276,7 @@ var __webpack_exports__ = {};
|
|
|
276
276
|
"default"
|
|
277
277
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_calendar__rspack_import_9[__rspack_import_key];
|
|
278
278
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
279
|
-
var _card__rspack_import_10 = __webpack_require__("
|
|
279
|
+
var _card__rspack_import_10 = __webpack_require__("@/components/ui/card");
|
|
280
280
|
var __rspack_reexport = {};
|
|
281
281
|
for(const __rspack_import_key in _card__rspack_import_10)if ([
|
|
282
282
|
"TreeView",
|
|
@@ -290,7 +290,7 @@ var __webpack_exports__ = {};
|
|
|
290
290
|
"default"
|
|
291
291
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_checkbox__rspack_import_11[__rspack_import_key];
|
|
292
292
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
293
|
-
var _collapsible__rspack_import_12 = __webpack_require__("
|
|
293
|
+
var _collapsible__rspack_import_12 = __webpack_require__("@/components/ui/collapsible");
|
|
294
294
|
var __rspack_reexport = {};
|
|
295
295
|
for(const __rspack_import_key in _collapsible__rspack_import_12)if ([
|
|
296
296
|
"TreeView",
|
|
@@ -311,7 +311,7 @@ var __webpack_exports__ = {};
|
|
|
311
311
|
"default"
|
|
312
312
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_command__rspack_import_14[__rspack_import_key];
|
|
313
313
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
314
|
-
var _context_menu__rspack_import_15 = __webpack_require__("
|
|
314
|
+
var _context_menu__rspack_import_15 = __webpack_require__("@/components/ui/context-menu");
|
|
315
315
|
var __rspack_reexport = {};
|
|
316
316
|
for(const __rspack_import_key in _context_menu__rspack_import_15)if ([
|
|
317
317
|
"TreeView",
|
|
@@ -346,7 +346,7 @@ var __webpack_exports__ = {};
|
|
|
346
346
|
"default"
|
|
347
347
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_dialog__rspack_import_19[__rspack_import_key];
|
|
348
348
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
349
|
-
var _dropdown_menu__rspack_import_20 = __webpack_require__("
|
|
349
|
+
var _dropdown_menu__rspack_import_20 = __webpack_require__("@/components/ui/dropdown-menu");
|
|
350
350
|
var __rspack_reexport = {};
|
|
351
351
|
for(const __rspack_import_key in _dropdown_menu__rspack_import_20)if ([
|
|
352
352
|
"TreeView",
|
|
@@ -374,21 +374,21 @@ var __webpack_exports__ = {};
|
|
|
374
374
|
"default"
|
|
375
375
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_file_upload__rspack_import_23[__rspack_import_key];
|
|
376
376
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
377
|
-
var _hover_card__rspack_import_24 = __webpack_require__("
|
|
377
|
+
var _hover_card__rspack_import_24 = __webpack_require__("@/components/ui/hover-card");
|
|
378
378
|
var __rspack_reexport = {};
|
|
379
379
|
for(const __rspack_import_key in _hover_card__rspack_import_24)if ([
|
|
380
380
|
"TreeView",
|
|
381
381
|
"default"
|
|
382
382
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_hover_card__rspack_import_24[__rspack_import_key];
|
|
383
383
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
384
|
-
var _input__rspack_import_25 = __webpack_require__("
|
|
384
|
+
var _input__rspack_import_25 = __webpack_require__("@/components/ui/input");
|
|
385
385
|
var __rspack_reexport = {};
|
|
386
386
|
for(const __rspack_import_key in _input__rspack_import_25)if ([
|
|
387
387
|
"TreeView",
|
|
388
388
|
"default"
|
|
389
389
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_input__rspack_import_25[__rspack_import_key];
|
|
390
390
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
391
|
-
var _label__rspack_import_26 = __webpack_require__("
|
|
391
|
+
var _label__rspack_import_26 = __webpack_require__("@/components/ui/label");
|
|
392
392
|
var __rspack_reexport = {};
|
|
393
393
|
for(const __rspack_import_key in _label__rspack_import_26)if ([
|
|
394
394
|
"TreeView",
|
|
@@ -528,7 +528,7 @@ var __webpack_exports__ = {};
|
|
|
528
528
|
"default"
|
|
529
529
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_switch__rspack_import_45[__rspack_import_key];
|
|
530
530
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
531
|
-
var _table__rspack_import_46 = __webpack_require__("
|
|
531
|
+
var _table__rspack_import_46 = __webpack_require__("@/components/ui/table");
|
|
532
532
|
var __rspack_reexport = {};
|
|
533
533
|
for(const __rspack_import_key in _table__rspack_import_46)if ([
|
|
534
534
|
"TreeView",
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
apolloCoreDarkCodeMirror: ()=>apolloCoreDarkCodeMirror,
|
|
28
|
+
apolloCoreDarkHCCodeMirror: ()=>apolloCoreDarkHCCodeMirror,
|
|
29
|
+
apolloCoreLightCodeMirror: ()=>apolloCoreLightCodeMirror,
|
|
30
|
+
apolloCoreLightHCCodeMirror: ()=>apolloCoreLightHCCodeMirror,
|
|
31
|
+
apolloFutureDarkCodeMirror: ()=>apolloFutureDarkCodeMirror,
|
|
32
|
+
apolloFutureLightCodeMirror: ()=>apolloFutureLightCodeMirror
|
|
33
|
+
});
|
|
34
|
+
const apolloFutureDarkCodeMirror = {
|
|
35
|
+
syntax: {
|
|
36
|
+
rest: '#a1a1aa',
|
|
37
|
+
comment: '#52525b',
|
|
38
|
+
punctuation: '#71717a',
|
|
39
|
+
keyword: '#22d3ee',
|
|
40
|
+
string: '#34d399',
|
|
41
|
+
number: '#fbbf24',
|
|
42
|
+
literal: '#a78bfa',
|
|
43
|
+
operator: '#22d3ee',
|
|
44
|
+
meta: '#71717a'
|
|
45
|
+
},
|
|
46
|
+
ui: {
|
|
47
|
+
background: '#18181b',
|
|
48
|
+
foreground: '#a1a1aa',
|
|
49
|
+
cursor: '#22d3ee',
|
|
50
|
+
selection: '#3f3f4666',
|
|
51
|
+
lineHighlight: '#27272a80',
|
|
52
|
+
lineNumber: '#52525b',
|
|
53
|
+
lineNumberActive: '#a1a1aa',
|
|
54
|
+
indentGuide: '#3f3f46',
|
|
55
|
+
matchingBracket: '#22d3ee'
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const apolloFutureLightCodeMirror = {
|
|
59
|
+
syntax: {
|
|
60
|
+
rest: '#52525b',
|
|
61
|
+
comment: '#a1a1aa',
|
|
62
|
+
punctuation: '#71717a',
|
|
63
|
+
keyword: '#0e7490',
|
|
64
|
+
string: '#047857',
|
|
65
|
+
number: '#b45309',
|
|
66
|
+
literal: '#7c3aed',
|
|
67
|
+
operator: '#0e7490',
|
|
68
|
+
meta: '#71717a'
|
|
69
|
+
},
|
|
70
|
+
ui: {
|
|
71
|
+
background: '#f4f4f5',
|
|
72
|
+
foreground: '#52525b',
|
|
73
|
+
cursor: '#0891b2',
|
|
74
|
+
selection: '#d4d4d866',
|
|
75
|
+
lineHighlight: '#e4e4e780',
|
|
76
|
+
lineNumber: '#a1a1aa',
|
|
77
|
+
lineNumberActive: '#71717a',
|
|
78
|
+
indentGuide: '#d4d4d8',
|
|
79
|
+
matchingBracket: '#0891b2'
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const apolloCoreDarkCodeMirror = {
|
|
83
|
+
syntax: {
|
|
84
|
+
rest: '#cfd8dd',
|
|
85
|
+
comment: '#526069',
|
|
86
|
+
punctuation: '#8a97a0',
|
|
87
|
+
keyword: '#66adff',
|
|
88
|
+
string: '#f25a8c',
|
|
89
|
+
number: '#6ecdb6',
|
|
90
|
+
literal: '#dc80db',
|
|
91
|
+
operator: '#66adff',
|
|
92
|
+
meta: '#8a97a0'
|
|
93
|
+
},
|
|
94
|
+
ui: {
|
|
95
|
+
background: '#182027',
|
|
96
|
+
foreground: '#cfd8dd',
|
|
97
|
+
cursor: '#66adff',
|
|
98
|
+
selection: '#37465266',
|
|
99
|
+
lineHighlight: '#27313980',
|
|
100
|
+
lineNumber: '#526069',
|
|
101
|
+
lineNumberActive: '#8a97a0',
|
|
102
|
+
indentGuide: '#374652',
|
|
103
|
+
matchingBracket: '#66adff'
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const apolloCoreLightCodeMirror = {
|
|
107
|
+
syntax: {
|
|
108
|
+
rest: '#526069',
|
|
109
|
+
comment: '#a4b1b8',
|
|
110
|
+
punctuation: '#6b7882',
|
|
111
|
+
keyword: '#0067df',
|
|
112
|
+
string: '#d91153',
|
|
113
|
+
number: '#1e7f5a',
|
|
114
|
+
literal: '#b748b6',
|
|
115
|
+
operator: '#0067df',
|
|
116
|
+
meta: '#6b7882'
|
|
117
|
+
},
|
|
118
|
+
ui: {
|
|
119
|
+
background: '#ffffff',
|
|
120
|
+
foreground: '#526069',
|
|
121
|
+
cursor: '#0067df',
|
|
122
|
+
selection: '#e9f1fa',
|
|
123
|
+
lineHighlight: '#f4f5f780',
|
|
124
|
+
lineNumber: '#a4b1b8',
|
|
125
|
+
lineNumberActive: '#6b7882',
|
|
126
|
+
indentGuide: '#cfd8dd',
|
|
127
|
+
matchingBracket: '#0067df'
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
const apolloCoreDarkHCCodeMirror = {
|
|
131
|
+
syntax: {
|
|
132
|
+
rest: '#cfd8dd',
|
|
133
|
+
comment: '#526069',
|
|
134
|
+
punctuation: '#8a97a0',
|
|
135
|
+
keyword: '#badaff',
|
|
136
|
+
string: '#fd7da7',
|
|
137
|
+
number: '#6ecdb6',
|
|
138
|
+
literal: '#dc80db',
|
|
139
|
+
operator: '#badaff',
|
|
140
|
+
meta: '#8a97a0'
|
|
141
|
+
},
|
|
142
|
+
ui: {
|
|
143
|
+
background: '#182027',
|
|
144
|
+
foreground: '#cfd8dd',
|
|
145
|
+
cursor: '#badaff',
|
|
146
|
+
selection: '#37465266',
|
|
147
|
+
lineHighlight: '#27313980',
|
|
148
|
+
lineNumber: '#526069',
|
|
149
|
+
lineNumberActive: '#bbc7cd',
|
|
150
|
+
indentGuide: '#374652',
|
|
151
|
+
matchingBracket: '#badaff'
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
const apolloCoreLightHCCodeMirror = {
|
|
155
|
+
syntax: {
|
|
156
|
+
rest: '#374652',
|
|
157
|
+
comment: '#8a97a0',
|
|
158
|
+
punctuation: '#526069',
|
|
159
|
+
keyword: '#00489d',
|
|
160
|
+
string: '#a60e3f',
|
|
161
|
+
number: '#176245',
|
|
162
|
+
literal: '#8c338b',
|
|
163
|
+
operator: '#00489d',
|
|
164
|
+
meta: '#526069'
|
|
165
|
+
},
|
|
166
|
+
ui: {
|
|
167
|
+
background: '#ffffff',
|
|
168
|
+
foreground: '#374652',
|
|
169
|
+
cursor: '#00489d',
|
|
170
|
+
selection: '#e9f1fa',
|
|
171
|
+
lineHighlight: '#f4f5f780',
|
|
172
|
+
lineNumber: '#8a97a0',
|
|
173
|
+
lineNumberActive: '#526069',
|
|
174
|
+
indentGuide: '#cfd8dd',
|
|
175
|
+
matchingBracket: '#00489d'
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
exports.apolloCoreDarkCodeMirror = __webpack_exports__.apolloCoreDarkCodeMirror;
|
|
179
|
+
exports.apolloCoreDarkHCCodeMirror = __webpack_exports__.apolloCoreDarkHCCodeMirror;
|
|
180
|
+
exports.apolloCoreLightCodeMirror = __webpack_exports__.apolloCoreLightCodeMirror;
|
|
181
|
+
exports.apolloCoreLightHCCodeMirror = __webpack_exports__.apolloCoreLightHCCodeMirror;
|
|
182
|
+
exports.apolloFutureDarkCodeMirror = __webpack_exports__.apolloFutureDarkCodeMirror;
|
|
183
|
+
exports.apolloFutureLightCodeMirror = __webpack_exports__.apolloFutureLightCodeMirror;
|
|
184
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
185
|
+
"apolloCoreDarkCodeMirror",
|
|
186
|
+
"apolloCoreDarkHCCodeMirror",
|
|
187
|
+
"apolloCoreLightCodeMirror",
|
|
188
|
+
"apolloCoreLightHCCodeMirror",
|
|
189
|
+
"apolloFutureDarkCodeMirror",
|
|
190
|
+
"apolloFutureLightCodeMirror"
|
|
191
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
192
|
+
Object.defineProperty(exports, '__esModule', {
|
|
193
|
+
value: true
|
|
194
|
+
});
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Apollo CodeMirror v6 Theme Tokens — Future, Core, and Core HC variants.
|
|
3
|
+
*
|
|
4
|
+
* Plain color/style data objects for building CodeMirror v6 extensions.
|
|
5
|
+
* This file has NO imports from `@codemirror/*` — consumers wire these
|
|
6
|
+
* values into their own CodeMirror setup.
|
|
7
|
+
*
|
|
8
|
+
* -------------------------------------------------------------------------
|
|
9
|
+
* Usage Example
|
|
10
|
+
* -------------------------------------------------------------------------
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { EditorView } from '@codemirror/view';
|
|
14
|
+
* import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
|
15
|
+
* import { tags as t } from '@lezer/highlight';
|
|
16
|
+
* import { apolloFutureDarkCodeMirror } from '@uipath/apollo-wind/editor-themes';
|
|
17
|
+
*
|
|
18
|
+
* const { syntax, ui } = apolloFutureDarkCodeMirror;
|
|
19
|
+
*
|
|
20
|
+
* // 1. Base editor theme (cursor, selection, gutter, etc.)
|
|
21
|
+
* const apolloFutureDarkTheme = EditorView.theme(
|
|
22
|
+
* {
|
|
23
|
+
* '&': {
|
|
24
|
+
* backgroundColor: ui.background,
|
|
25
|
+
* color: ui.foreground,
|
|
26
|
+
* },
|
|
27
|
+
* '.cm-cursor': { borderLeftColor: ui.cursor },
|
|
28
|
+
* '&.cm-focused .cm-selectionBackground, .cm-selectionBackground': {
|
|
29
|
+
* backgroundColor: ui.selection,
|
|
30
|
+
* },
|
|
31
|
+
* '.cm-activeLine': { backgroundColor: ui.lineHighlight },
|
|
32
|
+
* '.cm-gutters': {
|
|
33
|
+
* backgroundColor: ui.background,
|
|
34
|
+
* borderRight: 'none',
|
|
35
|
+
* },
|
|
36
|
+
* '.cm-lineNumbers .cm-gutterElement': { color: ui.lineNumber },
|
|
37
|
+
* '.cm-activeLineGutter': { color: ui.lineNumberActive },
|
|
38
|
+
* '.cm-indentationMark': { borderLeft: `1px solid ${ui.indentGuide}` },
|
|
39
|
+
* '.cm-matchingBracket': { outline: `1px solid ${ui.matchingBracket}` },
|
|
40
|
+
* },
|
|
41
|
+
* { dark: true },
|
|
42
|
+
* );
|
|
43
|
+
*
|
|
44
|
+
* // 2. Syntax highlight style
|
|
45
|
+
* const apolloFutureDarkHighlight = HighlightStyle.define([
|
|
46
|
+
* { tag: t.comment, color: syntax.comment, fontStyle: 'italic' },
|
|
47
|
+
* { tag: t.punctuation, color: syntax.punctuation },
|
|
48
|
+
* { tag: [t.keyword, t.operator], color: syntax.keyword },
|
|
49
|
+
* { tag: [t.string, t.regexp], color: syntax.string },
|
|
50
|
+
* { tag: [t.number, t.integer], color: syntax.number },
|
|
51
|
+
* { tag: [t.bool, t.null, t.className, t.typeName], color: syntax.literal },
|
|
52
|
+
* { tag: [t.propertyName, t.attributeName], color: syntax.keyword },
|
|
53
|
+
* { tag: t.meta, color: syntax.meta },
|
|
54
|
+
* { tag: t.name, color: syntax.rest },
|
|
55
|
+
* ]);
|
|
56
|
+
*
|
|
57
|
+
* // 3. Combine into a single extension array
|
|
58
|
+
* export const apolloFutureDark = [
|
|
59
|
+
* apolloFutureDarkTheme,
|
|
60
|
+
* syntaxHighlighting(apolloFutureDarkHighlight),
|
|
61
|
+
* ];
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* Swap `apolloFutureDarkCodeMirror` for `apolloFutureLightCodeMirror` and
|
|
65
|
+
* pass `{ dark: false }` to `EditorView.theme` to get the light variant.
|
|
66
|
+
*/
|
|
67
|
+
export interface CodeMirrorSyntaxTokens {
|
|
68
|
+
/** Default text — unclassified identifiers, names */
|
|
69
|
+
rest: string;
|
|
70
|
+
/** Source comments */
|
|
71
|
+
comment: string;
|
|
72
|
+
/** Punctuation — brackets, delimiters, operators */
|
|
73
|
+
punctuation: string;
|
|
74
|
+
/** Language keywords (`if`, `return`, `const`, …) */
|
|
75
|
+
keyword: string;
|
|
76
|
+
/** String and template literals */
|
|
77
|
+
string: string;
|
|
78
|
+
/** Numeric literals */
|
|
79
|
+
number: string;
|
|
80
|
+
/** Booleans, `null`, `undefined`, class names, type names */
|
|
81
|
+
literal: string;
|
|
82
|
+
/** Operator symbols (`+`, `=>`, `&&`, …) — shares keyword color */
|
|
83
|
+
operator: string;
|
|
84
|
+
/** Directives, annotations, preprocessor meta */
|
|
85
|
+
meta: string;
|
|
86
|
+
}
|
|
87
|
+
export interface CodeMirrorUiTokens {
|
|
88
|
+
/** Editor panel background */
|
|
89
|
+
background: string;
|
|
90
|
+
/** Default text color */
|
|
91
|
+
foreground: string;
|
|
92
|
+
/** Text-insertion cursor */
|
|
93
|
+
cursor: string;
|
|
94
|
+
/** Selection highlight (semi-transparent) */
|
|
95
|
+
selection: string;
|
|
96
|
+
/** Active line background (semi-transparent) */
|
|
97
|
+
lineHighlight: string;
|
|
98
|
+
/** Gutter line number color */
|
|
99
|
+
lineNumber: string;
|
|
100
|
+
/** Gutter line number color for the active line */
|
|
101
|
+
lineNumberActive: string;
|
|
102
|
+
/** Indentation guide line color */
|
|
103
|
+
indentGuide: string;
|
|
104
|
+
/** Matching bracket outline */
|
|
105
|
+
matchingBracket: string;
|
|
106
|
+
}
|
|
107
|
+
export interface ApolloCodeMirrorTheme {
|
|
108
|
+
syntax: CodeMirrorSyntaxTokens;
|
|
109
|
+
ui: CodeMirrorUiTokens;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Apollo Future dark theme tokens for CodeMirror v6.
|
|
113
|
+
*
|
|
114
|
+
* Base palette: zinc-900 surfaces, cyan accent, muted zinc foregrounds.
|
|
115
|
+
* Syntax colors follow the `--code-*` custom properties from the design system.
|
|
116
|
+
*/
|
|
117
|
+
export declare const apolloFutureDarkCodeMirror: ApolloCodeMirrorTheme;
|
|
118
|
+
/**
|
|
119
|
+
* Apollo Future light theme tokens for CodeMirror v6.
|
|
120
|
+
*
|
|
121
|
+
* Base palette: zinc-100 surfaces, cyan-700 accent, muted zinc foregrounds.
|
|
122
|
+
* Syntax colors follow the `--code-*` custom properties from the design system.
|
|
123
|
+
*/
|
|
124
|
+
export declare const apolloFutureLightCodeMirror: ApolloCodeMirrorTheme;
|
|
125
|
+
export declare const apolloCoreDarkCodeMirror: ApolloCodeMirrorTheme;
|
|
126
|
+
export declare const apolloCoreLightCodeMirror: ApolloCodeMirrorTheme;
|
|
127
|
+
export declare const apolloCoreDarkHCCodeMirror: ApolloCodeMirrorTheme;
|
|
128
|
+
export declare const apolloCoreLightHCCodeMirror: ApolloCodeMirrorTheme;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
const apolloFutureDarkCodeMirror = {
|
|
2
|
+
syntax: {
|
|
3
|
+
rest: '#a1a1aa',
|
|
4
|
+
comment: '#52525b',
|
|
5
|
+
punctuation: '#71717a',
|
|
6
|
+
keyword: '#22d3ee',
|
|
7
|
+
string: '#34d399',
|
|
8
|
+
number: '#fbbf24',
|
|
9
|
+
literal: '#a78bfa',
|
|
10
|
+
operator: '#22d3ee',
|
|
11
|
+
meta: '#71717a'
|
|
12
|
+
},
|
|
13
|
+
ui: {
|
|
14
|
+
background: '#18181b',
|
|
15
|
+
foreground: '#a1a1aa',
|
|
16
|
+
cursor: '#22d3ee',
|
|
17
|
+
selection: '#3f3f4666',
|
|
18
|
+
lineHighlight: '#27272a80',
|
|
19
|
+
lineNumber: '#52525b',
|
|
20
|
+
lineNumberActive: '#a1a1aa',
|
|
21
|
+
indentGuide: '#3f3f46',
|
|
22
|
+
matchingBracket: '#22d3ee'
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const apolloFutureLightCodeMirror = {
|
|
26
|
+
syntax: {
|
|
27
|
+
rest: '#52525b',
|
|
28
|
+
comment: '#a1a1aa',
|
|
29
|
+
punctuation: '#71717a',
|
|
30
|
+
keyword: '#0e7490',
|
|
31
|
+
string: '#047857',
|
|
32
|
+
number: '#b45309',
|
|
33
|
+
literal: '#7c3aed',
|
|
34
|
+
operator: '#0e7490',
|
|
35
|
+
meta: '#71717a'
|
|
36
|
+
},
|
|
37
|
+
ui: {
|
|
38
|
+
background: '#f4f4f5',
|
|
39
|
+
foreground: '#52525b',
|
|
40
|
+
cursor: '#0891b2',
|
|
41
|
+
selection: '#d4d4d866',
|
|
42
|
+
lineHighlight: '#e4e4e780',
|
|
43
|
+
lineNumber: '#a1a1aa',
|
|
44
|
+
lineNumberActive: '#71717a',
|
|
45
|
+
indentGuide: '#d4d4d8',
|
|
46
|
+
matchingBracket: '#0891b2'
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const apolloCoreDarkCodeMirror = {
|
|
50
|
+
syntax: {
|
|
51
|
+
rest: '#cfd8dd',
|
|
52
|
+
comment: '#526069',
|
|
53
|
+
punctuation: '#8a97a0',
|
|
54
|
+
keyword: '#66adff',
|
|
55
|
+
string: '#f25a8c',
|
|
56
|
+
number: '#6ecdb6',
|
|
57
|
+
literal: '#dc80db',
|
|
58
|
+
operator: '#66adff',
|
|
59
|
+
meta: '#8a97a0'
|
|
60
|
+
},
|
|
61
|
+
ui: {
|
|
62
|
+
background: '#182027',
|
|
63
|
+
foreground: '#cfd8dd',
|
|
64
|
+
cursor: '#66adff',
|
|
65
|
+
selection: '#37465266',
|
|
66
|
+
lineHighlight: '#27313980',
|
|
67
|
+
lineNumber: '#526069',
|
|
68
|
+
lineNumberActive: '#8a97a0',
|
|
69
|
+
indentGuide: '#374652',
|
|
70
|
+
matchingBracket: '#66adff'
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const apolloCoreLightCodeMirror = {
|
|
74
|
+
syntax: {
|
|
75
|
+
rest: '#526069',
|
|
76
|
+
comment: '#a4b1b8',
|
|
77
|
+
punctuation: '#6b7882',
|
|
78
|
+
keyword: '#0067df',
|
|
79
|
+
string: '#d91153',
|
|
80
|
+
number: '#1e7f5a',
|
|
81
|
+
literal: '#b748b6',
|
|
82
|
+
operator: '#0067df',
|
|
83
|
+
meta: '#6b7882'
|
|
84
|
+
},
|
|
85
|
+
ui: {
|
|
86
|
+
background: '#ffffff',
|
|
87
|
+
foreground: '#526069',
|
|
88
|
+
cursor: '#0067df',
|
|
89
|
+
selection: '#e9f1fa',
|
|
90
|
+
lineHighlight: '#f4f5f780',
|
|
91
|
+
lineNumber: '#a4b1b8',
|
|
92
|
+
lineNumberActive: '#6b7882',
|
|
93
|
+
indentGuide: '#cfd8dd',
|
|
94
|
+
matchingBracket: '#0067df'
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
const apolloCoreDarkHCCodeMirror = {
|
|
98
|
+
syntax: {
|
|
99
|
+
rest: '#cfd8dd',
|
|
100
|
+
comment: '#526069',
|
|
101
|
+
punctuation: '#8a97a0',
|
|
102
|
+
keyword: '#badaff',
|
|
103
|
+
string: '#fd7da7',
|
|
104
|
+
number: '#6ecdb6',
|
|
105
|
+
literal: '#dc80db',
|
|
106
|
+
operator: '#badaff',
|
|
107
|
+
meta: '#8a97a0'
|
|
108
|
+
},
|
|
109
|
+
ui: {
|
|
110
|
+
background: '#182027',
|
|
111
|
+
foreground: '#cfd8dd',
|
|
112
|
+
cursor: '#badaff',
|
|
113
|
+
selection: '#37465266',
|
|
114
|
+
lineHighlight: '#27313980',
|
|
115
|
+
lineNumber: '#526069',
|
|
116
|
+
lineNumberActive: '#bbc7cd',
|
|
117
|
+
indentGuide: '#374652',
|
|
118
|
+
matchingBracket: '#badaff'
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
const apolloCoreLightHCCodeMirror = {
|
|
122
|
+
syntax: {
|
|
123
|
+
rest: '#374652',
|
|
124
|
+
comment: '#8a97a0',
|
|
125
|
+
punctuation: '#526069',
|
|
126
|
+
keyword: '#00489d',
|
|
127
|
+
string: '#a60e3f',
|
|
128
|
+
number: '#176245',
|
|
129
|
+
literal: '#8c338b',
|
|
130
|
+
operator: '#00489d',
|
|
131
|
+
meta: '#526069'
|
|
132
|
+
},
|
|
133
|
+
ui: {
|
|
134
|
+
background: '#ffffff',
|
|
135
|
+
foreground: '#374652',
|
|
136
|
+
cursor: '#00489d',
|
|
137
|
+
selection: '#e9f1fa',
|
|
138
|
+
lineHighlight: '#f4f5f780',
|
|
139
|
+
lineNumber: '#8a97a0',
|
|
140
|
+
lineNumberActive: '#526069',
|
|
141
|
+
indentGuide: '#cfd8dd',
|
|
142
|
+
matchingBracket: '#00489d'
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
export { apolloCoreDarkCodeMirror, apolloCoreDarkHCCodeMirror, apolloCoreLightCodeMirror, apolloCoreLightHCCodeMirror, apolloFutureDarkCodeMirror, apolloFutureLightCodeMirror };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
apolloCoreDarkHCCodeMirror: ()=>external_codemirror_cjs_namespaceObject.apolloCoreDarkHCCodeMirror,
|
|
28
|
+
apolloCoreDarkHCMonaco: ()=>external_monaco_cjs_namespaceObject.apolloCoreDarkHCMonaco,
|
|
29
|
+
apolloCoreLightHCMonaco: ()=>external_monaco_cjs_namespaceObject.apolloCoreLightHCMonaco,
|
|
30
|
+
apolloCoreDarkCodeMirror: ()=>external_codemirror_cjs_namespaceObject.apolloCoreDarkCodeMirror,
|
|
31
|
+
apolloCoreLightHCCodeMirror: ()=>external_codemirror_cjs_namespaceObject.apolloCoreLightHCCodeMirror,
|
|
32
|
+
apolloFutureDarkMonaco: ()=>external_monaco_cjs_namespaceObject.apolloFutureDarkMonaco,
|
|
33
|
+
apolloCoreLightCodeMirror: ()=>external_codemirror_cjs_namespaceObject.apolloCoreLightCodeMirror,
|
|
34
|
+
apolloFutureDarkCodeMirror: ()=>external_codemirror_cjs_namespaceObject.apolloFutureDarkCodeMirror,
|
|
35
|
+
apolloCoreDarkMonaco: ()=>external_monaco_cjs_namespaceObject.apolloCoreDarkMonaco,
|
|
36
|
+
apolloCoreLightMonaco: ()=>external_monaco_cjs_namespaceObject.apolloCoreLightMonaco,
|
|
37
|
+
apolloFutureLightCodeMirror: ()=>external_codemirror_cjs_namespaceObject.apolloFutureLightCodeMirror,
|
|
38
|
+
apolloFutureLightMonaco: ()=>external_monaco_cjs_namespaceObject.apolloFutureLightMonaco
|
|
39
|
+
});
|
|
40
|
+
const external_codemirror_cjs_namespaceObject = require("./codemirror.cjs");
|
|
41
|
+
const external_monaco_cjs_namespaceObject = require("./monaco.cjs");
|
|
42
|
+
exports.apolloCoreDarkCodeMirror = __webpack_exports__.apolloCoreDarkCodeMirror;
|
|
43
|
+
exports.apolloCoreDarkHCCodeMirror = __webpack_exports__.apolloCoreDarkHCCodeMirror;
|
|
44
|
+
exports.apolloCoreDarkHCMonaco = __webpack_exports__.apolloCoreDarkHCMonaco;
|
|
45
|
+
exports.apolloCoreDarkMonaco = __webpack_exports__.apolloCoreDarkMonaco;
|
|
46
|
+
exports.apolloCoreLightCodeMirror = __webpack_exports__.apolloCoreLightCodeMirror;
|
|
47
|
+
exports.apolloCoreLightHCCodeMirror = __webpack_exports__.apolloCoreLightHCCodeMirror;
|
|
48
|
+
exports.apolloCoreLightHCMonaco = __webpack_exports__.apolloCoreLightHCMonaco;
|
|
49
|
+
exports.apolloCoreLightMonaco = __webpack_exports__.apolloCoreLightMonaco;
|
|
50
|
+
exports.apolloFutureDarkCodeMirror = __webpack_exports__.apolloFutureDarkCodeMirror;
|
|
51
|
+
exports.apolloFutureDarkMonaco = __webpack_exports__.apolloFutureDarkMonaco;
|
|
52
|
+
exports.apolloFutureLightCodeMirror = __webpack_exports__.apolloFutureLightCodeMirror;
|
|
53
|
+
exports.apolloFutureLightMonaco = __webpack_exports__.apolloFutureLightMonaco;
|
|
54
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
55
|
+
"apolloCoreDarkCodeMirror",
|
|
56
|
+
"apolloCoreDarkHCCodeMirror",
|
|
57
|
+
"apolloCoreDarkHCMonaco",
|
|
58
|
+
"apolloCoreDarkMonaco",
|
|
59
|
+
"apolloCoreLightCodeMirror",
|
|
60
|
+
"apolloCoreLightHCCodeMirror",
|
|
61
|
+
"apolloCoreLightHCMonaco",
|
|
62
|
+
"apolloCoreLightMonaco",
|
|
63
|
+
"apolloFutureDarkCodeMirror",
|
|
64
|
+
"apolloFutureDarkMonaco",
|
|
65
|
+
"apolloFutureLightCodeMirror",
|
|
66
|
+
"apolloFutureLightMonaco"
|
|
67
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
68
|
+
Object.defineProperty(exports, '__esModule', {
|
|
69
|
+
value: true
|
|
70
|
+
});
|