@lapis-notes/file-explorer 0.1.0 → 0.1.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @lapis-notes/file-explorer
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#4](https://github.com/lapismd/lapis-notes/pull/4) [`c1ad3c4`](https://github.com/lapismd/lapis-notes/commit/c1ad3c4acee2eac1ae87c22f66e946d2e0db3bf2) Thanks [@stevejuma](https://github.com/stevejuma)! - Require published Design Core 0.3.2 for native window-controls spacing, bold settings headings, selected-tab indicators and mobile shell teardown. Consume the npm release through portable semver ranges and lockfile integrity.
8
+
9
+ - Updated dependencies [[`39f886d`](https://github.com/lapismd/lapis-notes/commit/39f886d017a28d916b3f6cac7d08b7723a04f45b), [`c1ad3c4`](https://github.com/lapismd/lapis-notes/commit/c1ad3c4acee2eac1ae87c22f66e946d2e0db3bf2), [`1e949fc`](https://github.com/lapismd/lapis-notes/commit/1e949fc9d51b795a50760e1146a9599602746c6b)]:
10
+ - @lapis-notes/api@0.1.2
11
+
12
+ ## 0.1.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Reuse the active landing leaf when opening a file through File Explorer.
17
+
18
+ - Updated dependencies []:
19
+ - @lapis-notes/api@0.1.1
20
+
3
21
  ## 0.1.0
4
22
 
5
23
  ### Minor Changes
package/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- AGPL-3.0-or-later
1
+ Apache-2.0
2
2
 
3
- This package is licensed under the GNU Affero General Public License v3.0 or later.
4
- See <https://www.gnu.org/licenses/agpl-3.0.en.html>.
3
+ This package is licensed under the Apache License 2.0.
4
+ See <https://www.apache.org/licenses/LICENSE-2.0>.
@@ -1,6 +1,13 @@
1
1
  import { findOpenFileLeaf, } from "@lapis-notes/api";
2
2
  export async function openExplorerFile(app, file, disposition) {
3
3
  if (disposition === "current") {
4
+ const activeRootLeaf = app.workspace.activeRootLeaf;
5
+ if (activeRootLeaf?.view.getViewType() === "lapis-landing") {
6
+ app.workspace.activeLeaf = activeRootLeaf;
7
+ await activeRootLeaf.openFile(file);
8
+ await app.workspace.revealLeaf(activeRootLeaf);
9
+ return;
10
+ }
4
11
  await app.openFile(file);
5
12
  return;
6
13
  }
@@ -27,7 +27,7 @@ export declare function createExplorerSettingsSection(): {
27
27
  itemType: "string";
28
28
  title: string;
29
29
  description: string;
30
- default: ("text" | "data" | "md" | "markdown" | "txt" | "json" | "yaml" | "yml")[];
30
+ default: ("md" | "markdown" | "txt" | "text" | "json" | "data" | "yaml" | "yml")[];
31
31
  })[];
32
32
  };
33
33
  export declare function registerExplorerSettings(plugin: Plugin): void;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@lapis-notes/file-explorer",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Reusable Lapis Notes file explorer plugin",
5
- "license": "AGPL-3.0-or-later",
5
+ "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/lapismd/lapis-notes.git",
@@ -38,8 +38,8 @@
38
38
  }
39
39
  },
40
40
  "dependencies": {
41
- "@lapis-notes/api": "^0.1.0",
42
- "@lapismd/design-core": "^0.1.0"
41
+ "@lapis-notes/api": "^0.1.2",
42
+ "@lapismd/design-core": "^0.3.2"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "svelte": "^5.0.0"
@@ -49,7 +49,7 @@
49
49
  "@sveltejs/vite-plugin-svelte": "^5.1.1",
50
50
  "@tsconfig/svelte": "^5.0.5",
51
51
  "publint": "^0.3.12",
52
- "svelte": "^5.38.2",
52
+ "svelte": "5.56.10",
53
53
  "svelte-check": "^4.3.1",
54
54
  "typescript": "~5.8.3",
55
55
  "vite": "^6.4.2",