@snaptrude/plugin-core 0.2.7 → 0.2.8
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 +6 -0
- package/dist/api/documentation/aiInspiration.d.ts +2155 -0
- package/dist/api/documentation/aiInspiration.d.ts.map +1 -0
- package/dist/api/documentation/index.d.ts +13 -0
- package/dist/api/documentation/index.d.ts.map +1 -0
- package/dist/api/index.d.ts +5 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/index.cjs +799 -225
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +732 -225
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/documentation/aiInspiration.ts +871 -0
- package/src/api/documentation/index.ts +15 -0
- package/src/api/index.ts +5 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PluginDocumentationAIInspirationApi } from "./aiInspiration"
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Present documentation APIs for Snaptrude plugins.
|
|
5
|
+
*
|
|
6
|
+
* Accessed via `snaptrude.documentation`.
|
|
7
|
+
*/
|
|
8
|
+
export abstract class PluginDocumentationApi {
|
|
9
|
+
/** AI Inspiration image, video, workflow, and recipe APIs. */
|
|
10
|
+
public abstract aiInspiration: PluginDocumentationAIInspirationApi
|
|
11
|
+
|
|
12
|
+
constructor() {}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export * from "./aiInspiration"
|
package/src/api/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { PluginCoreApi } from "./core"
|
|
|
2
2
|
import { PluginEntityApi } from "./entity"
|
|
3
3
|
import { PluginToolsApi } from "./tools"
|
|
4
4
|
import { PluginUnitsApi } from "./units"
|
|
5
|
+
import { PluginDocumentationApi } from "./documentation"
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Root API surface for Snaptrude plugins.
|
|
@@ -12,6 +13,7 @@ import { PluginUnitsApi } from "./units"
|
|
|
12
13
|
* - {@linkcode PluginApi.entity} — CRUD operations on Snaptrude entities (spaces, stories)
|
|
13
14
|
* - {@linkcode PluginApi.tools} — Copy, offset, selection, and transform tools
|
|
14
15
|
* - {@linkcode PluginApi.units} — Unit conversion utilities
|
|
16
|
+
* - {@linkcode PluginApi.documentation} — Present documentation APIs
|
|
15
17
|
*/
|
|
16
18
|
export abstract class PluginApi {
|
|
17
19
|
/** Core math and geometry primitives. See {@linkcode PluginCoreApi}. */
|
|
@@ -22,11 +24,14 @@ export abstract class PluginApi {
|
|
|
22
24
|
public abstract entity: PluginEntityApi
|
|
23
25
|
/** Unit conversion utilities. See {@linkcode PluginUnitsApi}. */
|
|
24
26
|
public abstract units: PluginUnitsApi
|
|
27
|
+
/** Present documentation APIs. See {@linkcode PluginDocumentationApi}. */
|
|
28
|
+
public abstract documentation: PluginDocumentationApi
|
|
25
29
|
|
|
26
30
|
constructor() {}
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
export * from "./core"
|
|
34
|
+
export * from "./documentation"
|
|
30
35
|
export * from "./entity"
|
|
31
36
|
export * from "./tools"
|
|
32
37
|
export * from "./units"
|