@aionbuilders/nabu 0.1.0-alpha.10 → 0.1.0-alpha.11

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.
@@ -1,5 +1,8 @@
1
1
  <script>
2
- /** @import { ContextMenuSection, Context } from './context.svelte.js' */
2
+ /**
3
+ * @typedef {import('./context.svelte.js').ContextMenuSection} ContextMenuSection
4
+ * @typedef {import('./context.svelte.js').Context} Context
5
+ */
3
6
  import { untrack } from 'svelte';
4
7
  import { fly } from 'svelte/transition';
5
8
  import { setMenuContext } from './context.svelte.js';
@@ -1,4 +1,6 @@
1
1
  export default Context;
2
+ export type ContextMenuSection = import("./context.svelte.js").ContextMenuSection;
3
+ export type Context = import("./context.svelte.js").Context;
2
4
  type Context = {
3
5
  $on?(type: string, callback: (e: any) => void): () => void;
4
6
  $set?(props: Partial<$$ComponentProps>): void;
@@ -8,7 +10,6 @@ declare const Context: import("svelte").Component<{
8
10
  y: number;
9
11
  context: Context;
10
12
  }, {}, "">;
11
- import type { Context } from './context.svelte.js';
12
13
  type $$ComponentProps = {
13
14
  x: number;
14
15
  y: number;
@@ -29,7 +29,7 @@ export class ContextMenu {
29
29
  component: import("svelte").Component<{
30
30
  x: number;
31
31
  y: number;
32
- context: Context;
32
+ context: ContextComponent;
33
33
  }, {}, ""> | undefined;
34
34
  instance: {} | null;
35
35
  /** @param {MouseEvent} event */
@@ -79,3 +79,4 @@ export type ContextView = {
79
79
  sections: ContextMenuSection[];
80
80
  };
81
81
  import type { Nabu } from "../../index.js";
82
+ import ContextComponent from "./Context.svelte";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aionbuilders/nabu",
3
- "version": "0.1.0-alpha.10",
3
+ "version": "0.1.0-alpha.11",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",