k3-plugin-api 1.0.1 → 1.0.3

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 (2) hide show
  1. package/index.ts +11 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -1,7 +1,17 @@
1
1
  // Beispiel: Typweiterleitung
2
- export type { BasicDynamicModelEditor } from "@k3/core/r3f/dynamicModels/models/components/BasicDynamicModelEditor";
2
+ import type { BasicDynamicModelEditor } from "@k3/core/r3f/dynamicModels/models/components/BasicDynamicModelEditor";
3
3
  import type { DynamicModel } from "#core/types/dynamicModel.interface";
4
4
 
5
+ export type K3API = {
6
+ DynamicModelEditor: BasicDynamicModelEditor;
7
+ };
8
+
9
+ export let K3: K3API;
10
+
11
+ export function init(_ctx: K3API) {
12
+ K3 = _ctx;
13
+ }
14
+
5
15
  // Optional: Interface-Hülle für externe Nutzung
6
16
  export interface K3Plugin {
7
17
  dynamicModels: DynamicModel[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "k3-plugin-api",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "index.js",
5
5
  "types": "index.ts"
6
6
  }