@scalar/api-client 2.3.26 → 2.3.28

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 (96) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts +4 -1
  3. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  4. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  5. package/dist/components/CodeInput/CodeInput.vue2.js +76 -72
  6. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  7. package/dist/components/CodeInput/codeVariableWidget.js +48 -45
  8. package/dist/components/CodeInput/index.d.ts +2 -0
  9. package/dist/components/CodeInput/index.d.ts.map +1 -0
  10. package/dist/components/CodeInput/index.js +4 -0
  11. package/dist/components/DataTable/DataTableInput.vue.d.ts +8 -1
  12. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  13. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  14. package/dist/components/DataTable/DataTableInput.vue2.js +46 -43
  15. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts +1 -1
  16. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  17. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +82 -92
  18. package/dist/components/Form/Form.vue.d.ts +2 -2
  19. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  20. package/dist/components/Form/Form.vue.js +17 -14
  21. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
  22. package/dist/components/ImportCollection/IntegrationLogo.vue.js +2 -1
  23. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  24. package/dist/components/SideNav/SideNav.vue.js +30 -30
  25. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +16 -0
  26. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  27. package/dist/components/Sidebar/SidebarListElement.vue.js +3 -2
  28. package/dist/components/Sidebar/SidebarListElement.vue2.js +76 -54
  29. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts +2 -2
  30. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  31. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +5 -4
  32. package/dist/components/ViewLayout/index.d.ts +2 -0
  33. package/dist/components/ViewLayout/index.d.ts.map +1 -0
  34. package/dist/components/ViewLayout/index.js +4 -0
  35. package/dist/hooks/useClientConfig.d.ts +6 -6
  36. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  37. package/dist/layouts/App/create-api-client-app.d.ts +13 -13
  38. package/dist/layouts/Modal/create-api-client-modal.d.ts +26 -26
  39. package/dist/layouts/Web/create-api-client-web.d.ts +13 -13
  40. package/dist/libs/create-client.d.ts +13 -13
  41. package/dist/libs/env-helpers.d.ts +10 -2
  42. package/dist/libs/env-helpers.d.ts.map +1 -1
  43. package/dist/libs/env-helpers.js +4 -2
  44. package/dist/libs/environment-parser.d.ts +1 -1
  45. package/dist/libs/hot-keys.d.ts +1 -1
  46. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  47. package/dist/libs/send-request/create-request-operation.js +9 -9
  48. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  49. package/dist/libs/string-template.d.ts.map +1 -1
  50. package/dist/libs/string-template.js +35 -21
  51. package/dist/routes.d.ts +10 -10
  52. package/dist/store/active-entities.js +34 -34
  53. package/dist/store/environment.js +1 -1
  54. package/dist/store/security-schemes.d.ts +10 -10
  55. package/dist/store/store.d.ts +13 -13
  56. package/dist/store/workspace.d.ts +2 -2
  57. package/dist/style.css +1 -1
  58. package/dist/views/Collection/CollectionCookies.vue.d.ts +1 -1
  59. package/dist/views/Collection/CollectionEnvironment.vue.d.ts +1 -1
  60. package/dist/views/Collection/CollectionOverview.vue.d.ts +1 -1
  61. package/dist/views/Collection/CollectionScripts.vue.d.ts +1 -1
  62. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
  63. package/dist/views/Collection/CollectionServerForm.vue.js +39 -34
  64. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
  65. package/dist/views/Collection/CollectionServers.vue2.js +58 -78
  66. package/dist/views/Collection/CollectionSync.vue.d.ts +1 -1
  67. package/dist/views/Cookies/CookieForm.vue.d.ts +1 -1
  68. package/dist/views/Cookies/CookieRaw.vue.d.ts +1 -1
  69. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  70. package/dist/views/Environment/Environment.vue2.js +208 -188
  71. package/dist/views/Environment/EnvironmentColors.vue.js +5 -5
  72. package/dist/views/Environment/EnvironmentModal.vue.js +21 -21
  73. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  74. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +9 -9
  75. package/dist/views/Environment/handle-drag.d.ts +13 -0
  76. package/dist/views/Environment/handle-drag.d.ts.map +1 -0
  77. package/dist/views/Environment/handle-drag.js +32 -0
  78. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  79. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +23 -22
  80. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  81. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +111 -88
  82. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  83. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +1 -0
  84. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  85. package/dist/views/Request/RequestSection/RequestParams.vue.js +62 -56
  86. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
  87. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  88. package/dist/views/Request/RequestSection/RequestSection.vue.js +4 -4
  89. package/dist/views/Request/RequestSection/RequestSection.vue2.js +42 -47
  90. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  91. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  92. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
  93. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +2 -2
  94. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +10 -10
  95. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
  96. package/package.json +24 -14
package/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.3.28
4
+
5
+ ### Patch Changes
6
+
7
+ - 5d24800: chore: export view layout collapse component
8
+ - Updated dependencies [5d24800]
9
+ - @scalar/oas-utils@0.2.138
10
+ - @scalar/import@0.3.21
11
+ - @scalar/postman-to-openapi@0.2.11
12
+
13
+ ## 2.3.27
14
+
15
+ ### Patch Changes
16
+
17
+ - 1e9f510: feat: makes collection environment draggable
18
+ - 1e9f510: fix: updates string template replacement value for operation
19
+ - 335da88: fix: updates padding on request input with pill
20
+ - b240f4a: feat: adds select all capability to auth scopes
21
+ - 3cf1457: feat: updates collection server page style
22
+ - 1e9f510: fix: environment collection management
23
+ - 950772d: fix(api-client): make password fields not trigger browser autofill
24
+ - f2b8732: fix: increases reponse loading overlay z index
25
+ - b3f599f: fix: disables view layout section attribute inheritance
26
+ - Updated dependencies [62c4ce3]
27
+ - @scalar/types@0.1.12
28
+ - @scalar/oas-utils@0.2.137
29
+ - @scalar/openapi-parser@0.10.16
30
+ - @scalar/snippetz@0.2.19
31
+ - @scalar/themes@0.10.4
32
+ - @scalar/components@0.13.54
33
+ - @scalar/draggable@0.1.11
34
+ - @scalar/icons@0.3.3
35
+ - @scalar/import@0.3.20
36
+ - @scalar/object-utils@1.1.13
37
+ - @scalar/openapi-types@0.2.1
38
+ - @scalar/postman-to-openapi@0.2.10
39
+ - @scalar/use-codemirror@0.11.99
40
+ - @scalar/use-hooks@0.1.46
41
+ - @scalar/use-toasts@0.7.9
42
+ - @scalar/use-tooltip@1.0.6
43
+
3
44
  ## 2.3.26
4
45
 
5
46
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import type { Environment } from '@scalar/oas-utils/entities/environment';
2
2
  import type { Workspace } from '@scalar/oas-utils/entities/workspace';
3
- import { type CodeMirrorLanguage } from '@scalar/use-codemirror';
3
+ import { type CodeMirrorLanguage, type Extension } from '@scalar/use-codemirror';
4
4
  import { type Ref } from 'vue';
5
5
  import type { EnvVariable } from '../../store/active-entities';
6
6
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
@@ -9,6 +9,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
9
9
  modelValue: string | number;
10
10
  error?: boolean;
11
11
  emitOnBlur?: boolean;
12
+ extensions?: Extension[];
12
13
  lineNumbers?: boolean;
13
14
  lint?: boolean;
14
15
  disableTabIndent?: boolean;
@@ -51,6 +52,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
51
52
  modelValue: string | number;
52
53
  error?: boolean;
53
54
  emitOnBlur?: boolean;
55
+ extensions?: Extension[];
54
56
  lineNumbers?: boolean;
55
57
  lint?: boolean;
56
58
  disableTabIndent?: boolean;
@@ -83,6 +85,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
83
85
  disabled: boolean;
84
86
  colorPicker: boolean;
85
87
  emitOnBlur: boolean;
88
+ extensions: Extension[];
86
89
  disableTabIndent: boolean;
87
90
  disableEnter: boolean;
88
91
  disableCloseBrackets: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAuhBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAErE,OAAO,EAIL,KAAK,kBAAkB,EAExB,MAAM,wBAAwB,CAAA;AAG/B,OAAO,EAAyC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAGrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;;kBAYxC,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;eAChB,SAAS;mBACL,OAAO;;IAqLxB,0BAA0B;;0BAxIC,MAAM;0BA0BN,MAAM;wBAOR,MAAM;;;;;;;;;;kBAxGf,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;eAChB,SAAS;mBACL,OAAO;;;;;;;cARX,OAAO;cAjBP,OAAO;iBADJ,OAAO;gBAIR,OAAO;sBAGD,OAAO;kBAMX,OAAO;0BACC,OAAO;mBAKd,OAAO;gBAEV,OAAO;kBAKL,OAAO;;qBAkiBI,GAAG;kBACN,GAAG;;AAhkB9B,wBA2nBC;AAeD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAkiBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAErE,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACf,MAAM,wBAAwB,CAAA;AAG/B,OAAO,EAAyC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAGrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;;kBAYxC,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;iBACP,SAAS,EAAE;kBACV,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;eAChB,SAAS;mBACL,OAAO;;IA+LxB,0BAA0B;;0BAjJC,MAAM;0BA0BN,MAAM;wBAOR,MAAM;;;;;;;;;;kBA1Gf,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;iBACP,SAAS,EAAE;kBACV,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;eAChB,SAAS;mBACL,OAAO;;;;;;;cARX,OAAO;cAlBP,OAAO;iBADJ,OAAO;gBAIR,OAAO;gBACP,SAAS,EAAE;sBAGL,OAAO;kBAMX,OAAO;0BACC,OAAO;mBAKd,OAAO;gBAEV,OAAO;kBAKL,OAAO;;qBA6iBI,GAAG;kBACN,GAAG;;AA5kB9B,wBAuoBC;AAeD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-af9a0fc0"]]);
5
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-397d9ece"]]);
6
6
  export {
7
- m as default
7
+ _ as default
8
8
  };
@@ -1,33 +1,33 @@
1
- import { defineComponent as j, useAttrs as H, ref as d, toRef as r, watch as J, computed as I, openBlock as n, createElementBlock as s, Fragment as Q, normalizeClass as G, unref as i, createElementVNode as m, toDisplayString as X, createBlock as y, mergeProps as Y, withKeys as g, withModifiers as N, createVNode as Z, createCommentVNode as p, createTextVNode as k, renderSlot as R } from "vue";
2
- import { ScalarIcon as _ } from "@scalar/components";
3
- import { prettyPrintJson as ee } from "@scalar/oas-utils/helpers";
4
- import { useCodeMirror as oe, useDropdown as le, colorPicker as te } from "@scalar/use-codemirror";
5
- import { useClipboard as ne } from "@scalar/use-hooks/useClipboard";
6
- import { nanoid as ae } from "nanoid";
7
- import re from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
1
+ import { defineComponent as J, useAttrs as Q, ref as d, computed as y, toRef as r, watch as G, openBlock as n, createElementBlock as s, Fragment as X, normalizeClass as Y, unref as u, createElementVNode as m, toDisplayString as Z, createBlock as g, mergeProps as _, withKeys as v, withModifiers as N, createVNode as ee, createCommentVNode as p, createTextVNode as k, renderSlot as R } from "vue";
2
+ import { ScalarIcon as oe } from "@scalar/components";
3
+ import { prettyPrintJson as le } from "@scalar/oas-utils/helpers";
4
+ import { useCodeMirror as te, useDropdown as ne, colorPicker as ae } from "@scalar/use-codemirror";
5
+ import { useClipboard as re } from "@scalar/use-hooks/useClipboard";
6
+ import { nanoid as se } from "nanoid";
7
+ import ie from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
8
8
  import B from "../DataTable/DataTableInputSelect.vue.js";
9
- import { pillPlugin as se, backspaceCommand as ue } from "./codeVariableWidget.js";
10
- import { useLayout as ie } from "../../hooks/useLayout.js";
11
- const de = { class: "whitespace-nowrap" }, pe = ["id"], fe = {
9
+ import { pillPlugin as ue, backspaceCommand as de } from "./codeVariableWidget.js";
10
+ import { useLayout as pe } from "../../hooks/useLayout.js";
11
+ const fe = { class: "whitespace-nowrap" }, me = ["id"], ce = {
12
12
  key: 0,
13
13
  class: "scalar-code-copy z-context"
14
- }, me = {
14
+ }, be = {
15
15
  key: 1,
16
16
  class: "z-context text-c-2 absolute bottom-1 right-1.5 hidden font-sans group-has-[:focus-visible]/input:block",
17
17
  role: "alert"
18
- }, ce = {
18
+ }, ye = {
19
19
  key: 5,
20
20
  class: "centered-y text-orange absolute right-7 text-xs"
21
- }, be = {
21
+ }, ge = {
22
22
  key: 6,
23
23
  class: "centered-y group-has-[.cm-focused]:z-1 absolute right-0 flex h-full items-center p-1.5"
24
- }, ye = {
24
+ }, ve = {
25
25
  key: 7,
26
26
  class: "required centered-y text-xxs text-c-3 group-[.error]:text-red bg-b-1 pointer-events-none absolute right-0 mr-0.5 pr-2 pt-px opacity-100 shadow-[-8px_0_4px_var(--scalar-background-1)] transition-opacity duration-150 group-[.alert]:bg-transparent group-[.error]:bg-transparent group-[.alert]:shadow-none group-[.error]:shadow-none peer-has-[.cm-focused]:opacity-0"
27
- }, ge = {
27
+ }, he = {
28
28
  inheritAttrs: !1
29
- }, De = /* @__PURE__ */ j({
30
- ...ge,
29
+ }, Ee = /* @__PURE__ */ J({
30
+ ...he,
31
31
  __name: "CodeInput",
32
32
  props: {
33
33
  colorPicker: { type: Boolean, default: !1 },
@@ -35,6 +35,7 @@ const de = { class: "whitespace-nowrap" }, pe = ["id"], fe = {
35
35
  modelValue: {},
36
36
  error: { type: Boolean },
37
37
  emitOnBlur: { type: Boolean, default: !0 },
38
+ extensions: { default: () => [] },
38
39
  lineNumbers: { type: Boolean },
39
40
  lint: { type: Boolean },
40
41
  disableTabIndent: { type: Boolean, default: !1 },
@@ -61,39 +62,42 @@ const de = { class: "whitespace-nowrap" }, pe = ["id"], fe = {
61
62
  emits: ["submit", "update:modelValue", "curl", "blur"],
62
63
  setup(z, { expose: A, emit: M }) {
63
64
  var q;
64
- const o = z, u = M, C = H(), O = C.id || `id-${ae()}`, x = d(!1), v = d(!1), S = d(""), P = d({ left: 0, top: 0 }), c = d(null), { layout: h } = ie(), { copyToClipboard: K } = ne();
65
+ const o = z, i = M, C = Q(), O = C.id || `id-${se()}`, x = d(!1), h = d(!1), P = d(""), S = d({ left: 0, top: 0 }), c = d(null), { layout: w } = pe(), { copyToClipboard: K } = re();
65
66
  function D(e) {
66
67
  var l;
67
- return e === o.modelValue ? null : o.importCurl && e.trim().toLowerCase().startsWith("curl") ? (u("curl", e), (l = a.value) == null || l.dispatch({
68
+ return e === o.modelValue ? null : o.importCurl && e.trim().toLowerCase().startsWith("curl") ? (i("curl", e), (l = a.value) == null || l.dispatch({
68
69
  changes: {
69
70
  from: 0,
70
71
  to: a.value.state.doc.length,
71
72
  insert: String(o.modelValue)
72
73
  }
73
- }), null) : o.handleFieldChange ? o.handleFieldChange(e) : u("update:modelValue", e);
74
+ }), null) : o.handleFieldChange ? o.handleFieldChange(e) : i("update:modelValue", e);
74
75
  }
75
- function w(e) {
76
- return o.handleFieldSubmit ? o.handleFieldSubmit(e) : u("submit", e);
76
+ function V(e) {
77
+ return o.handleFieldSubmit ? o.handleFieldSubmit(e) : i("submit", e);
77
78
  }
78
79
  function T(e) {
79
- x.value = !1, o.emitOnBlur && o.modelValue && w(e), u("blur", e);
80
+ x.value = !1, o.emitOnBlur && o.modelValue && V(e), i("blur", e);
80
81
  }
81
- const V = [];
82
- o.colorPicker && V.push(te), V.push(
83
- se({
82
+ const E = [...o.extensions];
83
+ o.colorPicker && E.push(ae);
84
+ const L = y(
85
+ () => ue({
84
86
  environment: o.environment,
85
87
  envVariables: o.envVariables,
86
88
  workspace: o.workspace,
87
- isReadOnly: h === "modal"
88
- }),
89
- ue
90
- );
91
- const F = d(null), { codeMirror: a } = oe({
89
+ isReadOnly: w === "modal"
90
+ })
91
+ ), U = y(() => [
92
+ ...E,
93
+ L.value,
94
+ de
95
+ ]), F = d(null), { codeMirror: a } = te({
92
96
  content: r(
93
97
  () => o.modelValue !== void 0 ? String(o.modelValue) : ""
94
98
  ),
95
99
  onChange: (e) => {
96
- D(e), U();
100
+ D(e), j();
97
101
  },
98
102
  onFocus: () => x.value = !0,
99
103
  onBlur: (e) => T(e),
@@ -104,23 +108,23 @@ const de = { class: "whitespace-nowrap" }, pe = ["id"], fe = {
104
108
  lineNumbers: r(() => o.lineNumbers),
105
109
  language: r(() => o.language),
106
110
  lint: r(() => o.lint),
107
- extensions: V,
111
+ extensions: U,
108
112
  placeholder: r(() => o.placeholder)
109
113
  });
110
- (q = a.value) == null || q.focus(), J(a, () => {
114
+ (q = a.value) == null || q.focus(), G(a, () => {
111
115
  a.value && Object.prototype.hasOwnProperty.call(C, "autofocus") && a.value.focus();
112
116
  });
113
- const { handleDropdownSelect: L, updateDropdownVisibility: U } = le({
117
+ const { handleDropdownSelect: W, updateDropdownVisibility: j } = ne({
114
118
  codeMirror: a,
115
- query: S,
116
- showDropdown: v,
117
- dropdownPosition: P
118
- }), $ = I(
119
+ query: P,
120
+ showDropdown: h,
121
+ dropdownPosition: S
122
+ }), $ = y(
119
123
  () => o.nullable ? ["true", "false", "null"] : ["true", "false"]
120
124
  ), b = (e, l) => {
121
- var f, t, E;
122
- v.value ? e === "down" ? (l.preventDefault(), (f = c.value) == null || f.handleArrowKey("down")) : e === "up" ? (l.preventDefault(), (t = c.value) == null || t.handleArrowKey("up")) : e === "enter" && (l.preventDefault(), (E = c.value) == null || E.handleSelect()) : e === "escape" ? o.disableTabIndent || l.stopPropagation() : e === "enter" && l.target instanceof HTMLDivElement && w(l.target.textContent ?? "");
123
- }, W = I(() => Array.isArray(o.type) ? (
125
+ var f, t, I;
126
+ h.value ? e === "down" ? (l.preventDefault(), (f = c.value) == null || f.handleArrowKey("down")) : e === "up" ? (l.preventDefault(), (t = c.value) == null || t.handleArrowKey("up")) : e === "enter" && (l.preventDefault(), (I = c.value) == null || I.handleSelect()) : e === "escape" ? o.disableTabIndent || l.stopPropagation() : e === "enter" && l.target instanceof HTMLDivElement && V(l.target.textContent ?? "");
127
+ }, H = y(() => Array.isArray(o.type) ? (
124
128
  // Find the first type, that’s not 'null'
125
129
  o.type.find((e) => e !== "null") ?? "string"
126
130
  ) : (
@@ -135,42 +139,42 @@ const de = { class: "whitespace-nowrap" }, pe = ["id"], fe = {
135
139
  },
136
140
  // Expose these methods for testing
137
141
  handleChange: D,
138
- handleSubmit: w,
142
+ handleSubmit: V,
139
143
  handleBlur: T,
140
144
  booleanOptions: $,
141
145
  codeMirror: a,
142
146
  modelValue: o.modelValue
143
147
  }), (e, l) => {
144
148
  var f;
145
- return n(), s(Q, null, [
149
+ return n(), s(X, null, [
146
150
  e.disabled ? (n(), s("div", {
147
151
  key: 0,
148
- class: G(["text-c-2 flex cursor-default items-center justify-center", i(h) === "modal" ? "font-code pl-1 pr-2 text-sm" : "px-2"]),
152
+ class: Y(["text-c-2 flex cursor-default items-center justify-center", u(w) === "modal" ? "font-code pl-1 pr-2 text-sm" : "px-2"]),
149
153
  "data-testid": "code-input-disabled"
150
154
  }, [
151
- m("span", de, X(e.modelValue), 1)
152
- ], 2)) : o.enum && o.enum.length ? (n(), y(B, {
155
+ m("span", fe, Z(e.modelValue), 1)
156
+ ], 2)) : o.enum && o.enum.length ? (n(), g(B, {
153
157
  key: 1,
154
158
  default: o.default,
155
159
  modelValue: e.modelValue,
156
- type: W.value,
160
+ type: H.value,
157
161
  value: o.enum,
158
- "onUpdate:modelValue": l[0] || (l[0] = (t) => u("update:modelValue", t))
159
- }, null, 8, ["default", "modelValue", "type", "value"])) : e.type === "boolean" || (f = e.type) != null && f.includes("boolean") ? (n(), y(B, {
162
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => i("update:modelValue", t))
163
+ }, null, 8, ["default", "modelValue", "type", "value"])) : e.type === "boolean" || (f = e.type) != null && f.includes("boolean") ? (n(), g(B, {
160
164
  key: 2,
161
165
  default: o.default,
162
166
  modelValue: e.modelValue,
163
167
  value: $.value,
164
- "onUpdate:modelValue": l[1] || (l[1] = (t) => u("update:modelValue", t))
165
- }, null, 8, ["default", "modelValue", "value"])) : o.examples && o.examples.length ? (n(), y(B, {
168
+ "onUpdate:modelValue": l[1] || (l[1] = (t) => i("update:modelValue", t))
169
+ }, null, 8, ["default", "modelValue", "value"])) : o.examples && o.examples.length ? (n(), g(B, {
166
170
  key: 3,
167
171
  default: o.default,
168
172
  modelValue: o.modelValue,
169
173
  value: o.examples,
170
- "onUpdate:modelValue": l[2] || (l[2] = (t) => u("update:modelValue", t))
171
- }, null, 8, ["default", "modelValue", "value"])) : (n(), s("div", Y({
174
+ "onUpdate:modelValue": l[2] || (l[2] = (t) => i("update:modelValue", t))
175
+ }, null, 8, ["default", "modelValue", "value"])) : (n(), s("div", _({
172
176
  key: 4,
173
- id: i(O)
177
+ id: u(O)
174
178
  }, e.$attrs, {
175
179
  ref_key: "codeMirrorRef",
176
180
  ref: F,
@@ -179,54 +183,54 @@ const de = { class: "whitespace-nowrap" }, pe = ["id"], fe = {
179
183
  "flow-code-input--error": e.error
180
184
  }],
181
185
  onKeydown: [
182
- l[4] || (l[4] = g(N((t) => b("down", t), ["stop"]), ["down"])),
183
- l[5] || (l[5] = g((t) => b("enter", t), ["enter"])),
184
- l[6] || (l[6] = g((t) => b("escape", t), ["escape"])),
185
- l[7] || (l[7] = g(N((t) => b("up", t), ["stop"]), ["up"]))
186
+ l[4] || (l[4] = v(N((t) => b("down", t), ["stop"]), ["down"])),
187
+ l[5] || (l[5] = v((t) => b("enter", t), ["enter"])),
188
+ l[6] || (l[6] = v((t) => b("escape", t), ["escape"])),
189
+ l[7] || (l[7] = v(N((t) => b("up", t), ["stop"]), ["up"]))
186
190
  ]
187
191
  }), [
188
- e.isCopyable ? (n(), s("div", fe, [
192
+ e.isCopyable ? (n(), s("div", ce, [
189
193
  m("button", {
190
194
  class: "copy-button",
191
195
  type: "button",
192
- onClick: l[3] || (l[3] = (t) => i(K)(i(ee)(e.modelValue)))
196
+ onClick: l[3] || (l[3] = (t) => u(K)(u(le)(e.modelValue)))
193
197
  }, [
194
198
  l[8] || (l[8] = m("span", { class: "sr-only" }, "Copy content", -1)),
195
- Z(i(_), {
199
+ ee(u(oe), {
196
200
  icon: "Clipboard",
197
201
  size: "md"
198
202
  })
199
203
  ])
200
204
  ])) : p("", !0),
201
- e.disableTabIndent ? p("", !0) : (n(), s("div", me, l[9] || (l[9] = [
205
+ e.disableTabIndent ? p("", !0) : (n(), s("div", be, l[9] || (l[9] = [
202
206
  k(" Press "),
203
207
  m("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Esc", -1),
204
208
  k(" then "),
205
209
  m("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Tab", -1),
206
210
  k(" to exit ")
207
211
  ])))
208
- ], 16, pe)),
209
- e.$slots.warning ? (n(), s("div", ce, [
212
+ ], 16, me)),
213
+ e.$slots.warning ? (n(), s("div", ye, [
210
214
  R(e.$slots, "warning", {}, void 0, !0)
211
215
  ])) : p("", !0),
212
- e.$slots.icon ? (n(), s("div", be, [
216
+ e.$slots.icon ? (n(), s("div", ge, [
213
217
  R(e.$slots, "icon", {}, void 0, !0)
214
218
  ])) : p("", !0),
215
- e.required ? (n(), s("div", ye, " Required ")) : p("", !0),
216
- v.value && e.withVariables && i(h) !== "modal" && e.environment ? (n(), y(re, {
219
+ e.required ? (n(), s("div", ve, " Required ")) : p("", !0),
220
+ h.value && e.withVariables && u(w) !== "modal" && e.environment ? (n(), g(ie, {
217
221
  key: 8,
218
222
  ref_key: "dropdownRef",
219
223
  ref: c,
220
- dropdownPosition: P.value,
224
+ dropdownPosition: S.value,
221
225
  envVariables: e.envVariables,
222
226
  environment: e.environment,
223
- query: S.value,
224
- onSelect: i(L)
227
+ query: P.value,
228
+ onSelect: u(W)
225
229
  }, null, 8, ["dropdownPosition", "envVariables", "environment", "query", "onSelect"])) : p("", !0)
226
230
  ], 64);
227
231
  };
228
232
  }
229
233
  });
230
234
  export {
231
- De as default
235
+ Ee as default
232
236
  };
@@ -1 +1 @@
1
- {"version":3,"file":"codeVariableWidget.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/codeVariableWidget.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,oBAAoB,CAAA;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAErE,OAAO,EACL,UAAU,EACV,KAAK,aAAa,EAClB,UAAU,EAEV,UAAU,EACV,KAAK,UAAU,EAEhB,MAAM,wBAAwB,CAAA;AA+H/B;;GAEG;AACH,eAAO,MAAM,UAAU,UAAW;IAChC,WAAW,EAAE,WAAW,GAAG,SAAS,CAAA;IACpC,YAAY,EAAE,YAAY,GAAG,SAAS,CAAA;IACtC,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,UAAU,EAAE,OAAO,GAAG,SAAS,CAAA;CAChC;iBAGkB,aAAa;mBAMX,UAAU;2BASF,UAAU;EAkCpC,CAAA;AAEH,eAAO,MAAM,gBAAgB,uCA8B3B,CAAA"}
1
+ {"version":3,"file":"codeVariableWidget.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/codeVariableWidget.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,oBAAoB,CAAA;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAErE,OAAO,EACL,UAAU,EACV,KAAK,aAAa,EAClB,UAAU,EAEV,UAAU,EACV,KAAK,UAAU,EAEhB,MAAM,wBAAwB,CAAA;AAuI/B;;GAEG;AACH,eAAO,MAAM,UAAU,UAAW;IAChC,WAAW,EAAE,WAAW,GAAG,SAAS,CAAA;IACpC,YAAY,EAAE,YAAY,GAAG,SAAS,CAAA;IACtC,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,UAAU,EAAE,OAAO,GAAG,SAAS,CAAA;CAChC;iBAGkB,aAAa;mBAMX,UAAU;2BASF,UAAU;EAkCpC,CAAA;AAEH,eAAO,MAAM,gBAAgB,uCA8B3B,CAAA"}
@@ -1,46 +1,52 @@
1
- var h = Object.defineProperty;
2
- var u = (n, t, e) => t in n ? h(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
- var l = (n, t, e) => u(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { getEnvColor as f } from "../../libs/env-helpers.js";
5
- import { ScalarButton as b, ScalarIcon as v, ScalarTooltip as g } from "@scalar/components";
6
- import { REGEX as w } from "@scalar/oas-utils/helpers";
7
- import { ViewPlugin as y, RangeSetBuilder as x, Decoration as E, EditorView as N, WidgetType as k } from "@scalar/use-codemirror";
8
- import { defineComponent as C, h as s, createApp as V } from "vue";
9
- import { parseEnvVariables as R } from "../../libs/environment-parser.js";
10
- class d extends k {
11
- constructor(e, o, i, c, a) {
1
+ var f = Object.defineProperty;
2
+ var b = (n, t, e) => t in n ? f(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
+ var r = (n, t, e) => b(n, typeof t != "symbol" ? t + "" : t, e);
4
+ import { getEnvColor as v } from "../../libs/env-helpers.js";
5
+ import { ScalarIcon as h, ScalarButton as g, ScalarTooltip as w } from "@scalar/components";
6
+ import { REGEX as y } from "@scalar/oas-utils/helpers";
7
+ import { ViewPlugin as x, RangeSetBuilder as F, Decoration as N, EditorView as k, WidgetType as C } from "@scalar/use-codemirror";
8
+ import { defineComponent as E, h as s, createApp as V } from "vue";
9
+ import { nanoid as R } from "nanoid";
10
+ import { parseEnvVariables as S } from "../../libs/environment-parser.js";
11
+ class u extends C {
12
+ constructor(e, o, i, l, a) {
12
13
  super();
13
- l(this, "app");
14
- l(this, "environment");
15
- l(this, "envVariables");
16
- l(this, "workspace");
17
- l(this, "isReadOnly");
18
- this.variableName = e, this.variableName = e, this.environment = o, this.envVariables = i, this.workspace = c, this.isReadOnly = a ?? !1;
14
+ r(this, "app");
15
+ r(this, "uid");
16
+ r(this, "environment");
17
+ r(this, "envVariables");
18
+ r(this, "workspace");
19
+ r(this, "isReadOnly");
20
+ this.variableName = e, this.variableName = e, this.environment = o, this.envVariables = i, this.workspace = l, this.isReadOnly = a ?? !1, this.uid = R();
19
21
  }
20
22
  toDOM() {
21
23
  const e = document.createElement("span");
22
24
  e.className = "cm-pill", e.textContent = `${this.variableName}`;
23
- const o = C({
25
+ const o = E({
24
26
  props: { variableName: { type: String, default: null } },
25
27
  render: () => {
26
- const i = this.envVariables ? R(this.envVariables).find((r) => r.key === this.variableName) : void 0, c = i && this.environment ? f(this.environment) : "#8E8E8E";
27
- e.style.setProperty("--tw-bg-base", c || "#8E8E8E"), e.style.opacity = i != null && i.value ? "1" : "0.5";
28
- const a = i != null && i.value ? s("div", { class: "p-2" }, i.value) : s("div", { class: "divide-y divide-1/2 grid" }, [
28
+ var d;
29
+ const i = this.envVariables ? S(this.envVariables).find((m) => m.key === this.variableName) : void 0, l = (i == null ? void 0 : i.source) === "global", a = l ? "#FFFFFF" : i && this.environment ? v(this.environment) : "#FFFFFF";
30
+ e.style.setProperty("--tw-bg-base", a), e.style.opacity = i != null && i.value ? "1" : "0.5";
31
+ const c = s("div", { class: "flex items-center gap-1 whitespace-nowrap" }, [
32
+ (l || ((d = this.environment) == null ? void 0 : d.name) === "No Environment" && (i == null ? void 0 : i.value)) && s(h, { class: "size-2.5 -ml-1", icon: "Globe" }),
33
+ s("span", this.variableName)
34
+ ]), p = i != null && i.value ? s("div", { class: "p-2" }, i.value) : s("div", { class: "divide-y divide-1/2 grid" }, [
29
35
  s("span", { class: "p-2 opacity-25" }, "No value"),
30
36
  !this.isReadOnly && s("div", { class: "p-1" }, [
31
37
  s(
32
- b,
38
+ g,
33
39
  {
34
40
  class: "gap-1.5 justify-start font-normal px-1 py-1.5 h-auto transition-colors rounded no-underline text-xxs w-full hover:bg-b-2",
35
41
  variant: "ghost",
36
42
  onClick: () => {
37
- var r;
38
- window.location.href = `/workspace/${(r = this.workspace) == null ? void 0 : r.uid}/environment`;
43
+ var m;
44
+ window.location.href = `/workspace/${(m = this.workspace) == null ? void 0 : m.uid}/environment`;
39
45
  }
40
46
  },
41
47
  {
42
48
  default: () => [
43
- s(v, {
49
+ s(h, {
44
50
  class: "w-2",
45
51
  icon: "Add",
46
52
  size: "xs"
@@ -52,7 +58,7 @@ class d extends k {
52
58
  ])
53
59
  ]);
54
60
  return s(
55
- g,
61
+ w,
56
62
  {
57
63
  align: "center",
58
64
  class: "w-full",
@@ -61,16 +67,13 @@ class d extends k {
61
67
  sideOffset: 6
62
68
  },
63
69
  {
64
- trigger: () => s("span", `${this.variableName}`),
70
+ trigger: () => c,
65
71
  content: () => s(
66
72
  "div",
67
73
  {
68
- class: [
69
- "border w-content rounded bg-b-1 brightness-lifted text-xxs leading-5 text-c-1",
70
- i != null && i.value ? "border-solid" : "border-dashed"
71
- ]
74
+ class: ["border w-content rounded bg-b-1 brightness-lifted text-xxs leading-5 text-c-1"]
72
75
  },
73
- a
76
+ p
74
77
  )
75
78
  }
76
79
  );
@@ -82,16 +85,16 @@ class d extends k {
82
85
  this.app && this.app.unmount();
83
86
  }
84
87
  eq(e) {
85
- return e instanceof d && e.variableName === this.variableName;
88
+ return e instanceof u && e.variableName === this.variableName && e.uid === this.uid;
86
89
  }
87
90
  ignoreEvent() {
88
91
  return !1;
89
92
  }
90
93
  }
91
- const q = (n) => y.fromClass(
94
+ const z = (n) => x.fromClass(
92
95
  class {
93
96
  constructor(t) {
94
- l(this, "decorations");
97
+ r(this, "decorations");
95
98
  this.decorations = this.buildDecorations(t);
96
99
  }
97
100
  update(t) {
@@ -100,18 +103,18 @@ const q = (n) => y.fromClass(
100
103
  });
101
104
  }
102
105
  buildDecorations(t) {
103
- const e = new x();
106
+ const e = new F();
104
107
  for (const { from: o, to: i } of t.visibleRanges) {
105
- const c = t.state.doc.sliceString(o, i);
108
+ const l = t.state.doc.sliceString(o, i);
106
109
  let a;
107
- for (; (a = w.VARIABLES.exec(c)) !== null; ) {
108
- const r = o + a.index, p = r + a[0].length, m = a[1] ?? "";
110
+ for (; (a = y.VARIABLES.exec(l)) !== null; ) {
111
+ const c = o + a.index, p = c + a[0].length, d = a[1] ?? "";
109
112
  e.add(
110
- r,
113
+ c,
111
114
  p,
112
- E.widget({
113
- widget: new d(
114
- m,
115
+ N.widget({
116
+ widget: new u(
117
+ d,
115
118
  n.environment,
116
119
  n.envVariables,
117
120
  n.workspace,
@@ -128,7 +131,7 @@ const q = (n) => y.fromClass(
128
131
  {
129
132
  decorations: (t) => t.decorations
130
133
  }
131
- ), I = N.domEventHandlers({
134
+ ), I = k.domEventHandlers({
132
135
  keydown(n, t) {
133
136
  if (n.key === "Backspace") {
134
137
  const { state: e } = t, { from: o, to: i } = e.selection.main;
@@ -148,5 +151,5 @@ const q = (n) => y.fromClass(
148
151
  });
149
152
  export {
150
153
  I as backspaceCommand,
151
- q as pillPlugin
154
+ z as pillPlugin
152
155
  };
@@ -0,0 +1,2 @@
1
+ export { default as CodeInput } from './CodeInput.vue';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as t } from "./CodeInput.vue.js";
2
+ export {
3
+ t as CodeInput
4
+ };
@@ -19,6 +19,7 @@ type __VLS_Props = {
19
19
  envVariables: EnvVariable[];
20
20
  workspace: Workspace;
21
21
  description?: string | undefined;
22
+ lineWrapping?: boolean;
22
23
  };
23
24
  declare function __VLS_template(): {
24
25
  attrs: Partial<{}>;
@@ -37,6 +38,7 @@ declare function __VLS_template(): {
37
38
  readonly modelValue: string | number;
38
39
  readonly error?: boolean;
39
40
  readonly emitOnBlur?: boolean;
41
+ readonly extensions?: import("@codemirror/state").Extension[];
40
42
  readonly lineNumbers?: boolean;
41
43
  readonly lint?: boolean;
42
44
  readonly disableTabIndent?: boolean;
@@ -84,6 +86,7 @@ declare function __VLS_template(): {
84
86
  modelValue: string | number;
85
87
  error?: boolean;
86
88
  emitOnBlur?: boolean;
89
+ extensions?: import("@codemirror/state").Extension[];
87
90
  lineNumbers?: boolean;
88
91
  lint?: boolean;
89
92
  disableTabIndent?: boolean;
@@ -129,6 +132,7 @@ declare function __VLS_template(): {
129
132
  disabled: boolean;
130
133
  colorPicker: boolean;
131
134
  emitOnBlur: boolean;
135
+ extensions: import("@codemirror/state").Extension[];
132
136
  disableTabIndent: boolean;
133
137
  disableEnter: boolean;
134
138
  disableCloseBrackets: boolean;
@@ -160,6 +164,7 @@ declare function __VLS_template(): {
160
164
  disabled: boolean;
161
165
  colorPicker: boolean;
162
166
  emitOnBlur: boolean;
167
+ extensions: import("@codemirror/state").Extension[];
163
168
  disableTabIndent: boolean;
164
169
  disableEnter: boolean;
165
170
  disableCloseBrackets: boolean;
@@ -172,6 +177,7 @@ declare function __VLS_template(): {
172
177
  modelValue: string | number;
173
178
  error?: boolean;
174
179
  emitOnBlur?: boolean;
180
+ extensions?: import("@codemirror/state").Extension[];
175
181
  lineNumbers?: boolean;
176
182
  lint?: boolean;
177
183
  disableTabIndent?: boolean;
@@ -199,7 +205,7 @@ declare function __VLS_template(): {
199
205
  "onUpdate:modelValue"?: (v: string) => any;
200
206
  onBlur?: (v: string) => any;
201
207
  onCurl?: (v: string) => any;
202
- }>, "modelValue" | "handleBlur" | "focus" | "codeMirror" | "handleChange" | "handleSubmit" | "booleanOptions" | ("nullable" | "disabled" | "colorPicker" | "emitOnBlur" | "disableTabIndent" | "disableEnter" | "disableCloseBrackets" | "withVariables" | "isCopyable" | "lineWrapping")> & import("vue").ShallowUnwrapRef<{
208
+ }>, "modelValue" | "handleBlur" | "focus" | "codeMirror" | "handleChange" | "handleSubmit" | "booleanOptions" | ("nullable" | "disabled" | "colorPicker" | "emitOnBlur" | "extensions" | "disableTabIndent" | "disableEnter" | "disableCloseBrackets" | "withVariables" | "isCopyable" | "lineWrapping")> & import("vue").ShallowUnwrapRef<{
203
209
  focus: () => void;
204
210
  handleChange: (value: string) => void | null;
205
211
  handleSubmit: (value: string) => void;
@@ -230,6 +236,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
230
236
  }>, {
231
237
  required: boolean;
232
238
  readOnly: boolean;
239
+ lineWrapping: boolean;
233
240
  canAddCustomEnumValue: boolean;
234
241
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
235
242
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;