@lapis-notes/history 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 +1 -1
- package/README.md +1 -1
- package/dist/history-plugin.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/manifest.json +1 -1
- package/package.json +5 -3
- package/registry.json +12 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Register the exported plugin class in the application's `PluginProfile`. Import
|
|
|
13
13
|
registration so the host owns its lifecycle.
|
|
14
14
|
|
|
15
15
|
The runtime plugin ID is `history`. A matching signed
|
|
16
|
-
`history-0.1.
|
|
16
|
+
`history-0.1.2.lapis-plugin` archive is attached to the
|
|
17
17
|
package-scoped GitHub release for manual or registry installation.
|
|
18
18
|
|
|
19
19
|
See the [repository README](https://github.com/lapismd/lapis-plugins#readme) for
|
package/dist/history-plugin.js
CHANGED
|
@@ -7,7 +7,7 @@ import { isHistoryTrackedFile } from "./history-tracking";
|
|
|
7
7
|
import { HistoryCompareView } from "./history-compare-view";
|
|
8
8
|
import { HistoryView } from "./history-view";
|
|
9
9
|
import { HistoryCompareViewType, HistoryViewType, } from "./history-view-type";
|
|
10
|
-
import manifestSpec from "
|
|
10
|
+
import manifestSpec from "@lapis-notes/history/manifest.json";
|
|
11
11
|
export const HISTORY_PLUGIN_ID = "history";
|
|
12
12
|
function orderNewestFirst(revisions) {
|
|
13
13
|
return [...revisions].sort((left, right) => right.createdAt - left.createdAt);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./styles.css";
|
|
2
|
-
export { default as manifest } from "
|
|
2
|
+
export { default as manifest } from "@lapis-notes/history/manifest.json";
|
|
3
3
|
export { HistoryComparePanel, HistoryPanel } from "./public-components";
|
|
4
4
|
export { HISTORY_PLUGIN_ID, HistoryPlugin, } from "./history-plugin";
|
|
5
5
|
export type { HistoryCaptureEventType, HistoryCompareAnchor, HistoryCompareMode, HistoryCompareViewState, HistoryComparisonModel, HistoryFileHistory, HistoryRevision, HistoryViewModel, } from "./history-plugin";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./styles.css";
|
|
2
|
-
export { default as manifest } from "
|
|
2
|
+
export { default as manifest } from "@lapis-notes/history/manifest.json";
|
|
3
3
|
export { HistoryComparePanel, HistoryPanel } from "./public-components";
|
|
4
4
|
export { HISTORY_PLUGIN_ID, HistoryPlugin, } from "./history-plugin";
|
|
5
5
|
export { DEFAULT_HISTORY_EXCLUDE_GLOBS, DEFAULT_HISTORY_SETTINGS, mergeHistorySettings, patchHistorySettings, } from "./history-settings";
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lapis-notes/history",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Lapis Notes file history plugin",
|
|
5
5
|
"license": "AGPL-3.0-or-later",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
9
|
"manifest.json",
|
|
10
|
+
"registry.json",
|
|
10
11
|
"styles.css",
|
|
11
12
|
"README.md",
|
|
12
13
|
"CHANGELOG.md",
|
|
@@ -27,14 +28,15 @@
|
|
|
27
28
|
"default": "./dist/index.js"
|
|
28
29
|
},
|
|
29
30
|
"./manifest.json": "./manifest.json",
|
|
30
|
-
"./styles.css": "./styles.css"
|
|
31
|
+
"./styles.css": "./styles.css",
|
|
32
|
+
"./registry.json": "./registry.json"
|
|
31
33
|
},
|
|
32
34
|
"dependencies": {
|
|
33
|
-
"@lapis-notes/api": "^0.1.0",
|
|
34
35
|
"@lapismd/design-core": "^0.1.0",
|
|
35
36
|
"@lucide/svelte": "^0.523.0"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {
|
|
39
|
+
"@lapis-notes/api": "^0.1.0",
|
|
38
40
|
"svelte": "^5.0.0"
|
|
39
41
|
},
|
|
40
42
|
"devDependencies": {
|
package/registry.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://registry.lapis.md/schemas/plugin-source.schema.json",
|
|
3
|
+
"schemaVersion": 1,
|
|
4
|
+
"categories": ["history", "versioning"],
|
|
5
|
+
"highlights": [
|
|
6
|
+
"Capture bounded local revisions as vault files change.",
|
|
7
|
+
"Compare saved revisions with the current document.",
|
|
8
|
+
"Restore selected content through the normal vault write path."
|
|
9
|
+
],
|
|
10
|
+
"documentationUrl": "https://github.com/lapismd/lapis-plugins/tree/main/packages/history#readme",
|
|
11
|
+
"content": { "overview": "README.md", "changelog": "CHANGELOG.md" }
|
|
12
|
+
}
|