@scalar/api-client 2.26.2 → 2.27.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 (115) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/dist/components/Server/ServerSelector.vue.js +6 -6
  3. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +6 -6
  4. package/dist/style.css +1 -1
  5. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  6. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +29 -25
  7. package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
  8. package/dist/v2/blocks/operation-block/helpers/get-example.js +15 -15
  9. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts +10 -0
  10. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts.map +1 -0
  11. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js +4 -0
  12. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  13. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +6 -6
  14. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  15. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  16. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +62 -69
  17. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  18. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +1 -1
  19. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +7 -7
  20. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
  21. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
  22. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +31 -40
  23. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  24. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +37 -41
  25. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +3 -2
  26. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  27. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +107 -87
  28. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts +21 -0
  29. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts.map +1 -0
  30. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +91 -0
  31. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue2.js +4 -0
  32. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  33. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +107 -93
  34. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -1
  35. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +87 -65
  36. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +36 -0
  37. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts.map +1 -0
  38. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +35 -0
  39. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts +1 -1
  40. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts.map +1 -1
  41. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +18 -10
  42. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts +5 -0
  43. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts.map +1 -0
  44. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +27 -0
  45. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts +3 -1
  46. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts.map +1 -1
  47. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +1 -2
  48. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
  49. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +29 -37
  50. package/dist/v2/components/layout/CollapsibleSection.vue.js +1 -1
  51. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -0
  52. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  53. package/dist/v2/components/sidebar/Sidebar.vue.js +24 -23
  54. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -0
  55. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  56. package/dist/v2/components/sidebar/SidebarMenu.vue.js +30 -30
  57. package/dist/v2/features/app/App.vue.d.ts +5 -0
  58. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  59. package/dist/v2/features/app/App.vue.js +48 -46
  60. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  61. package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
  62. package/dist/v2/features/app/components/AppSidebar.vue2.js +64 -63
  63. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +11 -1
  64. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  65. package/dist/v2/features/app/helpers/create-api-client-app.js +12 -10
  66. package/dist/v2/features/app/helpers/routes.d.ts +2 -0
  67. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  68. package/dist/v2/features/app/hooks/use-theme.d.ts +42 -0
  69. package/dist/v2/features/app/hooks/use-theme.d.ts.map +1 -0
  70. package/dist/v2/features/app/hooks/use-theme.js +34 -0
  71. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  72. package/dist/v2/features/collection/DocumentCollection.vue.js +27 -26
  73. package/dist/v2/features/collection/WorkspaceCollection.vue.js +13 -12
  74. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  75. package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
  76. package/dist/v2/features/collection/components/Authentication.vue2.js +49 -40
  77. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
  78. package/dist/v2/features/collection/components/Cookies.vue.js +26 -13
  79. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
  80. package/dist/v2/features/collection/components/Environment.vue.js +27 -15
  81. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
  82. package/dist/v2/features/collection/components/Overview.vue.js +2 -2
  83. package/dist/v2/features/collection/components/Overview.vue2.js +68 -61
  84. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  85. package/dist/v2/features/collection/components/Servers.vue.js +93 -88
  86. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  87. package/dist/v2/features/collection/components/Settings.vue.js +19 -17
  88. package/dist/v2/features/environments/EnvironmentsList.vue.js +1 -1
  89. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
  90. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +2 -2
  91. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +8 -8
  92. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  93. package/dist/v2/features/modal/Modal.vue.js +15 -15
  94. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  95. package/dist/v2/features/operation/Operation.vue.js +30 -33
  96. package/dist/v2/features/settings/CollectionSettings.vue.d.ts +10 -7
  97. package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -1
  98. package/dist/v2/features/settings/CollectionSettings.vue.js +183 -149
  99. package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
  100. package/dist/v2/features/settings/DocumentSettings.vue.js +88 -79
  101. package/dist/v2/features/settings/components/Section.vue.d.ts +2 -1
  102. package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -1
  103. package/dist/v2/features/settings/components/Section.vue.js +26 -15
  104. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +4 -3
  105. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -1
  106. package/dist/v2/features/settings/helpers/get-theme-colors.js +6 -7
  107. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  108. package/dist/v2/helpers/handle-hotkeys.js +2 -2
  109. package/dist/v2/hooks/use-global-hot-keys.d.ts +3 -1
  110. package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -1
  111. package/dist/v2/hooks/use-global-hot-keys.js +8 -6
  112. package/dist/v2/workspace-events.d.ts.map +1 -1
  113. package/dist/v2/workspace-events.js +13 -6
  114. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  115. package/package.json +18 -17
@@ -2,16 +2,16 @@ import { defineComponent as k, ref as x, watch as B, onBeforeUnmount as y, compu
2
2
  import { ScalarToasts as D } from "@scalar/use-toasts";
3
3
  import { mergeSecurity as I } from "../../blocks/scalar-auth-selector-block/helpers/merge-security.js";
4
4
  import C from "../../components/modals/ModalClientContainer.vue.js";
5
- import { initializeModalEvents as z } from "./modal-events.js";
6
- import A from "../operation/Operation.vue.js";
7
- import { getActiveEnvironment as L } from "../../helpers/get-active-environment.js";
8
- import { useGlobalHotKeys as M } from "../../hooks/use-global-hot-keys.js";
9
- import { useScrollLock as T } from "../../hooks/use-scroll-lock.js";
10
- import $ from "../../components/sidebar/SidebarToggle.vue.js";
5
+ import { initializeModalEvents as A } from "./modal-events.js";
6
+ import L from "../operation/Operation.vue.js";
7
+ import { getActiveEnvironment as M } from "../../helpers/get-active-environment.js";
8
+ import { useGlobalHotKeys as T } from "../../hooks/use-global-hot-keys.js";
9
+ import { useScrollLock as $ } from "../../hooks/use-scroll-lock.js";
10
+ import z from "../../components/sidebar/SidebarToggle.vue.js";
11
11
  import H from "../../components/sidebar/Sidebar.vue.js";
12
12
  const j = {
13
13
  key: 0,
14
- class: "relative flex flex-1"
14
+ class: "relative flex h-full min-h-0 w-full flex-1"
15
15
  }, q = {
16
16
  key: 1,
17
17
  class: "flex h-full w-full items-center justify-center"
@@ -35,16 +35,16 @@ const j = {
35
35
  label: "default",
36
36
  id: "default"
37
37
  }, o = x(!1);
38
- z({
38
+ A({
39
39
  eventBus: e.eventBus,
40
40
  isSidebarOpen: o,
41
41
  sidebarState: e.sidebarState,
42
42
  modalState: e.modalState,
43
43
  store: e.workspaceStore
44
- }), M(e.eventBus, "modal");
44
+ }), T(e.eventBus, "modal", () => !e.modalState.open);
45
45
  const c = () => {
46
46
  e.eventBus.emit("operation:cancel:request");
47
- }, S = T(() => typeof window < "u" ? window.document.body : null);
47
+ }, S = $(() => typeof window < "u" ? window.document.body : null);
48
48
  B(
49
49
  () => e.modalState.open,
50
50
  (a) => {
@@ -54,7 +54,7 @@ const j = {
54
54
  const h = 288, n = u(
55
55
  () => e.workspaceStore?.workspace?.["x-scalar-sidebar-width"] ?? h
56
56
  ), w = (a) => e.workspaceStore?.update("x-scalar-sidebar-width", a), r = u(
57
- () => L(e.workspaceStore, e.document.value)
57
+ () => M(e.workspaceStore, e.document.value)
58
58
  ), b = u(
59
59
  () => I(
60
60
  e.document.value?.components?.securitySchemes,
@@ -70,10 +70,10 @@ const j = {
70
70
  default: W(() => [
71
71
  l(d(D)),
72
72
  e.document.value && e.path?.value && e.method?.value ? (i(), v("main", j, [
73
- l(d($), {
73
+ l(d(z), {
74
74
  modelValue: o.value,
75
75
  "onUpdate:modelValue": t[0] || (t[0] = (m) => o.value = m),
76
- class: "absolute top-2 left-3 z-[10001]"
76
+ class: "absolute top-2 left-3 z-2"
77
77
  }, null, 8, ["modelValue"]),
78
78
  E(l(d(H), {
79
79
  sidebarWidth: n.value,
@@ -82,7 +82,7 @@ const j = {
82
82
  w
83
83
  ],
84
84
  activeWorkspace: s,
85
- class: "z-[10000] h-full max-md:absolute! max-md:w-full!",
85
+ class: "h-full max-md:absolute! max-md:w-full!",
86
86
  documents: [e.document.value],
87
87
  eventBus: e.eventBus,
88
88
  isDroppable: () => !1,
@@ -93,7 +93,7 @@ const j = {
93
93
  }, null, 8, ["sidebarWidth", "documents", "eventBus", "sidebarState", "onSelectItem"]), [
94
94
  [U, o.value]
95
95
  ]),
96
- l(A, {
96
+ l(L, {
97
97
  activeWorkspace: s,
98
98
  class: "flex-1",
99
99
  document: e.document.value,
@@ -1 +1 @@
1
- {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/operation/Operation.vue"],"names":[],"mappings":"AA+NA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAElE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAM/D;;;;;;;GAOG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAGzC,QAAA,MAAM,YAAY;IAEd,6CAA6C;cACnC,UAAU,CAAC,SAAS,CAAC;;IAD/B,6CAA6C;cACnC,UAAU,CAAC,SAAS,CAAC;iGA+R/B,CAAC"}
1
+ {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/operation/Operation.vue"],"names":[],"mappings":"AAqNA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAElE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAM/D;;;;;;;GAOG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAGzC,QAAA,MAAM,YAAY;IAEd,6CAA6C;cACnC,UAAU,CAAC,SAAS,CAAC;;IAD/B,6CAA6C;cACnC,UAAU,CAAC,SAAS,CAAC;iGAqR/B,CAAC"}
@@ -1,15 +1,15 @@
1
- import { defineComponent as f, computed as n, toValue as r, onMounted as k, createBlock as x, createElementBlock as g, openBlock as i, unref as l, createElementVNode as w } from "vue";
1
+ import { defineComponent as f, computed as n, toValue as o, createBlock as k, createElementBlock as g, openBlock as i, unref as l, createElementVNode as x } from "vue";
2
2
  import { getResolvedRef as m } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
- import { mapHiddenClientsConfig as C } from "../modal/helpers/map-hidden-clients-config.js";
4
- import { combineParams as B } from "./helpers/combine-params.js";
5
- import { getSelectedServer as U } from "./helpers/get-selected-server.js";
6
- import { getServers as b } from "../../helpers/get-servers.js";
7
- import N from "../../blocks/operation-block/OperationBlock.vue.js";
8
- const E = {
3
+ import { mapHiddenClientsConfig as w } from "../modal/helpers/map-hidden-clients-config.js";
4
+ import { combineParams as C } from "./helpers/combine-params.js";
5
+ import { getSelectedServer as B } from "./helpers/get-selected-server.js";
6
+ import { getServers as U } from "../../helpers/get-servers.js";
7
+ import b from "../../blocks/operation-block/OperationBlock.vue.js";
8
+ const N = {
9
9
  key: 1,
10
10
  class: "flex h-full w-full items-center justify-center"
11
- }, O = {}, K = /* @__PURE__ */ f({
12
- ...O,
11
+ }, E = {}, I = /* @__PURE__ */ f({
12
+ ...E,
13
13
  __name: "Operation",
14
14
  props: {
15
15
  documentSlug: {},
@@ -24,19 +24,20 @@ const E = {
24
24
  workspaceStore: {},
25
25
  activeWorkspace: {},
26
26
  plugins: {},
27
+ customThemes: {},
27
28
  options: {}
28
29
  },
29
30
  setup(e) {
30
- const c = n(() => e.path ? m(e.document?.paths?.[e.path]) : null), u = n(() => {
31
+ const r = n(() => e.path ? m(e.document?.paths?.[e.path]) : null), c = n(() => {
31
32
  if (!e.path || !e.method)
32
33
  return null;
33
34
  const t = m(e.document?.paths?.[e.path]?.[e.method]);
34
35
  if (!t)
35
36
  return null;
36
- if (!c.value)
37
+ if (!r.value)
37
38
  return t;
38
- const a = B(
39
- c.value.parameters,
39
+ const a = C(
40
+ r.value.parameters,
40
41
  t.parameters
41
42
  );
42
43
  return { ...t, parameters: a };
@@ -49,19 +50,15 @@ const E = {
49
50
  ...t,
50
51
  location: "document"
51
52
  }))
52
- ]), o = n(() => {
53
- const t = r(e.options)?.servers ?? u.value?.servers ?? c.value?.servers ?? e.document?.servers;
54
- return b(t, {
55
- baseServerUrl: r(e.options)?.baseServerURL,
53
+ ]), u = n(() => {
54
+ const t = o(e.options)?.servers ?? c.value?.servers ?? r.value?.servers ?? e.document?.servers;
55
+ return U(t, {
56
+ baseServerUrl: o(e.options)?.baseServerURL,
56
57
  documentUrl: e.document?.["x-scalar-original-source-url"]
57
58
  });
58
59
  }), d = n(
59
- () => U(e.document, o.value)
60
- );
61
- k(() => {
62
- typeof e.document?.["x-scalar-selected-server"] > "u" && o.value?.[0]?.url && e.eventBus.emit("server:update:selected", { url: o.value[0].url });
63
- });
64
- const v = n(() => e.document?.["x-scalar-set-operation-security"] ? {
60
+ () => B(e.document, u.value)
61
+ ), v = n(() => e.document?.["x-scalar-set-operation-security"] ? {
65
62
  type: "operation",
66
63
  path: e.path ?? "",
67
64
  method: e.method ?? "get"
@@ -75,9 +72,9 @@ const E = {
75
72
  })
76
73
  )
77
74
  )), S = n(
78
- () => C(r(e.options)?.hiddenClients)
79
- ), y = "2.26.2";
80
- return (t, a) => e.path && e.method && e.exampleName && u.value ? (i(), x(l(N), {
75
+ () => w(o(e.options)?.hiddenClients)
76
+ ), y = "2.27.1";
77
+ return (t, a) => e.path && e.method && e.exampleName && c.value ? (i(), k(l(b), {
81
78
  key: 0,
82
79
  activeEnvironment: e.workspaceStore.workspace["x-scalar-active-environment"],
83
80
  appVersion: l(y),
@@ -93,12 +90,12 @@ const E = {
93
90
  eventBus: e.eventBus,
94
91
  exampleKey: e.exampleName,
95
92
  globalCookies: s.value,
96
- hideClientButton: r(e.options)?.hideClientButton ?? !1,
93
+ hideClientButton: o(e.options)?.hideClientButton ?? !1,
97
94
  history: e.workspaceStore.history.getHistory(e.documentSlug, e.path, e.method),
98
95
  httpClients: S.value,
99
96
  layout: e.layout,
100
97
  method: e.method,
101
- operation: u.value,
98
+ operation: c.value,
102
99
  operationSelectedSecurity: e.workspaceStore.auth.getAuthSelectedSchemas({
103
100
  type: "operation",
104
101
  documentName: e.documentSlug,
@@ -111,14 +108,14 @@ const E = {
111
108
  securitySchemes: e.securitySchemes,
112
109
  selectedClient: e.workspaceStore.workspace["x-scalar-default-client"],
113
110
  server: d.value,
114
- servers: o.value,
111
+ servers: u.value,
115
112
  setOperationSecurity: e.document?.["x-scalar-set-operation-security"] ?? !1,
116
- "onUpdate:servers": a[0] || (a[0] = (V) => e.eventBus.emit("ui:navigate", { page: "document", path: "servers" }))
117
- }, null, 8, ["activeEnvironment", "appVersion", "authMeta", "documentSecurity", "documentSelectedSecurity", "documentUrl", "environment", "environments", "eventBus", "exampleKey", "globalCookies", "hideClientButton", "history", "httpClients", "layout", "method", "operation", "operationSelectedSecurity", "path", "plugins", "proxyUrl", "securitySchemes", "selectedClient", "server", "servers", "setOperationSecurity"])) : (i(), g("div", E, [...a[1] || (a[1] = [
118
- w("span", { class: "text-c-3" }, "Select an operation to view details", -1)
113
+ "onUpdate:servers": a[0] || (a[0] = (O) => e.eventBus.emit("ui:navigate", { page: "document", path: "servers" }))
114
+ }, null, 8, ["activeEnvironment", "appVersion", "authMeta", "documentSecurity", "documentSelectedSecurity", "documentUrl", "environment", "environments", "eventBus", "exampleKey", "globalCookies", "hideClientButton", "history", "httpClients", "layout", "method", "operation", "operationSelectedSecurity", "path", "plugins", "proxyUrl", "securitySchemes", "selectedClient", "server", "servers", "setOperationSecurity"])) : (i(), g("div", N, [...a[1] || (a[1] = [
115
+ x("span", { class: "text-c-3" }, "Select an operation to view details", -1)
119
116
  ])]));
120
117
  }
121
118
  });
122
119
  export {
123
- K as default
120
+ I as default
124
121
  };
@@ -1,20 +1,23 @@
1
- import { type ThemeId } from '@scalar/themes';
1
+ import { type Theme } from '@scalar/themes';
2
+ type ColorMode = 'system' | 'light' | 'dark';
2
3
  type __VLS_Props = {
3
4
  /** Currently active proxy URL, when set to null means no proxy */
4
5
  activeProxyUrl?: string | null;
6
+ /** Custom themes available to the team */
7
+ customThemes?: Theme[];
5
8
  /** Currently active theme ID */
6
- activeThemeId: ThemeId;
9
+ activeThemeSlug?: string;
7
10
  /** Currently active color mode */
8
- colorMode: 'system' | 'light' | 'dark';
11
+ colorMode: ColorMode;
9
12
  };
10
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
11
- "update:colorMode": (value: "dark" | "light" | "system") => any;
14
+ "update:colorMode": (value: ColorMode) => any;
12
15
  "update:proxyUrl": (value: string | null) => any;
13
- "update:themeId": (value: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none") => any;
16
+ "update:themeSlug": (value: string | undefined) => any;
14
17
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- "onUpdate:colorMode"?: ((value: "dark" | "light" | "system") => any) | undefined;
18
+ "onUpdate:colorMode"?: ((value: ColorMode) => any) | undefined;
16
19
  "onUpdate:proxyUrl"?: ((value: string | null) => any) | undefined;
17
- "onUpdate:themeId"?: ((value: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none") => any) | undefined;
20
+ "onUpdate:themeSlug"?: ((value: string | undefined) => any) | undefined;
18
21
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
22
  declare const _default: typeof __VLS_export;
20
23
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"CollectionSettings.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/settings/CollectionSettings.vue"],"names":[],"mappings":"AAuQA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AAQvB,KAAK,WAAW,GAAG;IACjB,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,gCAAgC;IAChC,aAAa,EAAE,OAAO,CAAA;IACtB,kCAAkC;IAClC,SAAS,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;CACvC,CAAC;AA2iBF,QAAA,MAAM,YAAY;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"CollectionSettings.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/settings/CollectionSettings.vue"],"names":[],"mappings":"AAkTA,OAAO,EAIL,KAAK,KAAK,EAEX,MAAM,gBAAgB,CAAA;AASvB,KAAK,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;AAE5C,KAAK,WAAW,GAAG;IACjB,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,0CAA0C;IAC1C,YAAY,CAAC,EAAE,KAAK,EAAE,CAAA;IACtB,gCAAgC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,kCAAkC;IAClC,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAgnBF,QAAA,MAAM,YAAY;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}