@airalogy/aimd-recorder 1.14.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/README.md +240 -0
- package/README.zh-CN.md +224 -0
- package/dist/AimdCodeField-DC3DPvgc.js +172 -0
- package/dist/AimdDnaSequenceField-__jdnFS9.js +59466 -0
- package/dist/AimdEditor.vue_vue_type_style_index_0_lang-Bq79rKNw.js +28370 -0
- package/dist/AimdMarkdownField-98ImHGbc.js +66 -0
- package/dist/AimdMarkdownNoteField-CuUJZkgT.js +185 -0
- package/dist/_.contribution-IP0cDNhs.js +38 -0
- package/dist/_commonjsHelpers-CZXJ37nu.js +40 -0
- package/dist/abap-Bs8kvjsq.js +1398 -0
- package/dist/aimd-recorder.css +1 -0
- package/dist/apex-Dspwrl5m.js +326 -0
- package/dist/assets/css.worker-Dmf38jDD.js +79 -0
- package/dist/assets/editor.worker-CpuX8TSY.js +12 -0
- package/dist/assets/html.worker-DotaEs7v.js +456 -0
- package/dist/assets/json.worker-B4VHhH6h.js +44 -0
- package/dist/assets/ts.worker-sl17zBDo.js +51316 -0
- package/dist/azcli-k1BiOau1.js +68 -0
- package/dist/bat-BIP72KWc.js +100 -0
- package/dist/bicep-VhQeYhS3.js +102 -0
- package/dist/cameligo-DnuAXtHg.js +174 -0
- package/dist/clojure-BAuDPsal.js +761 -0
- package/dist/coffee-BV06qSnj.js +232 -0
- package/dist/components.js +3595 -0
- package/dist/composables.js +72 -0
- package/dist/cpp-Cz8Jeyrf.js +389 -0
- package/dist/csharp-F6hhlXFb.js +326 -0
- package/dist/csp-KzlEHCyI.js +53 -0
- package/dist/css-e4FKntZ3.js +187 -0
- package/dist/cssMode-uz9U6SUU.js +1571 -0
- package/dist/cypher-CpvDGKRr.js +263 -0
- package/dist/dart-DdHeFWR0.js +281 -0
- package/dist/dockerfile-aoNXDcio.js +130 -0
- package/dist/ecl-C4Q0DYuA.js +456 -0
- package/dist/editor.api-CgD9w0gG.js +77091 -0
- package/dist/editor.main-Du02abDl.js +33783 -0
- package/dist/elixir-C9X42b0T.js +569 -0
- package/dist/flow9-Bff42pfB.js +142 -0
- package/dist/freemarker2-DFLX4iQ-.js +989 -0
- package/dist/fsharp-C6vPAsHG.js +217 -0
- package/dist/go-DEr8zx9f.js +218 -0
- package/dist/graphql-BiNBBRFh.js +151 -0
- package/dist/handlebars-aiZbIuWY.js +419 -0
- package/dist/hcl-2T9lKuFg.js +183 -0
- package/dist/html-phzTMObN.js +308 -0
- package/dist/htmlMode-BF7wMi3N.js +1581 -0
- package/dist/index.js +89 -0
- package/dist/ini-CZGtssYM.js +71 -0
- package/dist/ini.contribution-DyWtiacL.js +8 -0
- package/dist/java-B260NeH3.js +232 -0
- package/dist/javascript-BKKOItMi.js +70 -0
- package/dist/jsonMode-CDYK4B5l.js +1996 -0
- package/dist/julia-kuNLM9c5.js +511 -0
- package/dist/kotlin-Bz6kAefA.js +253 -0
- package/dist/less-AZUtS89I.js +162 -0
- package/dist/lexon-BcmgnyRb.js +157 -0
- package/dist/liquid-B2eRz5SA.js +240 -0
- package/dist/lua-Dz1RbATg.js +162 -0
- package/dist/m3-CIMooLFn.js +210 -0
- package/dist/markdown-C1BsCK9P.js +229 -0
- package/dist/markdown.contribution-DYYk6zUU.js +7 -0
- package/dist/mdx-BfV1HDRG.js +165 -0
- package/dist/mips-BovsnfLQ.js +198 -0
- package/dist/monaco.contribution-C-bQhUTI.js +114 -0
- package/dist/monaco.contribution-CCVvl3Jx.js +72 -0
- package/dist/monaco.contribution-Col-f0XR.js +164 -0
- package/dist/monaco.contribution-b5xkgQ-s.js +112 -0
- package/dist/msdax-CiRB2ZB-.js +375 -0
- package/dist/mysql-BwdpPE19.js +878 -0
- package/dist/objective-c-D4nfHfso.js +183 -0
- package/dist/pascal--j5-PYtz.js +251 -0
- package/dist/pascaligo-C7TcJxNL.js +164 -0
- package/dist/perl-BzEWqUb5.js +626 -0
- package/dist/pgsql-B_KZ0mGX.js +851 -0
- package/dist/php-A19QHzQV.js +500 -0
- package/dist/pla-COeKY1hA.js +137 -0
- package/dist/postiats-BfMp7zJL.js +907 -0
- package/dist/powerquery-B0TS_5Gb.js +890 -0
- package/dist/powershell-5jSbKdYB.js +239 -0
- package/dist/protobuf-YgnOutn3.js +420 -0
- package/dist/pug-DLej6kn5.js +402 -0
- package/dist/python-CQrZx9mR.js +301 -0
- package/dist/python.contribution-CcKs2Ktm.js +8 -0
- package/dist/qsharp-AhjqtSHB.js +301 -0
- package/dist/r-D-F4P80w.js +243 -0
- package/dist/razor-DWmpHMcx.js +550 -0
- package/dist/redis-hwwIlMnV.js +302 -0
- package/dist/redshift-Bcm_kjEG.js +809 -0
- package/dist/restructuredtext-CrdzfPP-.js +174 -0
- package/dist/ruby-QC2UNm1s.js +511 -0
- package/dist/rust-5aqiQ3L5.js +343 -0
- package/dist/sb-B1g1ZfLJ.js +115 -0
- package/dist/scala-C2U4R5Gb.js +370 -0
- package/dist/scheme-DeFRbslr.js +108 -0
- package/dist/scss-RSTCiCmI.js +262 -0
- package/dist/shell-BpF-iNu8.js +221 -0
- package/dist/shell.contribution-B80NZ3iO.js +7 -0
- package/dist/solidity-C00r2mbQ.js +1367 -0
- package/dist/sophia-DVW5ZKDB.js +199 -0
- package/dist/sparql-B0nmpxeX.js +201 -0
- package/dist/sql-CJwKPERn.js +853 -0
- package/dist/sql.contribution-DQy36aE5.js +7 -0
- package/dist/st-DPlKG5DT.js +416 -0
- package/dist/swift-YZBAbVHV.js +309 -0
- package/dist/systemverilog-CDQSaH63.js +576 -0
- package/dist/tcl-Dlu8sp6Q.js +232 -0
- package/dist/tsMode-Bh-v12OL.js +887 -0
- package/dist/twig-C5TO7-kw.js +392 -0
- package/dist/typescript-c7y6IZVP.js +343 -0
- package/dist/typespec-BsmjDEu7.js +117 -0
- package/dist/useFieldRendering-BIqeE3qo.js +6083 -0
- package/dist/vb-ChHvIDrk.js +372 -0
- package/dist/wgsl-XEp1ju8c.js +439 -0
- package/dist/xml-MAEprTnF.js +95 -0
- package/dist/xml.contribution-XMOaon8i.js +27 -0
- package/dist/yaml-C1p8rXG7.js +206 -0
- package/dist/yaml.contribution-DRRVhJmJ.js +8 -0
- package/package.json +88 -0
- package/src/__tests__/client-assigner.test.ts +341 -0
- package/src/__tests__/code-types.test.ts +30 -0
- package/src/__tests__/markdown-field.test.ts +34 -0
- package/src/__tests__/markdown-note-field.test.ts +135 -0
- package/src/__tests__/quiz-recorder.test.ts +195 -0
- package/src/__tests__/recorder-editor-content-sync.test.ts +172 -0
- package/src/__tests__/recorder-editor.test.ts +143 -0
- package/src/__tests__/recorder-render.test.ts +57 -0
- package/src/__tests__/recorder-wysiwyg-field-host.test.ts +33 -0
- package/src/__tests__/step-field.test.ts +270 -0
- package/src/__tests__/type-plugins.test.ts +59 -0
- package/src/__tests__/var-field-render.test.ts +26 -0
- package/src/client-assigner.ts +269 -0
- package/src/code-types.ts +94 -0
- package/src/components/AimdCodeField.vue +228 -0
- package/src/components/AimdDnaSequenceField.vue +983 -0
- package/src/components/AimdMarkdownField.vue +168 -0
- package/src/components/AimdMarkdownNoteField.vue +457 -0
- package/src/components/AimdQuizRecorder.vue +792 -0
- package/src/components/AimdRecorder.vue +1959 -0
- package/src/components/AimdRecorderEditor.vue +2281 -0
- package/src/components/AimdRecorderWysiwygFieldHost.vue +93 -0
- package/src/components/AimdRecorderWysiwygSurface.vue +487 -0
- package/src/components/AimdSeqVizViewer.vue +122 -0
- package/src/components/AimdStepCheckField.vue +453 -0
- package/src/components/AimdVarField.vue +213 -0
- package/src/components/AimdVarTableField.vue +516 -0
- package/src/components/DnaAnnotationEditor.vue +477 -0
- package/src/components/DnaSequenceEditor.vue +44 -0
- package/src/components/DnaSequenceToolbar.vue +98 -0
- package/src/components/DnaSequenceViewer.vue +162 -0
- package/src/components/index.ts +21 -0
- package/src/components/recorderMilkdownPlugin.ts +632 -0
- package/src/composables/__tests__/useDnaSequence.test.ts +467 -0
- package/src/composables/__tests__/useFieldAdapters.test.ts +115 -0
- package/src/composables/__tests__/useFocusManagement.test.ts +66 -0
- package/src/composables/__tests__/useRecordState.test.ts +586 -0
- package/src/composables/__tests__/useStepTimers.test.ts +64 -0
- package/src/composables/__tests__/useVarHelpers.test.ts +424 -0
- package/src/composables/__tests__/workbenchFieldEditing.test.ts +97 -0
- package/src/composables/index.ts +94 -0
- package/src/composables/useClientAssignerRunner.ts +74 -0
- package/src/composables/useDnaSequence.ts +400 -0
- package/src/composables/useDnaSequenceField.ts +316 -0
- package/src/composables/useFieldAdapters.ts +61 -0
- package/src/composables/useFieldRendering.ts +269 -0
- package/src/composables/useFocusManagement.ts +144 -0
- package/src/composables/useRecordState.ts +429 -0
- package/src/composables/useStepTimers.ts +243 -0
- package/src/composables/useVarHelpers.ts +545 -0
- package/src/composables/useVarTableDragDrop.ts +236 -0
- package/src/composables/workbenchFieldEditing.ts +705 -0
- package/src/css.d.ts +9 -0
- package/src/index.ts +65 -0
- package/src/locales.ts +559 -0
- package/src/monaco-code.ts +75 -0
- package/src/styles/aimd.css +994 -0
- package/src/type-plugins.ts +132 -0
- package/src/type-utils.ts +3 -0
- package/src/types.ts +191 -0
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
var e = {
|
|
2
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
3
|
+
comments: {
|
|
4
|
+
blockComment: ["###", "###"],
|
|
5
|
+
lineComment: "#"
|
|
6
|
+
},
|
|
7
|
+
brackets: [
|
|
8
|
+
["{", "}"],
|
|
9
|
+
["[", "]"],
|
|
10
|
+
["(", ")"]
|
|
11
|
+
],
|
|
12
|
+
autoClosingPairs: [
|
|
13
|
+
{ open: "{", close: "}" },
|
|
14
|
+
{ open: "[", close: "]" },
|
|
15
|
+
{ open: "(", close: ")" },
|
|
16
|
+
{ open: '"', close: '"' },
|
|
17
|
+
{ open: "'", close: "'" }
|
|
18
|
+
],
|
|
19
|
+
surroundingPairs: [
|
|
20
|
+
{ open: "{", close: "}" },
|
|
21
|
+
{ open: "[", close: "]" },
|
|
22
|
+
{ open: "(", close: ")" },
|
|
23
|
+
{ open: '"', close: '"' },
|
|
24
|
+
{ open: "'", close: "'" }
|
|
25
|
+
],
|
|
26
|
+
folding: {
|
|
27
|
+
markers: {
|
|
28
|
+
start: new RegExp("^\\s*#region\\b"),
|
|
29
|
+
end: new RegExp("^\\s*#endregion\\b")
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}, r = {
|
|
33
|
+
defaultToken: "",
|
|
34
|
+
ignoreCase: !0,
|
|
35
|
+
tokenPostfix: ".coffee",
|
|
36
|
+
brackets: [
|
|
37
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
38
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
39
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
40
|
+
],
|
|
41
|
+
regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,
|
|
42
|
+
keywords: [
|
|
43
|
+
"and",
|
|
44
|
+
"or",
|
|
45
|
+
"is",
|
|
46
|
+
"isnt",
|
|
47
|
+
"not",
|
|
48
|
+
"on",
|
|
49
|
+
"yes",
|
|
50
|
+
"@",
|
|
51
|
+
"no",
|
|
52
|
+
"off",
|
|
53
|
+
"true",
|
|
54
|
+
"false",
|
|
55
|
+
"null",
|
|
56
|
+
"this",
|
|
57
|
+
"new",
|
|
58
|
+
"delete",
|
|
59
|
+
"typeof",
|
|
60
|
+
"in",
|
|
61
|
+
"instanceof",
|
|
62
|
+
"return",
|
|
63
|
+
"throw",
|
|
64
|
+
"break",
|
|
65
|
+
"continue",
|
|
66
|
+
"debugger",
|
|
67
|
+
"if",
|
|
68
|
+
"else",
|
|
69
|
+
"switch",
|
|
70
|
+
"for",
|
|
71
|
+
"while",
|
|
72
|
+
"do",
|
|
73
|
+
"try",
|
|
74
|
+
"catch",
|
|
75
|
+
"finally",
|
|
76
|
+
"class",
|
|
77
|
+
"extends",
|
|
78
|
+
"super",
|
|
79
|
+
"undefined",
|
|
80
|
+
"then",
|
|
81
|
+
"unless",
|
|
82
|
+
"until",
|
|
83
|
+
"loop",
|
|
84
|
+
"of",
|
|
85
|
+
"by",
|
|
86
|
+
"when"
|
|
87
|
+
],
|
|
88
|
+
// we include these common regular expressions
|
|
89
|
+
symbols: /[=><!~?&%|+\-*\/\^\.,\:]+/,
|
|
90
|
+
escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
91
|
+
// The main tokenizer for our languages
|
|
92
|
+
tokenizer: {
|
|
93
|
+
root: [
|
|
94
|
+
// identifiers and keywords
|
|
95
|
+
[/\@[a-zA-Z_]\w*/, "variable.predefined"],
|
|
96
|
+
[
|
|
97
|
+
/[a-zA-Z_]\w*/,
|
|
98
|
+
{
|
|
99
|
+
cases: {
|
|
100
|
+
this: "variable.predefined",
|
|
101
|
+
"@keywords": { token: "keyword.$0" },
|
|
102
|
+
"@default": ""
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
// whitespace
|
|
107
|
+
[/[ \t\r\n]+/, ""],
|
|
108
|
+
// Comments
|
|
109
|
+
[/###/, "comment", "@comment"],
|
|
110
|
+
[/#.*$/, "comment"],
|
|
111
|
+
// regular expressions
|
|
112
|
+
["///", { token: "regexp", next: "@hereregexp" }],
|
|
113
|
+
[/^(\s*)(@regEx)/, ["", "regexp"]],
|
|
114
|
+
[/(\()(\s*)(@regEx)/, ["@brackets", "", "regexp"]],
|
|
115
|
+
[/(\,)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
|
116
|
+
[/(\=)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
|
117
|
+
[/(\:)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
|
118
|
+
[/(\[)(\s*)(@regEx)/, ["@brackets", "", "regexp"]],
|
|
119
|
+
[/(\!)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
|
120
|
+
[/(\&)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
|
121
|
+
[/(\|)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
|
122
|
+
[/(\?)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
|
123
|
+
[/(\{)(\s*)(@regEx)/, ["@brackets", "", "regexp"]],
|
|
124
|
+
[/(\;)(\s*)(@regEx)/, ["", "", "regexp"]],
|
|
125
|
+
// delimiters
|
|
126
|
+
[
|
|
127
|
+
/}/,
|
|
128
|
+
{
|
|
129
|
+
cases: {
|
|
130
|
+
"$S2==interpolatedstring": {
|
|
131
|
+
token: "string",
|
|
132
|
+
next: "@pop"
|
|
133
|
+
},
|
|
134
|
+
"@default": "@brackets"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
139
|
+
[/@symbols/, "delimiter"],
|
|
140
|
+
// numbers
|
|
141
|
+
[/\d+[eE]([\-+]?\d+)?/, "number.float"],
|
|
142
|
+
[/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
143
|
+
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
|
144
|
+
[/0[0-7]+(?!\d)/, "number.octal"],
|
|
145
|
+
[/\d+/, "number"],
|
|
146
|
+
// delimiter: after number because of .\d floats
|
|
147
|
+
[/[,.]/, "delimiter"],
|
|
148
|
+
// strings:
|
|
149
|
+
[/"""/, "string", '@herestring."""'],
|
|
150
|
+
[/'''/, "string", "@herestring.'''"],
|
|
151
|
+
[
|
|
152
|
+
/"/,
|
|
153
|
+
{
|
|
154
|
+
cases: {
|
|
155
|
+
"@eos": "string",
|
|
156
|
+
"@default": { token: "string", next: '@string."' }
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
[
|
|
161
|
+
/'/,
|
|
162
|
+
{
|
|
163
|
+
cases: {
|
|
164
|
+
"@eos": "string",
|
|
165
|
+
"@default": { token: "string", next: "@string.'" }
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
],
|
|
170
|
+
string: [
|
|
171
|
+
[/[^"'\#\\]+/, "string"],
|
|
172
|
+
[/@escapes/, "string.escape"],
|
|
173
|
+
[/\./, "string.escape.invalid"],
|
|
174
|
+
[/\./, "string.escape.invalid"],
|
|
175
|
+
[
|
|
176
|
+
/#{/,
|
|
177
|
+
{
|
|
178
|
+
cases: {
|
|
179
|
+
'$S2=="': {
|
|
180
|
+
token: "string",
|
|
181
|
+
next: "root.interpolatedstring"
|
|
182
|
+
},
|
|
183
|
+
"@default": "string"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
[
|
|
188
|
+
/["']/,
|
|
189
|
+
{
|
|
190
|
+
cases: {
|
|
191
|
+
"$#==$S2": { token: "string", next: "@pop" },
|
|
192
|
+
"@default": "string"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
[/#/, "string"]
|
|
197
|
+
],
|
|
198
|
+
herestring: [
|
|
199
|
+
[
|
|
200
|
+
/("""|''')/,
|
|
201
|
+
{
|
|
202
|
+
cases: {
|
|
203
|
+
"$1==$S2": { token: "string", next: "@pop" },
|
|
204
|
+
"@default": "string"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
[/[^#\\'"]+/, "string"],
|
|
209
|
+
[/['"]+/, "string"],
|
|
210
|
+
[/@escapes/, "string.escape"],
|
|
211
|
+
[/\./, "string.escape.invalid"],
|
|
212
|
+
[/#{/, { token: "string.quote", next: "root.interpolatedstring" }],
|
|
213
|
+
[/#/, "string"]
|
|
214
|
+
],
|
|
215
|
+
comment: [
|
|
216
|
+
[/[^#]+/, "comment"],
|
|
217
|
+
[/###/, "comment", "@pop"],
|
|
218
|
+
[/#/, "comment"]
|
|
219
|
+
],
|
|
220
|
+
hereregexp: [
|
|
221
|
+
[/[^\\\/#]+/, "regexp"],
|
|
222
|
+
[/\\./, "regexp"],
|
|
223
|
+
[/#.*$/, "comment"],
|
|
224
|
+
["///[igm]*", { token: "regexp", next: "@pop" }],
|
|
225
|
+
[/\//, "regexp"]
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
export {
|
|
230
|
+
e as conf,
|
|
231
|
+
r as language
|
|
232
|
+
};
|