@luna-park/plugin 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.
- package/README.md +139 -0
- package/dist/extractor.cjs +16 -0
- package/dist/extractor.d.ts +245 -0
- package/dist/extractor.js +577 -0
- package/dist/index-CxGB_fZK.js +394 -0
- package/dist/index-DmZsz62R.cjs +5 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +483 -19
- package/dist/index.js +18 -70
- package/package.json +21 -16
- package/dist/index.umd.cjs +0 -1
package/dist/index.js
CHANGED
|
@@ -1,74 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
array: (e, n = {}) => ({ ...n, type: "array", items: e }),
|
|
5
|
-
boolean: (e = {}) => ({
|
|
6
|
-
...e,
|
|
7
|
-
type: "boolean"
|
|
8
|
-
/* boolean */
|
|
9
|
-
}),
|
|
10
|
-
exec: (e = {}) => ({
|
|
11
|
-
...e,
|
|
12
|
-
type: "exec"
|
|
13
|
-
/* exec */
|
|
14
|
-
}),
|
|
15
|
-
function: (e, n = {
|
|
16
|
-
type: "undefined"
|
|
17
|
-
/* undefined */
|
|
18
|
-
}, o = {}) => ({ ...o, type: "function", inputs: e, output: n }),
|
|
19
|
-
interface: (e, n = {}) => ({
|
|
20
|
-
...n,
|
|
21
|
-
type: "interface",
|
|
22
|
-
className: typeof e == "string" ? e : e.name
|
|
23
|
-
}),
|
|
24
|
-
number: (e = {}) => ({
|
|
25
|
-
...e,
|
|
26
|
-
type: "number"
|
|
27
|
-
/* number */
|
|
28
|
-
}),
|
|
29
|
-
object: (e = {}, n = {}) => ({ ...n, type: "object", properties: e }),
|
|
30
|
-
string: (e = {}) => ({
|
|
31
|
-
...e,
|
|
32
|
-
type: "string"
|
|
33
|
-
/* string */
|
|
34
|
-
}),
|
|
35
|
-
undefined: (e = {}) => ({
|
|
36
|
-
...e,
|
|
37
|
-
type: "undefined"
|
|
38
|
-
/* undefined */
|
|
39
|
-
}),
|
|
40
|
-
union: (e, n = {}) => ({ ...n, type: "union", elements: e }),
|
|
41
|
-
unknown: (e = {}) => ({
|
|
42
|
-
...e,
|
|
43
|
-
type: "unknown"
|
|
44
|
-
/* unknown */
|
|
45
|
-
}),
|
|
46
|
-
void: (e = {}) => ({
|
|
47
|
-
...e,
|
|
48
|
-
type: "void"
|
|
49
|
-
/* void */
|
|
50
|
-
})
|
|
51
|
-
};
|
|
52
|
-
var r = /* @__PURE__ */ ((e) => (e.function = "function", e.macro = "macro", e.operation = "operation", e))(r || {}), a = /* @__PURE__ */ ((e) => (e.Frontend = "frontend", e.Backend = "backend", e.Desktop = "desktop", e.Shared = "shared", e))(a || {});
|
|
53
|
-
function u(e) {
|
|
54
|
-
return e;
|
|
55
|
-
}
|
|
56
|
-
function c(e) {
|
|
57
|
-
return e;
|
|
1
|
+
import { J as r, _ as p, i as t, u, x as f, T as g } from "./index-CxGB_fZK.js";
|
|
2
|
+
function n(o) {
|
|
3
|
+
return o;
|
|
58
4
|
}
|
|
59
|
-
async function
|
|
60
|
-
return typeof
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
5
|
+
async function a(o, i) {
|
|
6
|
+
return typeof o == "function" ? o({
|
|
7
|
+
app: i.app,
|
|
8
|
+
config: i.config,
|
|
9
|
+
internal: i.internal,
|
|
10
|
+
mode: i.mode || "editor"
|
|
11
|
+
}) : o;
|
|
65
12
|
}
|
|
66
13
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
14
|
+
r as ELogicScope,
|
|
15
|
+
p as ELogicType,
|
|
16
|
+
t as EVarType,
|
|
17
|
+
u as LogicType,
|
|
18
|
+
f as LogicUtil,
|
|
19
|
+
a as getPluginParam,
|
|
20
|
+
g as makeLogicNode,
|
|
21
|
+
n as makePlugin
|
|
74
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luna-park/plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Plugin helper for Luna Park.",
|
|
6
6
|
"homepage": "https://luna-park.app",
|
|
@@ -18,6 +18,11 @@
|
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
19
|
"require": "./dist/index.umd.cjs",
|
|
20
20
|
"import": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./extractor": {
|
|
23
|
+
"types": "./dist/extractor.d.ts",
|
|
24
|
+
"require": "./dist/extractor.cjs",
|
|
25
|
+
"import": "./dist/extractor.js"
|
|
21
26
|
}
|
|
22
27
|
},
|
|
23
28
|
"main": "./dist/index.umd.cjs",
|
|
@@ -27,33 +32,33 @@
|
|
|
27
32
|
"dist/**"
|
|
28
33
|
],
|
|
29
34
|
"dependencies": {
|
|
30
|
-
"
|
|
35
|
+
"@fortawesome/fontawesome-svg-core": "^7.1.0",
|
|
36
|
+
"vite": "^7.2.2",
|
|
37
|
+
"vue": "^3.5.24"
|
|
31
38
|
},
|
|
32
39
|
"devDependencies": {
|
|
33
|
-
"@eslint
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@vitest/ui": "^4.0.7",
|
|
40
|
+
"@luna-park/eslint-config": "^1.0.2",
|
|
41
|
+
"@microsoft/api-extractor": "^7.55.0",
|
|
42
|
+
"@vitest/ui": "^4.0.10",
|
|
37
43
|
"eslint": "^9.39.1",
|
|
38
|
-
"eslint-import-resolver-typescript": "^4.4.4",
|
|
39
|
-
"eslint-plugin-import-x": "^4.16.1",
|
|
40
|
-
"eslint-plugin-promise": "^7.2.1",
|
|
41
|
-
"eslint-plugin-sort-keys-custom-order": "^2.2.1",
|
|
42
44
|
"rimraf": "^6.1.0",
|
|
43
45
|
"typescript": "^5.9.3",
|
|
44
|
-
"typescript-eslint": "^8.
|
|
46
|
+
"typescript-eslint": "^8.47.0",
|
|
45
47
|
"unplugin-dts": "1.0.0-beta.6",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"@luna-park/
|
|
48
|
+
"vitest": "^4.0.10",
|
|
49
|
+
"@luna-park/logicnodes": "^2.0.0",
|
|
50
|
+
"@luna-park/utils": "^2.0.0",
|
|
51
|
+
"@luna-park/shared": "^1.0.0"
|
|
50
52
|
},
|
|
51
53
|
"peerDependencies": {
|
|
54
|
+
"@fortawesome/fontawesome-svg-core": "^7.1.0",
|
|
55
|
+
"typescript": "^5.9.3",
|
|
56
|
+
"vite": "^7.2.1",
|
|
52
57
|
"vue": "^3.5.23"
|
|
53
58
|
},
|
|
54
59
|
"scripts": {
|
|
55
60
|
"build": "rimraf dist && vite build",
|
|
56
|
-
"dev": "vite build --watch",
|
|
61
|
+
"dev": "vite build --watch --minify=false",
|
|
57
62
|
"dev:test": "vitest --ui",
|
|
58
63
|
"test": "vitest"
|
|
59
64
|
}
|
package/dist/index.umd.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(i,o){typeof exports=="object"&&typeof module<"u"?o(exports):typeof define=="function"&&define.amd?define(["exports"],o):(i=typeof globalThis<"u"?globalThis:i||self,o(i["@luna-park/plugin"]={}))})(this,(function(i){"use strict";var o=(e=>(e.exec="exec",e.number="number",e.string="string",e.boolean="boolean",e.object="object",e.array="array",e.interface="interface",e.type="type",e.function="function",e.union="union",e.unknown="unknown",e.undefined="undefined",e.void="void",e))(o||{});const r={type:(e,n={})=>({...n,type:"type",target:e}),array:(e,n={})=>({...n,type:"array",items:e}),boolean:(e={})=>({...e,type:"boolean"}),exec:(e={})=>({...e,type:"exec"}),function:(e,n={type:"undefined"},d={})=>({...d,type:"function",inputs:e,output:n}),interface:(e,n={})=>({...n,type:"interface",className:typeof e=="string"?e:e.name}),number:(e={})=>({...e,type:"number"}),object:(e={},n={})=>({...n,type:"object",properties:e}),string:(e={})=>({...e,type:"string"}),undefined:(e={})=>({...e,type:"undefined"}),union:(e,n={})=>({...n,type:"union",elements:e}),unknown:(e={})=>({...e,type:"unknown"}),void:(e={})=>({...e,type:"void"})};var t=(e=>(e.function="function",e.macro="macro",e.operation="operation",e))(t||{}),u=(e=>(e.Frontend="frontend",e.Backend="backend",e.Desktop="desktop",e.Shared="shared",e))(u||{});function a(e){return e}function c(e){return e}async function f(e,n){return typeof e=="function"?e({config:n.config,internal:n.internal,mode:n.mode||"editor"}):e}i.ELogicScope=u,i.ELogicType=t,i.EVarType=o,i.LogicType=r,i.getPluginParam=f,i.makeLogicNode=a,i.makePlugin=c,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})}));
|