@vuetify/vue-repl 2.3.0 → 2.3.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/dist/vue-repl.js CHANGED
@@ -17630,6 +17630,8 @@ class ReplStore {
17630
17630
  if (!files[mainFile]) {
17631
17631
  mainFile = Object.keys(files)[0];
17632
17632
  }
17633
+ const savedShowFileExplorer = localStorage.getItem("showFileExplorer");
17634
+ const showFileExplorer = savedShowFileExplorer !== null ? savedShowFileExplorer === "true" : true;
17633
17635
  this.state = reactive({
17634
17636
  mainFile,
17635
17637
  files,
@@ -17640,7 +17642,7 @@ class ReplStore {
17640
17642
  typescriptVersion: "latest",
17641
17643
  typescriptLocale: void 0,
17642
17644
  resetFlip: true,
17643
- showFileExplorer: true
17645
+ showFileExplorer
17644
17646
  });
17645
17647
  this.initImportMap();
17646
17648
  this.initLinks();
@@ -17653,6 +17655,12 @@ class ReplStore {
17653
17655
  (errs) => this.state.errors = errs
17654
17656
  )
17655
17657
  );
17658
+ watch(
17659
+ () => this.state.showFileExplorer,
17660
+ (value) => {
17661
+ localStorage.setItem("showFileExplorer", String(value));
17662
+ }
17663
+ );
17656
17664
  watch(
17657
17665
  () => [
17658
17666
  this.state.files[tsconfigFile]?.code,
@@ -18105,7 +18113,7 @@ function useFileSelector() {
18105
18113
  };
18106
18114
  }
18107
18115
 
18108
- const _hoisted_1$1 = { class: "d-flex gap-1" };
18116
+ const _hoisted_1$1 = { class: "d-flex ga-1 align-center" };
18109
18117
  const MAX_RECENT_FILES = 10;
18110
18118
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
18111
18119
  __name: "FileSelector",