@knotx/core 0.4.6 → 0.4.7
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 +7 -0
- 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 +7 -0
- package/dist/shared/{core.CWQeg3bH.d.cts → core.Dw5fUdwa.d.cts} +2 -1
- package/dist/shared/{core.CWQeg3bH.d.mts → core.Dw5fUdwa.d.mts} +2 -1
- package/dist/shared/{core.CWQeg3bH.d.ts → core.Dw5fUdwa.d.ts} +2 -1
- 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, D as Direction, d as Edge, e as EdgeConfig, v as EdgeOperation, t as EdgeOperationPipe, x as EdgeOperatorFunction, f as EdgeProps, i as EdgeRender, h as EdgeRenderType, p as EngineTools, H as HorizontalAlignment, y as IEngineRuntime, k as IPlugin, q as IPluginInfo, I as IRecord, r as IToolInfo, L as Layer, j as LayerComponent, b as Node, a as NodeMeasured, u as NodeOperation, s as NodeOperationPipe, w as NodeOperatorFunction, N as NodePosition, c as NodeProps, g as NodeRenderType, l as Plugin, m as PluginConfigs, n as PluginData, o as PluginTools, P as Position, R as RenderType, V as VerticalAlignment } from './shared/core.
|
|
3
|
+
export { C as Container, D as Direction, d as Edge, e as EdgeConfig, v as EdgeOperation, t as EdgeOperationPipe, x as EdgeOperatorFunction, f as EdgeProps, i as EdgeRender, h as EdgeRenderType, p as EngineTools, H as HorizontalAlignment, y as IEngineRuntime, k as IPlugin, q as IPluginInfo, I as IRecord, r as IToolInfo, L as Layer, j as LayerComponent, b as Node, a as NodeMeasured, u as NodeOperation, s as NodeOperationPipe, w as NodeOperatorFunction, N as NodePosition, c as NodeProps, g as NodeRenderType, l as Plugin, m as PluginConfigs, n as PluginData, o as PluginTools, P as Position, R as RenderType, V as VerticalAlignment } from './shared/core.Dw5fUdwa.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, D as Direction, d as Edge, e as EdgeConfig, v as EdgeOperation, t as EdgeOperationPipe, x as EdgeOperatorFunction, f as EdgeProps, i as EdgeRender, h as EdgeRenderType, p as EngineTools, H as HorizontalAlignment, y as IEngineRuntime, k as IPlugin, q as IPluginInfo, I as IRecord, r as IToolInfo, L as Layer, j as LayerComponent, b as Node, a as NodeMeasured, u as NodeOperation, s as NodeOperationPipe, w as NodeOperatorFunction, N as NodePosition, c as NodeProps, g as NodeRenderType, l as Plugin, m as PluginConfigs, n as PluginData, o as PluginTools, P as Position, R as RenderType, V as VerticalAlignment } from './shared/core.
|
|
3
|
+
export { C as Container, D as Direction, d as Edge, e as EdgeConfig, v as EdgeOperation, t as EdgeOperationPipe, x as EdgeOperatorFunction, f as EdgeProps, i as EdgeRender, h as EdgeRenderType, p as EngineTools, H as HorizontalAlignment, y as IEngineRuntime, k as IPlugin, q as IPluginInfo, I as IRecord, r as IToolInfo, L as Layer, j as LayerComponent, b as Node, a as NodeMeasured, u as NodeOperation, s as NodeOperationPipe, w as NodeOperatorFunction, N as NodePosition, c as NodeProps, g as NodeRenderType, l as Plugin, m as PluginConfigs, n as PluginData, o as PluginTools, P as Position, R as RenderType, V as VerticalAlignment } from './shared/core.Dw5fUdwa.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, D as Direction, d as Edge, e as EdgeConfig, v as EdgeOperation, t as EdgeOperationPipe, x as EdgeOperatorFunction, f as EdgeProps, i as EdgeRender, h as EdgeRenderType, p as EngineTools, H as HorizontalAlignment, y as IEngineRuntime, k as IPlugin, q as IPluginInfo, I as IRecord, r as IToolInfo, L as Layer, j as LayerComponent, b as Node, a as NodeMeasured, u as NodeOperation, s as NodeOperationPipe, w as NodeOperatorFunction, N as NodePosition, c as NodeProps, g as NodeRenderType, l as Plugin, m as PluginConfigs, n as PluginData, o as PluginTools, P as Position, R as RenderType, V as VerticalAlignment } from './shared/core.
|
|
3
|
+
export { C as Container, D as Direction, d as Edge, e as EdgeConfig, v as EdgeOperation, t as EdgeOperationPipe, x as EdgeOperatorFunction, f as EdgeProps, i as EdgeRender, h as EdgeRenderType, p as EngineTools, H as HorizontalAlignment, y as IEngineRuntime, k as IPlugin, q as IPluginInfo, I as IRecord, r as IToolInfo, L as Layer, j as LayerComponent, b as Node, a as NodeMeasured, u as NodeOperation, s as NodeOperationPipe, w as NodeOperatorFunction, N as NodePosition, c as NodeProps, g as NodeRenderType, l as Plugin, m as PluginConfigs, n as PluginData, o as PluginTools, P as Position, R as RenderType, V as VerticalAlignment } from './shared/core.Dw5fUdwa.js';
|
|
4
4
|
import '@knotx/data';
|
package/dist/index.cjs
CHANGED
|
@@ -389,6 +389,13 @@ class Engine {
|
|
|
389
389
|
resetPluginData(pluginName) {
|
|
390
390
|
lodashEs.set(this, ["_pluginDataContainer", pluginName], void 0);
|
|
391
391
|
}
|
|
392
|
+
subscribePluginData(pluginName, property, observer) {
|
|
393
|
+
const data = lodashEs.get(this, ["_pluginDataContainer", pluginName, property]);
|
|
394
|
+
if (!data) {
|
|
395
|
+
return null;
|
|
396
|
+
}
|
|
397
|
+
return data.subscribe(observer);
|
|
398
|
+
}
|
|
392
399
|
registerPluginTool(pluginName, property, data) {
|
|
393
400
|
lodashEs.set(this, ["_pluginToolsContainer", pluginName, property], data);
|
|
394
401
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as Engine } from './shared/core.
|
|
2
|
-
export { J as BasePlugin, A as CallToolMethod, C as Container, D as Direction, d as Edge, e as EdgeConfig, v as EdgeOperation, t as EdgeOperationPipe, x as EdgeOperatorFunction, f as EdgeProps, i as EdgeRender, h as EdgeRenderType, z as EngineOptions, p as EngineTools, H as HorizontalAlignment, y as IEngineRuntime, k as IPlugin, q as IPluginInfo, I as IRecord, r as IToolInfo, F as Interaction, G as InteractionManager, B as InteractionPriority, L as Layer, j as LayerComponent, b as Node, a as NodeMeasured, u as NodeOperation, s as NodeOperationPipe, w as NodeOperatorFunction, N as NodePosition, c as NodeProps, g as NodeRenderType, l as Plugin, m as PluginConfigs, n as PluginData, o as PluginTools, P as Position, R as RenderType, V as VerticalAlignment } from './shared/core.
|
|
1
|
+
import { E as Engine } from './shared/core.Dw5fUdwa.cjs';
|
|
2
|
+
export { J as BasePlugin, A as CallToolMethod, C as Container, D as Direction, d as Edge, e as EdgeConfig, v as EdgeOperation, t as EdgeOperationPipe, x as EdgeOperatorFunction, f as EdgeProps, i as EdgeRender, h as EdgeRenderType, z as EngineOptions, p as EngineTools, H as HorizontalAlignment, y as IEngineRuntime, k as IPlugin, q as IPluginInfo, I as IRecord, r as IToolInfo, F as Interaction, G as InteractionManager, B as InteractionPriority, L as Layer, j as LayerComponent, b as Node, a as NodeMeasured, u as NodeOperation, s as NodeOperationPipe, w as NodeOperatorFunction, N as NodePosition, c as NodeProps, g as NodeRenderType, l as Plugin, m as PluginConfigs, n as PluginData, o as PluginTools, P as Position, R as RenderType, V as VerticalAlignment } from './shared/core.Dw5fUdwa.cjs';
|
|
3
3
|
import { RenderType, IPlugin, LayerComponent } from '@knotx/core';
|
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
|
5
5
|
export * from '@knotx/data';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as Engine } from './shared/core.
|
|
2
|
-
export { J as BasePlugin, A as CallToolMethod, C as Container, D as Direction, d as Edge, e as EdgeConfig, v as EdgeOperation, t as EdgeOperationPipe, x as EdgeOperatorFunction, f as EdgeProps, i as EdgeRender, h as EdgeRenderType, z as EngineOptions, p as EngineTools, H as HorizontalAlignment, y as IEngineRuntime, k as IPlugin, q as IPluginInfo, I as IRecord, r as IToolInfo, F as Interaction, G as InteractionManager, B as InteractionPriority, L as Layer, j as LayerComponent, b as Node, a as NodeMeasured, u as NodeOperation, s as NodeOperationPipe, w as NodeOperatorFunction, N as NodePosition, c as NodeProps, g as NodeRenderType, l as Plugin, m as PluginConfigs, n as PluginData, o as PluginTools, P as Position, R as RenderType, V as VerticalAlignment } from './shared/core.
|
|
1
|
+
import { E as Engine } from './shared/core.Dw5fUdwa.mjs';
|
|
2
|
+
export { J as BasePlugin, A as CallToolMethod, C as Container, D as Direction, d as Edge, e as EdgeConfig, v as EdgeOperation, t as EdgeOperationPipe, x as EdgeOperatorFunction, f as EdgeProps, i as EdgeRender, h as EdgeRenderType, z as EngineOptions, p as EngineTools, H as HorizontalAlignment, y as IEngineRuntime, k as IPlugin, q as IPluginInfo, I as IRecord, r as IToolInfo, F as Interaction, G as InteractionManager, B as InteractionPriority, L as Layer, j as LayerComponent, b as Node, a as NodeMeasured, u as NodeOperation, s as NodeOperationPipe, w as NodeOperatorFunction, N as NodePosition, c as NodeProps, g as NodeRenderType, l as Plugin, m as PluginConfigs, n as PluginData, o as PluginTools, P as Position, R as RenderType, V as VerticalAlignment } from './shared/core.Dw5fUdwa.mjs';
|
|
3
3
|
import { RenderType, IPlugin, LayerComponent } from '@knotx/core';
|
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
|
5
5
|
export * from '@knotx/data';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as Engine } from './shared/core.
|
|
2
|
-
export { J as BasePlugin, A as CallToolMethod, C as Container, D as Direction, d as Edge, e as EdgeConfig, v as EdgeOperation, t as EdgeOperationPipe, x as EdgeOperatorFunction, f as EdgeProps, i as EdgeRender, h as EdgeRenderType, z as EngineOptions, p as EngineTools, H as HorizontalAlignment, y as IEngineRuntime, k as IPlugin, q as IPluginInfo, I as IRecord, r as IToolInfo, F as Interaction, G as InteractionManager, B as InteractionPriority, L as Layer, j as LayerComponent, b as Node, a as NodeMeasured, u as NodeOperation, s as NodeOperationPipe, w as NodeOperatorFunction, N as NodePosition, c as NodeProps, g as NodeRenderType, l as Plugin, m as PluginConfigs, n as PluginData, o as PluginTools, P as Position, R as RenderType, V as VerticalAlignment } from './shared/core.
|
|
1
|
+
import { E as Engine } from './shared/core.Dw5fUdwa.js';
|
|
2
|
+
export { J as BasePlugin, A as CallToolMethod, C as Container, D as Direction, d as Edge, e as EdgeConfig, v as EdgeOperation, t as EdgeOperationPipe, x as EdgeOperatorFunction, f as EdgeProps, i as EdgeRender, h as EdgeRenderType, z as EngineOptions, p as EngineTools, H as HorizontalAlignment, y as IEngineRuntime, k as IPlugin, q as IPluginInfo, I as IRecord, r as IToolInfo, F as Interaction, G as InteractionManager, B as InteractionPriority, L as Layer, j as LayerComponent, b as Node, a as NodeMeasured, u as NodeOperation, s as NodeOperationPipe, w as NodeOperatorFunction, N as NodePosition, c as NodeProps, g as NodeRenderType, l as Plugin, m as PluginConfigs, n as PluginData, o as PluginTools, P as Position, R as RenderType, V as VerticalAlignment } from './shared/core.Dw5fUdwa.js';
|
|
3
3
|
import { RenderType, IPlugin, LayerComponent } from '@knotx/core';
|
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
|
5
5
|
export * from '@knotx/data';
|
package/dist/index.js
CHANGED
|
@@ -389,6 +389,13 @@ class Engine {
|
|
|
389
389
|
resetPluginData(pluginName) {
|
|
390
390
|
set(this, ["_pluginDataContainer", pluginName], void 0);
|
|
391
391
|
}
|
|
392
|
+
subscribePluginData(pluginName, property, observer) {
|
|
393
|
+
const data = get(this, ["_pluginDataContainer", pluginName, property]);
|
|
394
|
+
if (!data) {
|
|
395
|
+
return null;
|
|
396
|
+
}
|
|
397
|
+
return data.subscribe(observer);
|
|
398
|
+
}
|
|
392
399
|
registerPluginTool(pluginName, property, data) {
|
|
393
400
|
set(this, ["_pluginToolsContainer", pluginName, property], data);
|
|
394
401
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'jsonschema';
|
|
2
|
-
import { BehaviorSubject, SubscriptionLike } from 'rxjs';
|
|
2
|
+
import { BehaviorSubject, Subscription, SubscriptionLike } from 'rxjs';
|
|
3
3
|
import { DataManager, DataOperationPipe, DataOperation } from '@knotx/data';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -157,6 +157,7 @@ declare class Engine<TRenderType extends RenderType = RenderType, TNode extends
|
|
|
157
157
|
getEdgeRenderer(type: string): EdgeRender | undefined;
|
|
158
158
|
registerPluginData<T extends keyof PluginData, TP extends keyof PluginData[T]>(pluginName: T, property: TP, data: BehaviorSubject<PluginData[T][TP]>): void;
|
|
159
159
|
resetPluginData<T extends keyof PluginData>(pluginName: T): void;
|
|
160
|
+
subscribePluginData<T extends keyof PluginData, TP extends keyof PluginData[T]>(pluginName: T, property: keyof PluginData[T], observer: (value: PluginData[T][TP]) => void): Subscription | null;
|
|
160
161
|
registerPluginTool<T extends keyof PluginTools, TP extends keyof PluginTools[T]>(pluginName: T, property: TP, data: {
|
|
161
162
|
description: string;
|
|
162
163
|
parameters: Schema;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'jsonschema';
|
|
2
|
-
import { BehaviorSubject, SubscriptionLike } from 'rxjs';
|
|
2
|
+
import { BehaviorSubject, Subscription, SubscriptionLike } from 'rxjs';
|
|
3
3
|
import { DataManager, DataOperationPipe, DataOperation } from '@knotx/data';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -157,6 +157,7 @@ declare class Engine<TRenderType extends RenderType = RenderType, TNode extends
|
|
|
157
157
|
getEdgeRenderer(type: string): EdgeRender | undefined;
|
|
158
158
|
registerPluginData<T extends keyof PluginData, TP extends keyof PluginData[T]>(pluginName: T, property: TP, data: BehaviorSubject<PluginData[T][TP]>): void;
|
|
159
159
|
resetPluginData<T extends keyof PluginData>(pluginName: T): void;
|
|
160
|
+
subscribePluginData<T extends keyof PluginData, TP extends keyof PluginData[T]>(pluginName: T, property: keyof PluginData[T], observer: (value: PluginData[T][TP]) => void): Subscription | null;
|
|
160
161
|
registerPluginTool<T extends keyof PluginTools, TP extends keyof PluginTools[T]>(pluginName: T, property: TP, data: {
|
|
161
162
|
description: string;
|
|
162
163
|
parameters: Schema;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'jsonschema';
|
|
2
|
-
import { BehaviorSubject, SubscriptionLike } from 'rxjs';
|
|
2
|
+
import { BehaviorSubject, Subscription, SubscriptionLike } from 'rxjs';
|
|
3
3
|
import { DataManager, DataOperationPipe, DataOperation } from '@knotx/data';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -157,6 +157,7 @@ declare class Engine<TRenderType extends RenderType = RenderType, TNode extends
|
|
|
157
157
|
getEdgeRenderer(type: string): EdgeRender | undefined;
|
|
158
158
|
registerPluginData<T extends keyof PluginData, TP extends keyof PluginData[T]>(pluginName: T, property: TP, data: BehaviorSubject<PluginData[T][TP]>): void;
|
|
159
159
|
resetPluginData<T extends keyof PluginData>(pluginName: T): void;
|
|
160
|
+
subscribePluginData<T extends keyof PluginData, TP extends keyof PluginData[T]>(pluginName: T, property: keyof PluginData[T], observer: (value: PluginData[T][TP]) => void): Subscription | null;
|
|
160
161
|
registerPluginTool<T extends keyof PluginTools, TP extends keyof PluginTools[T]>(pluginName: T, property: TP, data: {
|
|
161
162
|
description: string;
|
|
162
163
|
parameters: Schema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knotx/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
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.4.
|
|
50
|
-
"@knotx/utils": "0.4.
|
|
49
|
+
"@knotx/data": "0.4.7",
|
|
50
|
+
"@knotx/utils": "0.4.7"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/lodash-es": "^4.17.12",
|
|
54
|
-
"@knotx/build-config": "0.4.
|
|
55
|
-
"@knotx/eslint-config": "0.4.
|
|
56
|
-
"@knotx/typescript-config": "0.4.
|
|
54
|
+
"@knotx/build-config": "0.4.7",
|
|
55
|
+
"@knotx/eslint-config": "0.4.7",
|
|
56
|
+
"@knotx/typescript-config": "0.4.7"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "unbuild",
|