@knotx/core 0.2.11 → 0.2.13
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/definition.d.cts +1 -1
- package/dist/definition.d.mts +1 -1
- package/dist/definition.d.ts +1 -1
- package/dist/index.cjs +6 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -3
- package/dist/shared/{core.CgVCXkyd.d.cts → core.Cwp_TTTs.d.cts} +6 -6
- package/dist/shared/{core.CgVCXkyd.d.mts → core.Cwp_TTTs.d.mts} +6 -6
- package/dist/shared/{core.CgVCXkyd.d.ts → core.Cwp_TTTs.d.ts} +6 -6
- package/package.json +6 -6
package/dist/definition.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'jsonschema';
|
|
2
2
|
import 'rxjs';
|
|
3
|
-
export { C as Container, E as Edge, s as EdgeOperation, q as EdgeOperationPipe, u as EdgeOperatorFunction, m as EdgeProps, e as EdgeRenderType, H as HorizontalAlignment, a as IEngineRuntime, b as IPlugin, h as IPluginInfo, i as IPluginToolInfo, I as IRecord, c as Layer, L as LayerComponent, N as Node, k as NodeMeasured, r as NodeOperation, p as NodeOperationPipe, t as NodeOperatorFunction, j as NodePosition, l as NodeProps, d as NodeRenderType, P as Plugin, o as PluginConfigs, f as PluginData, g as PluginTools, n as Position, R as RenderType, V as VerticalAlignment } from './shared/core.
|
|
3
|
+
export { C as Container, E as Edge, s as EdgeOperation, q as EdgeOperationPipe, u as EdgeOperatorFunction, m as EdgeProps, e as EdgeRenderType, H as HorizontalAlignment, a as IEngineRuntime, b as IPlugin, h as IPluginInfo, i as IPluginToolInfo, I as IRecord, c as Layer, L as LayerComponent, N as Node, k as NodeMeasured, r as NodeOperation, p as NodeOperationPipe, t as NodeOperatorFunction, j as NodePosition, l as NodeProps, d as NodeRenderType, P as Plugin, o as PluginConfigs, f as PluginData, g as PluginTools, n as Position, R as RenderType, V as VerticalAlignment } from './shared/core.Cwp_TTTs.cjs';
|
|
4
4
|
import '@knotx/data';
|
package/dist/definition.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'jsonschema';
|
|
2
2
|
import 'rxjs';
|
|
3
|
-
export { C as Container, E as Edge, s as EdgeOperation, q as EdgeOperationPipe, u as EdgeOperatorFunction, m as EdgeProps, e as EdgeRenderType, H as HorizontalAlignment, a as IEngineRuntime, b as IPlugin, h as IPluginInfo, i as IPluginToolInfo, I as IRecord, c as Layer, L as LayerComponent, N as Node, k as NodeMeasured, r as NodeOperation, p as NodeOperationPipe, t as NodeOperatorFunction, j as NodePosition, l as NodeProps, d as NodeRenderType, P as Plugin, o as PluginConfigs, f as PluginData, g as PluginTools, n as Position, R as RenderType, V as VerticalAlignment } from './shared/core.
|
|
3
|
+
export { C as Container, E as Edge, s as EdgeOperation, q as EdgeOperationPipe, u as EdgeOperatorFunction, m as EdgeProps, e as EdgeRenderType, H as HorizontalAlignment, a as IEngineRuntime, b as IPlugin, h as IPluginInfo, i as IPluginToolInfo, I as IRecord, c as Layer, L as LayerComponent, N as Node, k as NodeMeasured, r as NodeOperation, p as NodeOperationPipe, t as NodeOperatorFunction, j as NodePosition, l as NodeProps, d as NodeRenderType, P as Plugin, o as PluginConfigs, f as PluginData, g as PluginTools, n as Position, R as RenderType, V as VerticalAlignment } from './shared/core.Cwp_TTTs.mjs';
|
|
4
4
|
import '@knotx/data';
|
package/dist/definition.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'jsonschema';
|
|
2
2
|
import 'rxjs';
|
|
3
|
-
export { C as Container, E as Edge, s as EdgeOperation, q as EdgeOperationPipe, u as EdgeOperatorFunction, m as EdgeProps, e as EdgeRenderType, H as HorizontalAlignment, a as IEngineRuntime, b as IPlugin, h as IPluginInfo, i as IPluginToolInfo, I as IRecord, c as Layer, L as LayerComponent, N as Node, k as NodeMeasured, r as NodeOperation, p as NodeOperationPipe, t as NodeOperatorFunction, j as NodePosition, l as NodeProps, d as NodeRenderType, P as Plugin, o as PluginConfigs, f as PluginData, g as PluginTools, n as Position, R as RenderType, V as VerticalAlignment } from './shared/core.
|
|
3
|
+
export { C as Container, E as Edge, s as EdgeOperation, q as EdgeOperationPipe, u as EdgeOperatorFunction, m as EdgeProps, e as EdgeRenderType, H as HorizontalAlignment, a as IEngineRuntime, b as IPlugin, h as IPluginInfo, i as IPluginToolInfo, I as IRecord, c as Layer, L as LayerComponent, N as Node, k as NodeMeasured, r as NodeOperation, p as NodeOperationPipe, t as NodeOperatorFunction, j as NodePosition, l as NodeProps, d as NodeRenderType, P as Plugin, o as PluginConfigs, f as PluginData, g as PluginTools, n as Position, R as RenderType, V as VerticalAlignment } from './shared/core.Cwp_TTTs.js';
|
|
4
4
|
import '@knotx/data';
|
package/dist/index.cjs
CHANGED
|
@@ -441,9 +441,12 @@ const _Runtime = class _Runtime {
|
|
|
441
441
|
type,
|
|
442
442
|
value: contextValue
|
|
443
443
|
};
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
444
|
+
try {
|
|
445
|
+
const result = handler();
|
|
446
|
+
return result;
|
|
447
|
+
} finally {
|
|
448
|
+
this.currentContext = void 0;
|
|
449
|
+
}
|
|
447
450
|
}
|
|
448
451
|
/**
|
|
449
452
|
* 值处理器
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IRecord, C as Container, P as Plugin, N as Node, E as Edge, a as IEngineRuntime, R as RenderType, L as LayerComponent, b as IPlugin, c as Layer, d as NodeRenderType, e as EdgeRenderType, f as PluginData, g as PluginTools, h as IPluginInfo, i as IPluginToolInfo } from './shared/core.
|
|
2
|
-
export { B as BasePlugin, s as EdgeOperation, q as EdgeOperationPipe, u as EdgeOperatorFunction, m as EdgeProps, H as HorizontalAlignment, k as NodeMeasured, r as NodeOperation, p as NodeOperationPipe, t as NodeOperatorFunction, j as NodePosition, l as NodeProps, o as PluginConfigs, n as Position, V as VerticalAlignment } from './shared/core.
|
|
1
|
+
import { I as IRecord, C as Container, P as Plugin, N as Node, E as Edge, a as IEngineRuntime, R as RenderType, L as LayerComponent, b as IPlugin, c as Layer, d as NodeRenderType, e as EdgeRenderType, f as PluginData, g as PluginTools, h as IPluginInfo, i as IPluginToolInfo } from './shared/core.Cwp_TTTs.cjs';
|
|
2
|
+
export { B as BasePlugin, s as EdgeOperation, q as EdgeOperationPipe, u as EdgeOperatorFunction, m as EdgeProps, H as HorizontalAlignment, k as NodeMeasured, r as NodeOperation, p as NodeOperationPipe, t as NodeOperatorFunction, j as NodePosition, l as NodeProps, o as PluginConfigs, n as Position, V as VerticalAlignment } from './shared/core.Cwp_TTTs.cjs';
|
|
3
3
|
import { Schema } from 'jsonschema';
|
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
|
5
5
|
import { DataManager, DataOperationPipe, DataOperation } from '@knotx/data';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IRecord, C as Container, P as Plugin, N as Node, E as Edge, a as IEngineRuntime, R as RenderType, L as LayerComponent, b as IPlugin, c as Layer, d as NodeRenderType, e as EdgeRenderType, f as PluginData, g as PluginTools, h as IPluginInfo, i as IPluginToolInfo } from './shared/core.
|
|
2
|
-
export { B as BasePlugin, s as EdgeOperation, q as EdgeOperationPipe, u as EdgeOperatorFunction, m as EdgeProps, H as HorizontalAlignment, k as NodeMeasured, r as NodeOperation, p as NodeOperationPipe, t as NodeOperatorFunction, j as NodePosition, l as NodeProps, o as PluginConfigs, n as Position, V as VerticalAlignment } from './shared/core.
|
|
1
|
+
import { I as IRecord, C as Container, P as Plugin, N as Node, E as Edge, a as IEngineRuntime, R as RenderType, L as LayerComponent, b as IPlugin, c as Layer, d as NodeRenderType, e as EdgeRenderType, f as PluginData, g as PluginTools, h as IPluginInfo, i as IPluginToolInfo } from './shared/core.Cwp_TTTs.mjs';
|
|
2
|
+
export { B as BasePlugin, s as EdgeOperation, q as EdgeOperationPipe, u as EdgeOperatorFunction, m as EdgeProps, H as HorizontalAlignment, k as NodeMeasured, r as NodeOperation, p as NodeOperationPipe, t as NodeOperatorFunction, j as NodePosition, l as NodeProps, o as PluginConfigs, n as Position, V as VerticalAlignment } from './shared/core.Cwp_TTTs.mjs';
|
|
3
3
|
import { Schema } from 'jsonschema';
|
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
|
5
5
|
import { DataManager, DataOperationPipe, DataOperation } from '@knotx/data';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IRecord, C as Container, P as Plugin, N as Node, E as Edge, a as IEngineRuntime, R as RenderType, L as LayerComponent, b as IPlugin, c as Layer, d as NodeRenderType, e as EdgeRenderType, f as PluginData, g as PluginTools, h as IPluginInfo, i as IPluginToolInfo } from './shared/core.
|
|
2
|
-
export { B as BasePlugin, s as EdgeOperation, q as EdgeOperationPipe, u as EdgeOperatorFunction, m as EdgeProps, H as HorizontalAlignment, k as NodeMeasured, r as NodeOperation, p as NodeOperationPipe, t as NodeOperatorFunction, j as NodePosition, l as NodeProps, o as PluginConfigs, n as Position, V as VerticalAlignment } from './shared/core.
|
|
1
|
+
import { I as IRecord, C as Container, P as Plugin, N as Node, E as Edge, a as IEngineRuntime, R as RenderType, L as LayerComponent, b as IPlugin, c as Layer, d as NodeRenderType, e as EdgeRenderType, f as PluginData, g as PluginTools, h as IPluginInfo, i as IPluginToolInfo } from './shared/core.Cwp_TTTs.js';
|
|
2
|
+
export { B as BasePlugin, s as EdgeOperation, q as EdgeOperationPipe, u as EdgeOperatorFunction, m as EdgeProps, H as HorizontalAlignment, k as NodeMeasured, r as NodeOperation, p as NodeOperationPipe, t as NodeOperatorFunction, j as NodePosition, l as NodeProps, o as PluginConfigs, n as Position, V as VerticalAlignment } from './shared/core.Cwp_TTTs.js';
|
|
3
3
|
import { Schema } from 'jsonschema';
|
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
|
5
5
|
import { DataManager, DataOperationPipe, DataOperation } from '@knotx/data';
|
package/dist/index.js
CHANGED
|
@@ -441,9 +441,12 @@ const _Runtime = class _Runtime {
|
|
|
441
441
|
type,
|
|
442
442
|
value: contextValue
|
|
443
443
|
};
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
444
|
+
try {
|
|
445
|
+
const result = handler();
|
|
446
|
+
return result;
|
|
447
|
+
} finally {
|
|
448
|
+
this.currentContext = void 0;
|
|
449
|
+
}
|
|
447
450
|
}
|
|
448
451
|
/**
|
|
449
452
|
* 值处理器
|
|
@@ -127,12 +127,12 @@ interface IPluginToolInfo {
|
|
|
127
127
|
description: string;
|
|
128
128
|
parameters: Schema;
|
|
129
129
|
}
|
|
130
|
-
type NodeOperationPipe<T extends IRecord =
|
|
131
|
-
type EdgeOperationPipe<T extends IRecord =
|
|
132
|
-
type NodeOperation<T extends IRecord =
|
|
133
|
-
type EdgeOperation<T extends IRecord =
|
|
134
|
-
type NodeOperatorFunction<T extends IRecord =
|
|
135
|
-
type EdgeOperatorFunction<T extends IRecord =
|
|
130
|
+
type NodeOperationPipe<T extends IRecord = any> = DataOperationPipe<Node<T>>;
|
|
131
|
+
type EdgeOperationPipe<T extends IRecord = any> = DataOperationPipe<Edge<T>>;
|
|
132
|
+
type NodeOperation<T extends IRecord = any> = DataOperation<Node<T>>;
|
|
133
|
+
type EdgeOperation<T extends IRecord = any> = DataOperation<Edge<T>>;
|
|
134
|
+
type NodeOperatorFunction<T extends IRecord = any, TArgs extends any[] = any[]> = (...args: TArgs) => NodeOperation<T>[];
|
|
135
|
+
type EdgeOperatorFunction<T extends IRecord = any, TArgs extends any[] = any[]> = (...args: TArgs) => EdgeOperation<T>[];
|
|
136
136
|
interface IEngineRuntime {
|
|
137
137
|
render?: {
|
|
138
138
|
getValue: <T, R = T>(value: BehaviorSubject<T> | T, options: {
|
|
@@ -127,12 +127,12 @@ interface IPluginToolInfo {
|
|
|
127
127
|
description: string;
|
|
128
128
|
parameters: Schema;
|
|
129
129
|
}
|
|
130
|
-
type NodeOperationPipe<T extends IRecord =
|
|
131
|
-
type EdgeOperationPipe<T extends IRecord =
|
|
132
|
-
type NodeOperation<T extends IRecord =
|
|
133
|
-
type EdgeOperation<T extends IRecord =
|
|
134
|
-
type NodeOperatorFunction<T extends IRecord =
|
|
135
|
-
type EdgeOperatorFunction<T extends IRecord =
|
|
130
|
+
type NodeOperationPipe<T extends IRecord = any> = DataOperationPipe<Node<T>>;
|
|
131
|
+
type EdgeOperationPipe<T extends IRecord = any> = DataOperationPipe<Edge<T>>;
|
|
132
|
+
type NodeOperation<T extends IRecord = any> = DataOperation<Node<T>>;
|
|
133
|
+
type EdgeOperation<T extends IRecord = any> = DataOperation<Edge<T>>;
|
|
134
|
+
type NodeOperatorFunction<T extends IRecord = any, TArgs extends any[] = any[]> = (...args: TArgs) => NodeOperation<T>[];
|
|
135
|
+
type EdgeOperatorFunction<T extends IRecord = any, TArgs extends any[] = any[]> = (...args: TArgs) => EdgeOperation<T>[];
|
|
136
136
|
interface IEngineRuntime {
|
|
137
137
|
render?: {
|
|
138
138
|
getValue: <T, R = T>(value: BehaviorSubject<T> | T, options: {
|
|
@@ -127,12 +127,12 @@ interface IPluginToolInfo {
|
|
|
127
127
|
description: string;
|
|
128
128
|
parameters: Schema;
|
|
129
129
|
}
|
|
130
|
-
type NodeOperationPipe<T extends IRecord =
|
|
131
|
-
type EdgeOperationPipe<T extends IRecord =
|
|
132
|
-
type NodeOperation<T extends IRecord =
|
|
133
|
-
type EdgeOperation<T extends IRecord =
|
|
134
|
-
type NodeOperatorFunction<T extends IRecord =
|
|
135
|
-
type EdgeOperatorFunction<T extends IRecord =
|
|
130
|
+
type NodeOperationPipe<T extends IRecord = any> = DataOperationPipe<Node<T>>;
|
|
131
|
+
type EdgeOperationPipe<T extends IRecord = any> = DataOperationPipe<Edge<T>>;
|
|
132
|
+
type NodeOperation<T extends IRecord = any> = DataOperation<Node<T>>;
|
|
133
|
+
type EdgeOperation<T extends IRecord = any> = DataOperation<Edge<T>>;
|
|
134
|
+
type NodeOperatorFunction<T extends IRecord = any, TArgs extends any[] = any[]> = (...args: TArgs) => NodeOperation<T>[];
|
|
135
|
+
type EdgeOperatorFunction<T extends IRecord = any, TArgs extends any[] = any[]> = (...args: TArgs) => EdgeOperation<T>[];
|
|
136
136
|
interface IEngineRuntime {
|
|
137
137
|
render?: {
|
|
138
138
|
getValue: <T, R = T>(value: BehaviorSubject<T> | T, options: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knotx/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"description": "Core for Knotx",
|
|
5
5
|
"author": "boenfu",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"jsonschema": "^1.5.0",
|
|
47
47
|
"lodash-es": "^4.17.21",
|
|
48
48
|
"rxjs": "^7.8.1",
|
|
49
|
-
"@knotx/data": "0.2.
|
|
50
|
-
"@knotx/utils": "0.2.
|
|
49
|
+
"@knotx/data": "0.2.12",
|
|
50
|
+
"@knotx/utils": "0.2.12"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/lodash-es": "^4.17.12",
|
|
54
|
-
"@knotx/build-config": "0.2.
|
|
55
|
-
"@knotx/eslint-config": "0.2.
|
|
56
|
-
"@knotx/typescript-config": "0.2.
|
|
54
|
+
"@knotx/build-config": "0.2.12",
|
|
55
|
+
"@knotx/eslint-config": "0.2.12",
|
|
56
|
+
"@knotx/typescript-config": "0.2.12"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "unbuild",
|