@luna-park/plugin 1.0.5 → 1.0.6
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/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.js +18 -16
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-DmZsz62R.cjs");var n=(i=>(i.Color="color",i.FontSize="font-size",i.FontWeight="font-weight",i.FontFamily="font-family",i.Length="length",i.Time="time",i))(n||{});function e(i){return i}async function r(i,o){return typeof i=="function"?i({app:o.app,config:o.config,internal:o.internal,mode:o.mode||"editor"}):i}exports.ELogicScope=t.J;exports.ELogicType=t._;exports.EVarType=t.i;exports.LogicType=t.u;exports.LogicUtil=t.x;exports.makeLogicNode=t.T;exports.ETokenType=n;exports.getPluginParam=r;exports.makePlugin=e;
|
package/dist/index.d.ts
CHANGED
|
@@ -122,7 +122,7 @@ declare enum EThemeMode {
|
|
|
122
122
|
Auto = "auto"
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
declare enum ETokenType {
|
|
125
|
+
export declare enum ETokenType {
|
|
126
126
|
Color = "color",
|
|
127
127
|
FontSize = "font-size",
|
|
128
128
|
FontWeight = "font-weight",
|
|
@@ -764,7 +764,7 @@ export declare type TPlugin<TConfig extends TSchema = TSchema, TInternal = unkno
|
|
|
764
764
|
editor?: {
|
|
765
765
|
components?: TOption<TEnv<TConfig, TInternal>, Array<TComponent>>;
|
|
766
766
|
nodes?: TOption<TEnv<TConfig, TInternal>, Array<TLogicNode>>;
|
|
767
|
-
tokens?: TOption<TEnv<TConfig, TInternal>,
|
|
767
|
+
tokens?: TOption<TEnv<TConfig, TInternal>, Array<TToken>>;
|
|
768
768
|
wrapper?: TOption<TEnv<TConfig, TInternal>, Component>;
|
|
769
769
|
};
|
|
770
770
|
icon: string;
|
|
@@ -852,8 +852,10 @@ declare type TTextExport = {
|
|
|
852
852
|
state: TStateExport;
|
|
853
853
|
};
|
|
854
854
|
|
|
855
|
-
declare type TToken = {
|
|
855
|
+
export declare type TToken = {
|
|
856
|
+
id: string;
|
|
856
857
|
name?: string;
|
|
858
|
+
type: ETokenType;
|
|
857
859
|
value: string;
|
|
858
860
|
};
|
|
859
861
|
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { J as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { J as e, _ as f, i as g, u as l, x as m, T as u } from "./index-CxGB_fZK.js";
|
|
2
|
+
var t = /* @__PURE__ */ ((i) => (i.Color = "color", i.FontSize = "font-size", i.FontWeight = "font-weight", i.FontFamily = "font-family", i.Length = "length", i.Time = "time", i))(t || {});
|
|
3
|
+
function n(i) {
|
|
4
|
+
return i;
|
|
4
5
|
}
|
|
5
|
-
async function a(
|
|
6
|
-
return typeof
|
|
7
|
-
app:
|
|
8
|
-
config:
|
|
9
|
-
internal:
|
|
10
|
-
mode:
|
|
11
|
-
}) :
|
|
6
|
+
async function a(i, o) {
|
|
7
|
+
return typeof i == "function" ? i({
|
|
8
|
+
app: o.app,
|
|
9
|
+
config: o.config,
|
|
10
|
+
internal: o.internal,
|
|
11
|
+
mode: o.mode || "editor"
|
|
12
|
+
}) : i;
|
|
12
13
|
}
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
t as
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
e as ELogicScope,
|
|
16
|
+
f as ELogicType,
|
|
17
|
+
t as ETokenType,
|
|
18
|
+
g as EVarType,
|
|
19
|
+
l as LogicType,
|
|
20
|
+
m as LogicUtil,
|
|
19
21
|
a as getPluginParam,
|
|
20
|
-
|
|
22
|
+
u as makeLogicNode,
|
|
21
23
|
n as makePlugin
|
|
22
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luna-park/plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Plugin helper for Luna Park.",
|
|
6
6
|
"homepage": "https://luna-park.app",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"vitest": "^4.0.12",
|
|
52
52
|
"vue": "^3.5.24",
|
|
53
53
|
"@luna-park/logicnodes": "^2.0.0",
|
|
54
|
-
"@luna-park/
|
|
55
|
-
"@luna-park/
|
|
54
|
+
"@luna-park/utils": "^2.0.0",
|
|
55
|
+
"@luna-park/shared": "^1.0.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@fastify/cors": "^11.1.0",
|