@lapis-notes/graph 0.1.0

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 (51) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/LICENSE.md +8 -0
  3. package/README.md +20 -0
  4. package/dist/embed.d.ts +5 -0
  5. package/dist/embed.js +4 -0
  6. package/dist/graph-build-generation.d.ts +6 -0
  7. package/dist/graph-build-generation.js +13 -0
  8. package/dist/graph-controls-overlay.svelte +840 -0
  9. package/dist/graph-controls-overlay.svelte.d.ts +30 -0
  10. package/dist/graph-data-coordinator.d.ts +41 -0
  11. package/dist/graph-data-coordinator.js +265 -0
  12. package/dist/graph-data.d.ts +23 -0
  13. package/dist/graph-data.js +493 -0
  14. package/dist/graph-embed.svelte +92 -0
  15. package/dist/graph-embed.svelte.d.ts +12 -0
  16. package/dist/graph-file-preview.svelte +115 -0
  17. package/dist/graph-file-preview.svelte.d.ts +12 -0
  18. package/dist/graph-hover-intent.d.ts +22 -0
  19. package/dist/graph-hover-intent.js +85 -0
  20. package/dist/graph-load-alignment.d.ts +2 -0
  21. package/dist/graph-load-alignment.js +3 -0
  22. package/dist/graph-navigation.d.ts +7 -0
  23. package/dist/graph-navigation.js +78 -0
  24. package/dist/graph-node-activation.d.ts +4 -0
  25. package/dist/graph-node-activation.js +16 -0
  26. package/dist/graph-plugin.d.ts +38 -0
  27. package/dist/graph-plugin.js +177 -0
  28. package/dist/graph-problems.d.ts +15 -0
  29. package/dist/graph-problems.js +46 -0
  30. package/dist/graph-query-resolution.d.ts +9 -0
  31. package/dist/graph-query-resolution.js +44 -0
  32. package/dist/graph-renderer.d.ts +226 -0
  33. package/dist/graph-renderer.js +1350 -0
  34. package/dist/graph-settings.d.ts +20 -0
  35. package/dist/graph-settings.js +125 -0
  36. package/dist/graph-types.d.ts +74 -0
  37. package/dist/graph-types.js +1 -0
  38. package/dist/graph-view.d.ts +62 -0
  39. package/dist/graph-view.js +553 -0
  40. package/dist/graph-viewport-alignment.d.ts +6 -0
  41. package/dist/graph-viewport-alignment.js +9 -0
  42. package/dist/index.d.ts +9 -0
  43. package/dist/index.js +8 -0
  44. package/dist/mount-local-component.svelte.d.ts +7 -0
  45. package/dist/mount-local-component.svelte.js +12 -0
  46. package/dist/public-components.d.ts +2 -0
  47. package/dist/public-components.js +2 -0
  48. package/dist/styles.css +441 -0
  49. package/manifest.json +30 -0
  50. package/package.json +84 -0
  51. package/styles.css +1 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ # Graph changelog
2
+
3
+ ## 0.1.0
4
+
5
+ - Initial independent public package extracted from Lapis Notes without changing
6
+ the runtime plugin ID.
package/LICENSE.md ADDED
@@ -0,0 +1,8 @@
1
+ # License
2
+
3
+ Copyright (c) LapisMD contributors.
4
+
5
+ This software is licensed under the GNU Affero General Public License, version
6
+ 3 or (at your option) any later version (`AGPL-3.0-or-later`). The complete
7
+ license text is available from the
8
+ [GNU Project](https://www.gnu.org/licenses/agpl-3.0.html).
package/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # Graph
2
+
3
+ Global and local graph views powered by indexed metadata
4
+
5
+ ## Install for static composition
6
+
7
+ ```sh
8
+ pnpm add @lapis-notes/graph
9
+ ```
10
+
11
+ Register the exported plugin class in the application's `PluginProfile`. Import
12
+ `@lapis-notes/graph/styles.css?inline` and pass the CSS through the static
13
+ registration so the host owns its lifecycle.
14
+
15
+ The runtime plugin ID is `lapis-graph`. A matching signed
16
+ `lapis-graph-0.1.0.lapis-plugin` archive is attached to the
17
+ package-scoped GitHub release for manual or registry installation.
18
+
19
+ See the [repository README](https://github.com/lapismd/lapis-plugins#readme) for
20
+ development, validation, and release-gate details.
@@ -0,0 +1,5 @@
1
+ import "./styles.css";
2
+ export { GraphEmbed } from "./public-components";
3
+ export { GraphRenderer } from "./graph-renderer";
4
+ export { DEFAULT_GRAPH_SETTINGS, mergeGraphSettings, patchGraphSettings, } from "./graph-settings";
5
+ export type { GraphData, GraphGroupRule, GraphLink, GraphLinkType, GraphNode, GraphNodeType, GraphSearchAdapter, GraphSettings, GraphSettingsPatch, } from "./graph-types";
package/dist/embed.js ADDED
@@ -0,0 +1,4 @@
1
+ import "./styles.css";
2
+ export { GraphEmbed } from "./public-components";
3
+ export { GraphRenderer } from "./graph-renderer";
4
+ export { DEFAULT_GRAPH_SETTINGS, mergeGraphSettings, patchGraphSettings, } from "./graph-settings";
@@ -0,0 +1,6 @@
1
+ export declare class GraphBuildGeneration {
2
+ private current;
3
+ next(): number;
4
+ isCurrent(generation: number): boolean;
5
+ invalidate(): void;
6
+ }
@@ -0,0 +1,13 @@
1
+ export class GraphBuildGeneration {
2
+ current = 0;
3
+ next() {
4
+ this.current += 1;
5
+ return this.current;
6
+ }
7
+ isCurrent(generation) {
8
+ return generation === this.current;
9
+ }
10
+ invalidate() {
11
+ this.current += 1;
12
+ }
13
+ }