@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.
Files changed (178) hide show
  1. package/README.md +240 -0
  2. package/README.zh-CN.md +224 -0
  3. package/dist/AimdCodeField-DC3DPvgc.js +172 -0
  4. package/dist/AimdDnaSequenceField-__jdnFS9.js +59466 -0
  5. package/dist/AimdEditor.vue_vue_type_style_index_0_lang-Bq79rKNw.js +28370 -0
  6. package/dist/AimdMarkdownField-98ImHGbc.js +66 -0
  7. package/dist/AimdMarkdownNoteField-CuUJZkgT.js +185 -0
  8. package/dist/_.contribution-IP0cDNhs.js +38 -0
  9. package/dist/_commonjsHelpers-CZXJ37nu.js +40 -0
  10. package/dist/abap-Bs8kvjsq.js +1398 -0
  11. package/dist/aimd-recorder.css +1 -0
  12. package/dist/apex-Dspwrl5m.js +326 -0
  13. package/dist/assets/css.worker-Dmf38jDD.js +79 -0
  14. package/dist/assets/editor.worker-CpuX8TSY.js +12 -0
  15. package/dist/assets/html.worker-DotaEs7v.js +456 -0
  16. package/dist/assets/json.worker-B4VHhH6h.js +44 -0
  17. package/dist/assets/ts.worker-sl17zBDo.js +51316 -0
  18. package/dist/azcli-k1BiOau1.js +68 -0
  19. package/dist/bat-BIP72KWc.js +100 -0
  20. package/dist/bicep-VhQeYhS3.js +102 -0
  21. package/dist/cameligo-DnuAXtHg.js +174 -0
  22. package/dist/clojure-BAuDPsal.js +761 -0
  23. package/dist/coffee-BV06qSnj.js +232 -0
  24. package/dist/components.js +3595 -0
  25. package/dist/composables.js +72 -0
  26. package/dist/cpp-Cz8Jeyrf.js +389 -0
  27. package/dist/csharp-F6hhlXFb.js +326 -0
  28. package/dist/csp-KzlEHCyI.js +53 -0
  29. package/dist/css-e4FKntZ3.js +187 -0
  30. package/dist/cssMode-uz9U6SUU.js +1571 -0
  31. package/dist/cypher-CpvDGKRr.js +263 -0
  32. package/dist/dart-DdHeFWR0.js +281 -0
  33. package/dist/dockerfile-aoNXDcio.js +130 -0
  34. package/dist/ecl-C4Q0DYuA.js +456 -0
  35. package/dist/editor.api-CgD9w0gG.js +77091 -0
  36. package/dist/editor.main-Du02abDl.js +33783 -0
  37. package/dist/elixir-C9X42b0T.js +569 -0
  38. package/dist/flow9-Bff42pfB.js +142 -0
  39. package/dist/freemarker2-DFLX4iQ-.js +989 -0
  40. package/dist/fsharp-C6vPAsHG.js +217 -0
  41. package/dist/go-DEr8zx9f.js +218 -0
  42. package/dist/graphql-BiNBBRFh.js +151 -0
  43. package/dist/handlebars-aiZbIuWY.js +419 -0
  44. package/dist/hcl-2T9lKuFg.js +183 -0
  45. package/dist/html-phzTMObN.js +308 -0
  46. package/dist/htmlMode-BF7wMi3N.js +1581 -0
  47. package/dist/index.js +89 -0
  48. package/dist/ini-CZGtssYM.js +71 -0
  49. package/dist/ini.contribution-DyWtiacL.js +8 -0
  50. package/dist/java-B260NeH3.js +232 -0
  51. package/dist/javascript-BKKOItMi.js +70 -0
  52. package/dist/jsonMode-CDYK4B5l.js +1996 -0
  53. package/dist/julia-kuNLM9c5.js +511 -0
  54. package/dist/kotlin-Bz6kAefA.js +253 -0
  55. package/dist/less-AZUtS89I.js +162 -0
  56. package/dist/lexon-BcmgnyRb.js +157 -0
  57. package/dist/liquid-B2eRz5SA.js +240 -0
  58. package/dist/lua-Dz1RbATg.js +162 -0
  59. package/dist/m3-CIMooLFn.js +210 -0
  60. package/dist/markdown-C1BsCK9P.js +229 -0
  61. package/dist/markdown.contribution-DYYk6zUU.js +7 -0
  62. package/dist/mdx-BfV1HDRG.js +165 -0
  63. package/dist/mips-BovsnfLQ.js +198 -0
  64. package/dist/monaco.contribution-C-bQhUTI.js +114 -0
  65. package/dist/monaco.contribution-CCVvl3Jx.js +72 -0
  66. package/dist/monaco.contribution-Col-f0XR.js +164 -0
  67. package/dist/monaco.contribution-b5xkgQ-s.js +112 -0
  68. package/dist/msdax-CiRB2ZB-.js +375 -0
  69. package/dist/mysql-BwdpPE19.js +878 -0
  70. package/dist/objective-c-D4nfHfso.js +183 -0
  71. package/dist/pascal--j5-PYtz.js +251 -0
  72. package/dist/pascaligo-C7TcJxNL.js +164 -0
  73. package/dist/perl-BzEWqUb5.js +626 -0
  74. package/dist/pgsql-B_KZ0mGX.js +851 -0
  75. package/dist/php-A19QHzQV.js +500 -0
  76. package/dist/pla-COeKY1hA.js +137 -0
  77. package/dist/postiats-BfMp7zJL.js +907 -0
  78. package/dist/powerquery-B0TS_5Gb.js +890 -0
  79. package/dist/powershell-5jSbKdYB.js +239 -0
  80. package/dist/protobuf-YgnOutn3.js +420 -0
  81. package/dist/pug-DLej6kn5.js +402 -0
  82. package/dist/python-CQrZx9mR.js +301 -0
  83. package/dist/python.contribution-CcKs2Ktm.js +8 -0
  84. package/dist/qsharp-AhjqtSHB.js +301 -0
  85. package/dist/r-D-F4P80w.js +243 -0
  86. package/dist/razor-DWmpHMcx.js +550 -0
  87. package/dist/redis-hwwIlMnV.js +302 -0
  88. package/dist/redshift-Bcm_kjEG.js +809 -0
  89. package/dist/restructuredtext-CrdzfPP-.js +174 -0
  90. package/dist/ruby-QC2UNm1s.js +511 -0
  91. package/dist/rust-5aqiQ3L5.js +343 -0
  92. package/dist/sb-B1g1ZfLJ.js +115 -0
  93. package/dist/scala-C2U4R5Gb.js +370 -0
  94. package/dist/scheme-DeFRbslr.js +108 -0
  95. package/dist/scss-RSTCiCmI.js +262 -0
  96. package/dist/shell-BpF-iNu8.js +221 -0
  97. package/dist/shell.contribution-B80NZ3iO.js +7 -0
  98. package/dist/solidity-C00r2mbQ.js +1367 -0
  99. package/dist/sophia-DVW5ZKDB.js +199 -0
  100. package/dist/sparql-B0nmpxeX.js +201 -0
  101. package/dist/sql-CJwKPERn.js +853 -0
  102. package/dist/sql.contribution-DQy36aE5.js +7 -0
  103. package/dist/st-DPlKG5DT.js +416 -0
  104. package/dist/swift-YZBAbVHV.js +309 -0
  105. package/dist/systemverilog-CDQSaH63.js +576 -0
  106. package/dist/tcl-Dlu8sp6Q.js +232 -0
  107. package/dist/tsMode-Bh-v12OL.js +887 -0
  108. package/dist/twig-C5TO7-kw.js +392 -0
  109. package/dist/typescript-c7y6IZVP.js +343 -0
  110. package/dist/typespec-BsmjDEu7.js +117 -0
  111. package/dist/useFieldRendering-BIqeE3qo.js +6083 -0
  112. package/dist/vb-ChHvIDrk.js +372 -0
  113. package/dist/wgsl-XEp1ju8c.js +439 -0
  114. package/dist/xml-MAEprTnF.js +95 -0
  115. package/dist/xml.contribution-XMOaon8i.js +27 -0
  116. package/dist/yaml-C1p8rXG7.js +206 -0
  117. package/dist/yaml.contribution-DRRVhJmJ.js +8 -0
  118. package/package.json +88 -0
  119. package/src/__tests__/client-assigner.test.ts +341 -0
  120. package/src/__tests__/code-types.test.ts +30 -0
  121. package/src/__tests__/markdown-field.test.ts +34 -0
  122. package/src/__tests__/markdown-note-field.test.ts +135 -0
  123. package/src/__tests__/quiz-recorder.test.ts +195 -0
  124. package/src/__tests__/recorder-editor-content-sync.test.ts +172 -0
  125. package/src/__tests__/recorder-editor.test.ts +143 -0
  126. package/src/__tests__/recorder-render.test.ts +57 -0
  127. package/src/__tests__/recorder-wysiwyg-field-host.test.ts +33 -0
  128. package/src/__tests__/step-field.test.ts +270 -0
  129. package/src/__tests__/type-plugins.test.ts +59 -0
  130. package/src/__tests__/var-field-render.test.ts +26 -0
  131. package/src/client-assigner.ts +269 -0
  132. package/src/code-types.ts +94 -0
  133. package/src/components/AimdCodeField.vue +228 -0
  134. package/src/components/AimdDnaSequenceField.vue +983 -0
  135. package/src/components/AimdMarkdownField.vue +168 -0
  136. package/src/components/AimdMarkdownNoteField.vue +457 -0
  137. package/src/components/AimdQuizRecorder.vue +792 -0
  138. package/src/components/AimdRecorder.vue +1959 -0
  139. package/src/components/AimdRecorderEditor.vue +2281 -0
  140. package/src/components/AimdRecorderWysiwygFieldHost.vue +93 -0
  141. package/src/components/AimdRecorderWysiwygSurface.vue +487 -0
  142. package/src/components/AimdSeqVizViewer.vue +122 -0
  143. package/src/components/AimdStepCheckField.vue +453 -0
  144. package/src/components/AimdVarField.vue +213 -0
  145. package/src/components/AimdVarTableField.vue +516 -0
  146. package/src/components/DnaAnnotationEditor.vue +477 -0
  147. package/src/components/DnaSequenceEditor.vue +44 -0
  148. package/src/components/DnaSequenceToolbar.vue +98 -0
  149. package/src/components/DnaSequenceViewer.vue +162 -0
  150. package/src/components/index.ts +21 -0
  151. package/src/components/recorderMilkdownPlugin.ts +632 -0
  152. package/src/composables/__tests__/useDnaSequence.test.ts +467 -0
  153. package/src/composables/__tests__/useFieldAdapters.test.ts +115 -0
  154. package/src/composables/__tests__/useFocusManagement.test.ts +66 -0
  155. package/src/composables/__tests__/useRecordState.test.ts +586 -0
  156. package/src/composables/__tests__/useStepTimers.test.ts +64 -0
  157. package/src/composables/__tests__/useVarHelpers.test.ts +424 -0
  158. package/src/composables/__tests__/workbenchFieldEditing.test.ts +97 -0
  159. package/src/composables/index.ts +94 -0
  160. package/src/composables/useClientAssignerRunner.ts +74 -0
  161. package/src/composables/useDnaSequence.ts +400 -0
  162. package/src/composables/useDnaSequenceField.ts +316 -0
  163. package/src/composables/useFieldAdapters.ts +61 -0
  164. package/src/composables/useFieldRendering.ts +269 -0
  165. package/src/composables/useFocusManagement.ts +144 -0
  166. package/src/composables/useRecordState.ts +429 -0
  167. package/src/composables/useStepTimers.ts +243 -0
  168. package/src/composables/useVarHelpers.ts +545 -0
  169. package/src/composables/useVarTableDragDrop.ts +236 -0
  170. package/src/composables/workbenchFieldEditing.ts +705 -0
  171. package/src/css.d.ts +9 -0
  172. package/src/index.ts +65 -0
  173. package/src/locales.ts +559 -0
  174. package/src/monaco-code.ts +75 -0
  175. package/src/styles/aimd.css +994 -0
  176. package/src/type-plugins.ts +132 -0
  177. package/src/type-utils.ts +3 -0
  178. package/src/types.ts +191 -0
@@ -0,0 +1,114 @@
1
+ import { m as h } from "./editor.api-CgD9w0gG.js";
2
+ var v = Object.defineProperty, b = Object.getOwnPropertyDescriptor, _ = Object.getOwnPropertyNames, L = Object.prototype.hasOwnProperty, D = (e, t, r, n) => {
3
+ if (t && typeof t == "object" || typeof t == "function")
4
+ for (let a of _(t))
5
+ !L.call(e, a) && a !== r && v(e, a, { get: () => t[a], enumerable: !(n = b(t, a)) || n.enumerable });
6
+ return e;
7
+ }, w = (e, t, r) => (D(e, t, "default"), r), s = {};
8
+ w(s, h);
9
+ var O = class {
10
+ constructor(e, t, r) {
11
+ this._onDidChange = new s.Emitter(), this._languageId = e, this.setOptions(t), this.setModeConfiguration(r);
12
+ }
13
+ get onDidChange() {
14
+ return this._onDidChange.event;
15
+ }
16
+ get languageId() {
17
+ return this._languageId;
18
+ }
19
+ get options() {
20
+ return this._options;
21
+ }
22
+ get modeConfiguration() {
23
+ return this._modeConfiguration;
24
+ }
25
+ setOptions(e) {
26
+ this._options = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(this);
27
+ }
28
+ setModeConfiguration(e) {
29
+ this._modeConfiguration = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(this);
30
+ }
31
+ }, y = {
32
+ tabSize: 4,
33
+ insertSpaces: !1,
34
+ wrapLineLength: 120,
35
+ unformatted: 'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',
36
+ contentUnformatted: "pre",
37
+ indentInnerHtml: !1,
38
+ preserveNewLines: !0,
39
+ maxPreserveNewLines: void 0,
40
+ indentHandlebars: !1,
41
+ endWithNewline: !1,
42
+ extraLiners: "head, body, /html",
43
+ wrapAttributes: "auto"
44
+ }, i = {
45
+ format: y,
46
+ suggest: {},
47
+ data: { useDefaultDataProvider: !0 }
48
+ };
49
+ function u(e) {
50
+ return {
51
+ completionItems: !0,
52
+ hovers: !0,
53
+ documentSymbols: !0,
54
+ links: !0,
55
+ documentHighlights: !0,
56
+ rename: !0,
57
+ colors: !0,
58
+ foldingRanges: !0,
59
+ selectionRanges: !0,
60
+ diagnostics: e === o,
61
+ // turned off for Razor and Handlebar
62
+ documentFormattingEdits: e === o,
63
+ // turned off for Razor and Handlebar
64
+ documentRangeFormattingEdits: e === o
65
+ // turned off for Razor and Handlebar
66
+ };
67
+ }
68
+ var o = "html", l = "handlebars", d = "razor", c = g(
69
+ o,
70
+ i,
71
+ u(o)
72
+ ), C = c.defaults, p = g(
73
+ l,
74
+ i,
75
+ u(l)
76
+ ), P = p.defaults, f = g(
77
+ d,
78
+ i,
79
+ u(d)
80
+ ), j = f.defaults;
81
+ s.languages.html = {
82
+ htmlDefaults: C,
83
+ razorDefaults: j,
84
+ handlebarDefaults: P,
85
+ htmlLanguageService: c,
86
+ handlebarLanguageService: p,
87
+ razorLanguageService: f,
88
+ registerHTMLLanguageService: g
89
+ };
90
+ function S() {
91
+ return import("./htmlMode-BF7wMi3N.js");
92
+ }
93
+ function g(e, t = i, r = u(e)) {
94
+ const n = new O(e, t, r);
95
+ let a;
96
+ const m = s.languages.onLanguage(e, async () => {
97
+ a = (await S()).setupMode(n);
98
+ });
99
+ return {
100
+ defaults: n,
101
+ dispose() {
102
+ m.dispose(), a?.dispose(), a = void 0;
103
+ }
104
+ };
105
+ }
106
+ export {
107
+ P as handlebarDefaults,
108
+ p as handlebarLanguageService,
109
+ C as htmlDefaults,
110
+ c as htmlLanguageService,
111
+ j as razorDefaults,
112
+ f as razorLanguageService,
113
+ g as registerHTMLLanguageService
114
+ };
@@ -0,0 +1,72 @@
1
+ import { m as g } from "./editor.api-CgD9w0gG.js";
2
+ var u = Object.defineProperty, c = Object.getOwnPropertyDescriptor, l = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, m = (e, t, n, s) => {
3
+ if (t && typeof t == "object" || typeof t == "function")
4
+ for (let r of l(t))
5
+ !d.call(e, r) && r !== n && u(e, r, { get: () => t[r], enumerable: !(s = c(t, r)) || s.enumerable });
6
+ return e;
7
+ }, p = (e, t, n) => (m(e, t, "default"), n), o = {};
8
+ p(o, g);
9
+ var h = class {
10
+ constructor(e, t, n) {
11
+ this._onDidChange = new o.Emitter(), this._languageId = e, this.setDiagnosticsOptions(t), this.setModeConfiguration(n);
12
+ }
13
+ get onDidChange() {
14
+ return this._onDidChange.event;
15
+ }
16
+ get languageId() {
17
+ return this._languageId;
18
+ }
19
+ get modeConfiguration() {
20
+ return this._modeConfiguration;
21
+ }
22
+ get diagnosticsOptions() {
23
+ return this._diagnosticsOptions;
24
+ }
25
+ setDiagnosticsOptions(e) {
26
+ this._diagnosticsOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(this);
27
+ }
28
+ setModeConfiguration(e) {
29
+ this._modeConfiguration = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(this);
30
+ }
31
+ }, _ = {
32
+ validate: !0,
33
+ allowComments: !0,
34
+ schemas: [],
35
+ enableSchemaRequest: !1,
36
+ schemaRequest: "warning",
37
+ schemaValidation: "warning",
38
+ comments: "error",
39
+ trailingCommas: "error"
40
+ }, f = {
41
+ documentFormattingEdits: !0,
42
+ documentRangeFormattingEdits: !0,
43
+ completionItems: !0,
44
+ hovers: !0,
45
+ documentSymbols: !0,
46
+ tokens: !0,
47
+ colors: !0,
48
+ foldingRanges: !0,
49
+ diagnostics: !0,
50
+ selectionRanges: !0
51
+ }, a = new h(
52
+ "json",
53
+ _,
54
+ f
55
+ ), O = () => i().then((e) => e.getWorker());
56
+ o.languages.json = { jsonDefaults: a, getWorker: O };
57
+ function i() {
58
+ return import("./jsonMode-CDYK4B5l.js");
59
+ }
60
+ o.languages.register({
61
+ id: "json",
62
+ extensions: [".json", ".bowerrc", ".jshintrc", ".jscsrc", ".eslintrc", ".babelrc", ".har"],
63
+ aliases: ["JSON", "json"],
64
+ mimetypes: ["application/json"]
65
+ });
66
+ o.languages.onLanguage("json", () => {
67
+ i().then((e) => e.setupMode(a));
68
+ });
69
+ export {
70
+ O as getWorker,
71
+ a as jsonDefaults
72
+ };
@@ -0,0 +1,164 @@
1
+ import { m as v } from "./editor.api-CgD9w0gG.js";
2
+ var f = Object.defineProperty, d = Object.getOwnPropertyDescriptor, O = Object.getOwnPropertyNames, m = Object.prototype.hasOwnProperty, E = (e, i, t, s) => {
3
+ if (i && typeof i == "object" || typeof i == "function")
4
+ for (let r of O(i))
5
+ !m.call(e, r) && r !== t && f(e, r, { get: () => i[r], enumerable: !(s = d(i, r)) || s.enumerable });
6
+ return e;
7
+ }, L = (e, i, t) => (E(e, i, "default"), t), y = "5.4.5", n = {};
8
+ L(n, v);
9
+ var o = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.CommonJS = 1] = "CommonJS", e[e.AMD = 2] = "AMD", e[e.UMD = 3] = "UMD", e[e.System = 4] = "System", e[e.ES2015 = 5] = "ES2015", e[e.ESNext = 99] = "ESNext", e))(o || {}), h = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Preserve = 1] = "Preserve", e[e.React = 2] = "React", e[e.ReactNative = 3] = "ReactNative", e[e.ReactJSX = 4] = "ReactJSX", e[e.ReactJSXDev = 5] = "ReactJSXDev", e))(h || {}), u = /* @__PURE__ */ ((e) => (e[e.CarriageReturnLineFeed = 0] = "CarriageReturnLineFeed", e[e.LineFeed = 1] = "LineFeed", e))(u || {}), _ = /* @__PURE__ */ ((e) => (e[e.ES3 = 0] = "ES3", e[e.ES5 = 1] = "ES5", e[e.ES2015 = 2] = "ES2015", e[e.ES2016 = 3] = "ES2016", e[e.ES2017 = 4] = "ES2017", e[e.ES2018 = 5] = "ES2018", e[e.ES2019 = 6] = "ES2019", e[e.ES2020 = 7] = "ES2020", e[e.ESNext = 99] = "ESNext", e[e.JSON = 100] = "JSON", e[
10
+ e.Latest = 99
11
+ /* ESNext */
12
+ ] = "Latest", e))(_ || {}), l = /* @__PURE__ */ ((e) => (e[e.Classic = 1] = "Classic", e[e.NodeJs = 2] = "NodeJs", e))(l || {}), c = class {
13
+ constructor(e, i, t, s, r) {
14
+ this._onDidChange = new n.Emitter(), this._onDidExtraLibsChange = new n.Emitter(), this._extraLibs = /* @__PURE__ */ Object.create(null), this._removedExtraLibs = /* @__PURE__ */ Object.create(null), this._eagerModelSync = !1, this.setCompilerOptions(e), this.setDiagnosticsOptions(i), this.setWorkerOptions(t), this.setInlayHintsOptions(s), this.setModeConfiguration(r), this._onDidExtraLibsChangeTimeout = -1;
15
+ }
16
+ get onDidChange() {
17
+ return this._onDidChange.event;
18
+ }
19
+ get onDidExtraLibsChange() {
20
+ return this._onDidExtraLibsChange.event;
21
+ }
22
+ get modeConfiguration() {
23
+ return this._modeConfiguration;
24
+ }
25
+ get workerOptions() {
26
+ return this._workerOptions;
27
+ }
28
+ get inlayHintsOptions() {
29
+ return this._inlayHintsOptions;
30
+ }
31
+ getExtraLibs() {
32
+ return this._extraLibs;
33
+ }
34
+ addExtraLib(e, i) {
35
+ let t;
36
+ if (typeof i > "u" ? t = `ts:extralib-${Math.random().toString(36).substring(2, 15)}` : t = i, this._extraLibs[t] && this._extraLibs[t].content === e)
37
+ return {
38
+ dispose: () => {
39
+ }
40
+ };
41
+ let s = 1;
42
+ return this._removedExtraLibs[t] && (s = this._removedExtraLibs[t] + 1), this._extraLibs[t] && (s = this._extraLibs[t].version + 1), this._extraLibs[t] = {
43
+ content: e,
44
+ version: s
45
+ }, this._fireOnDidExtraLibsChangeSoon(), {
46
+ dispose: () => {
47
+ let r = this._extraLibs[t];
48
+ r && r.version === s && (delete this._extraLibs[t], this._removedExtraLibs[t] = s, this._fireOnDidExtraLibsChangeSoon());
49
+ }
50
+ };
51
+ }
52
+ setExtraLibs(e) {
53
+ for (const i in this._extraLibs)
54
+ this._removedExtraLibs[i] = this._extraLibs[i].version;
55
+ if (this._extraLibs = /* @__PURE__ */ Object.create(null), e && e.length > 0)
56
+ for (const i of e) {
57
+ const t = i.filePath || `ts:extralib-${Math.random().toString(36).substring(2, 15)}`, s = i.content;
58
+ let r = 1;
59
+ this._removedExtraLibs[t] && (r = this._removedExtraLibs[t] + 1), this._extraLibs[t] = {
60
+ content: s,
61
+ version: r
62
+ };
63
+ }
64
+ this._fireOnDidExtraLibsChangeSoon();
65
+ }
66
+ _fireOnDidExtraLibsChangeSoon() {
67
+ this._onDidExtraLibsChangeTimeout === -1 && (this._onDidExtraLibsChangeTimeout = window.setTimeout(() => {
68
+ this._onDidExtraLibsChangeTimeout = -1, this._onDidExtraLibsChange.fire(void 0);
69
+ }, 0));
70
+ }
71
+ getCompilerOptions() {
72
+ return this._compilerOptions;
73
+ }
74
+ setCompilerOptions(e) {
75
+ this._compilerOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
76
+ }
77
+ getDiagnosticsOptions() {
78
+ return this._diagnosticsOptions;
79
+ }
80
+ setDiagnosticsOptions(e) {
81
+ this._diagnosticsOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
82
+ }
83
+ setWorkerOptions(e) {
84
+ this._workerOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
85
+ }
86
+ setInlayHintsOptions(e) {
87
+ this._inlayHintsOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
88
+ }
89
+ setMaximumWorkerIdleTime(e) {
90
+ }
91
+ setEagerModelSync(e) {
92
+ this._eagerModelSync = e;
93
+ }
94
+ getEagerModelSync() {
95
+ return this._eagerModelSync;
96
+ }
97
+ setModeConfiguration(e) {
98
+ this._modeConfiguration = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
99
+ }
100
+ }, x = y, g = {
101
+ completionItems: !0,
102
+ hovers: !0,
103
+ documentSymbols: !0,
104
+ definitions: !0,
105
+ references: !0,
106
+ documentHighlights: !0,
107
+ rename: !0,
108
+ diagnostics: !0,
109
+ documentRangeFormattingEdits: !0,
110
+ signatureHelp: !0,
111
+ onTypeFormattingEdits: !0,
112
+ codeActions: !0,
113
+ inlayHints: !0
114
+ }, p = new c(
115
+ {
116
+ allowNonTsExtensions: !0,
117
+ target: 99
118
+ /* Latest */
119
+ },
120
+ { noSemanticValidation: !1, noSyntaxValidation: !1, onlyVisible: !1 },
121
+ {},
122
+ {},
123
+ g
124
+ ), b = new c(
125
+ {
126
+ allowNonTsExtensions: !0,
127
+ allowJs: !0,
128
+ target: 99
129
+ /* Latest */
130
+ },
131
+ { noSemanticValidation: !0, noSyntaxValidation: !1, onlyVisible: !1 },
132
+ {},
133
+ {},
134
+ g
135
+ ), C = () => a().then((e) => e.getTypeScriptWorker()), D = () => a().then((e) => e.getJavaScriptWorker());
136
+ n.languages.typescript = {
137
+ ModuleKind: o,
138
+ JsxEmit: h,
139
+ NewLineKind: u,
140
+ ScriptTarget: _,
141
+ ModuleResolutionKind: l,
142
+ typescriptVersion: x,
143
+ typescriptDefaults: p,
144
+ javascriptDefaults: b,
145
+ getTypeScriptWorker: C,
146
+ getJavaScriptWorker: D
147
+ };
148
+ function a() {
149
+ return import("./tsMode-Bh-v12OL.js");
150
+ }
151
+ n.languages.onLanguage("typescript", () => a().then((e) => e.setupTypeScript(p)));
152
+ n.languages.onLanguage("javascript", () => a().then((e) => e.setupJavaScript(b)));
153
+ export {
154
+ h as JsxEmit,
155
+ o as ModuleKind,
156
+ l as ModuleResolutionKind,
157
+ u as NewLineKind,
158
+ _ as ScriptTarget,
159
+ D as getJavaScriptWorker,
160
+ C as getTypeScriptWorker,
161
+ b as javascriptDefaults,
162
+ p as typescriptDefaults,
163
+ x as typescriptVersion
164
+ };
@@ -0,0 +1,112 @@
1
+ import { m as d } from "./editor.api-CgD9w0gG.js";
2
+ var f = Object.defineProperty, h = Object.getOwnPropertyDescriptor, m = Object.getOwnPropertyNames, _ = Object.prototype.hasOwnProperty, w = (e, t, n, g) => {
3
+ if (t && typeof t == "object" || typeof t == "function")
4
+ for (let o of m(t))
5
+ !_.call(e, o) && o !== n && f(e, o, { get: () => t[o], enumerable: !(g = h(t, o)) || g.enumerable });
6
+ return e;
7
+ }, v = (e, t, n) => (w(e, t, "default"), n), r = {};
8
+ v(r, d);
9
+ var i = class {
10
+ constructor(e, t, n) {
11
+ this._onDidChange = new r.Emitter(), this._languageId = e, this.setOptions(t), this.setModeConfiguration(n);
12
+ }
13
+ get onDidChange() {
14
+ return this._onDidChange.event;
15
+ }
16
+ get languageId() {
17
+ return this._languageId;
18
+ }
19
+ get modeConfiguration() {
20
+ return this._modeConfiguration;
21
+ }
22
+ get diagnosticsOptions() {
23
+ return this.options;
24
+ }
25
+ get options() {
26
+ return this._options;
27
+ }
28
+ setOptions(e) {
29
+ this._options = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(this);
30
+ }
31
+ setDiagnosticsOptions(e) {
32
+ this.setOptions(e);
33
+ }
34
+ setModeConfiguration(e) {
35
+ this._modeConfiguration = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(this);
36
+ }
37
+ }, s = {
38
+ validate: !0,
39
+ lint: {
40
+ compatibleVendorPrefixes: "ignore",
41
+ vendorPrefix: "warning",
42
+ duplicateProperties: "warning",
43
+ emptyRules: "warning",
44
+ importStatement: "ignore",
45
+ boxModel: "ignore",
46
+ universalSelector: "ignore",
47
+ zeroUnits: "ignore",
48
+ fontFaceProperties: "warning",
49
+ hexColorLength: "error",
50
+ argumentsInColorFunction: "error",
51
+ unknownProperties: "warning",
52
+ ieHack: "ignore",
53
+ unknownVendorSpecificProperties: "ignore",
54
+ propertyIgnoredDueToDisplay: "warning",
55
+ important: "ignore",
56
+ float: "ignore",
57
+ idSelector: "ignore"
58
+ },
59
+ data: { useDefaultDataProvider: !0 },
60
+ format: {
61
+ newlineBetweenSelectors: !0,
62
+ newlineBetweenRules: !0,
63
+ spaceAroundSelectorSeparator: !1,
64
+ braceStyle: "collapse",
65
+ maxPreserveNewLines: void 0,
66
+ preserveNewLines: !0
67
+ }
68
+ }, a = {
69
+ completionItems: !0,
70
+ hovers: !0,
71
+ documentSymbols: !0,
72
+ definitions: !0,
73
+ references: !0,
74
+ documentHighlights: !0,
75
+ rename: !0,
76
+ colors: !0,
77
+ foldingRanges: !0,
78
+ diagnostics: !0,
79
+ selectionRanges: !0,
80
+ documentFormattingEdits: !0,
81
+ documentRangeFormattingEdits: !0
82
+ }, l = new i(
83
+ "css",
84
+ s,
85
+ a
86
+ ), c = new i(
87
+ "scss",
88
+ s,
89
+ a
90
+ ), p = new i(
91
+ "less",
92
+ s,
93
+ a
94
+ );
95
+ r.languages.css = { cssDefaults: l, lessDefaults: p, scssDefaults: c };
96
+ function u() {
97
+ return import("./cssMode-uz9U6SUU.js");
98
+ }
99
+ r.languages.onLanguage("less", () => {
100
+ u().then((e) => e.setupMode(p));
101
+ });
102
+ r.languages.onLanguage("scss", () => {
103
+ u().then((e) => e.setupMode(c));
104
+ });
105
+ r.languages.onLanguage("css", () => {
106
+ u().then((e) => e.setupMode(l));
107
+ });
108
+ export {
109
+ l as cssDefaults,
110
+ p as lessDefaults,
111
+ c as scssDefaults
112
+ };