@knotx/core 0.4.0 → 0.4.1

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.
@@ -1,4 +1,4 @@
1
1
  import 'jsonschema';
2
2
  import 'rxjs';
3
- export { C as Container, 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.CJuzxwMC.cjs';
3
+ export { C as Container, 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.DA6YV1kV.cjs';
4
4
  import '@knotx/data';
@@ -1,4 +1,4 @@
1
1
  import 'jsonschema';
2
2
  import 'rxjs';
3
- export { C as Container, 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.CJuzxwMC.mjs';
3
+ export { C as Container, 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.DA6YV1kV.mjs';
4
4
  import '@knotx/data';
@@ -1,4 +1,4 @@
1
1
  import 'jsonschema';
2
2
  import 'rxjs';
3
- export { C as Container, 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.CJuzxwMC.js';
3
+ export { C as Container, 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.DA6YV1kV.js';
4
4
  import '@knotx/data';
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { E as Engine } from './shared/core.CJuzxwMC.cjs';
2
- export { G as BasePlugin, A as CallToolMethod, C as Container, 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, D as Interaction, F 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.CJuzxwMC.cjs';
1
+ import { E as Engine } from './shared/core.DA6YV1kV.cjs';
2
+ export { G as BasePlugin, A as CallToolMethod, C as Container, 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, D as Interaction, F 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.DA6YV1kV.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.CJuzxwMC.mjs';
2
- export { G as BasePlugin, A as CallToolMethod, C as Container, 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, D as Interaction, F 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.CJuzxwMC.mjs';
1
+ import { E as Engine } from './shared/core.DA6YV1kV.mjs';
2
+ export { G as BasePlugin, A as CallToolMethod, C as Container, 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, D as Interaction, F 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.DA6YV1kV.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.CJuzxwMC.js';
2
- export { G as BasePlugin, A as CallToolMethod, C as Container, 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, D as Interaction, F 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.CJuzxwMC.js';
1
+ import { E as Engine } from './shared/core.DA6YV1kV.js';
2
+ export { G as BasePlugin, A as CallToolMethod, C as Container, 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, D as Interaction, F 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.DA6YV1kV.js';
3
3
  import { RenderType, IPlugin, LayerComponent } from '@knotx/core';
4
4
  import { BehaviorSubject } from 'rxjs';
5
5
  export * from '@knotx/data';
@@ -164,7 +164,7 @@ declare class Engine<TRenderType extends RenderType = RenderType, TNode extends
164
164
  }): void;
165
165
  resetPluginTool<T extends keyof PluginTools>(pluginName: T): void;
166
166
  registerNodeRenderer(type: string, renderer: NodeRenderType): () => void;
167
- registerEdgeRenderer(type: string, renderer: EdgeRenderType, config: EdgeConfig): (() => void);
167
+ registerEdgeRenderer(type: string, renderer: EdgeRenderType, config: Required<EdgeConfig>): (() => void);
168
168
  listPlugins(): IPluginInfo[];
169
169
  listPluginTools({ pluginName }: {
170
170
  pluginName: string;
@@ -209,7 +209,7 @@ interface Node<TData extends IRecord = IRecord> {
209
209
  interface NodeProps<TData extends IRecord = IRecord> {
210
210
  node: Node<TData>;
211
211
  }
212
- interface Edge<TData extends IRecord = IRecord> extends Partial<EdgeConfig> {
212
+ interface Edge<TData extends IRecord = IRecord> extends EdgeConfig {
213
213
  id: string;
214
214
  source: string;
215
215
  target: string;
@@ -217,12 +217,12 @@ interface Edge<TData extends IRecord = IRecord> extends Partial<EdgeConfig> {
217
217
  data?: TData;
218
218
  }
219
219
  interface EdgeConfig {
220
- sourcePosition: Position;
221
- targetPosition: Position;
222
- sourceYOffset: string | number;
223
- sourceXOffset: string | number;
224
- targetYOffset: string | number;
225
- targetXOffset: string | number;
220
+ sourcePosition?: Position;
221
+ targetPosition?: Position;
222
+ sourceYOffset?: string | number;
223
+ sourceXOffset?: string | number;
224
+ targetYOffset?: string | number;
225
+ targetXOffset?: string | number;
226
226
  }
227
227
  interface EdgeProps<TData extends IRecord = IRecord> {
228
228
  edge: Edge<TData>;
@@ -241,7 +241,7 @@ type NodeRenderType<TD extends IRecord = any, TR = any> = (props: NodeProps<TD>)
241
241
  type EdgeRenderType<TD extends IRecord = any, TR = any> = (props: EdgeProps<TD>) => TR;
242
242
  interface EdgeRender<TD extends IRecord = any, TR = any> {
243
243
  renderer: EdgeRenderType<TD, TR>;
244
- config: EdgeConfig;
244
+ config: Required<EdgeConfig>;
245
245
  }
246
246
  declare enum Layer {
247
247
  Canvas = 0,
@@ -164,7 +164,7 @@ declare class Engine<TRenderType extends RenderType = RenderType, TNode extends
164
164
  }): void;
165
165
  resetPluginTool<T extends keyof PluginTools>(pluginName: T): void;
166
166
  registerNodeRenderer(type: string, renderer: NodeRenderType): () => void;
167
- registerEdgeRenderer(type: string, renderer: EdgeRenderType, config: EdgeConfig): (() => void);
167
+ registerEdgeRenderer(type: string, renderer: EdgeRenderType, config: Required<EdgeConfig>): (() => void);
168
168
  listPlugins(): IPluginInfo[];
169
169
  listPluginTools({ pluginName }: {
170
170
  pluginName: string;
@@ -209,7 +209,7 @@ interface Node<TData extends IRecord = IRecord> {
209
209
  interface NodeProps<TData extends IRecord = IRecord> {
210
210
  node: Node<TData>;
211
211
  }
212
- interface Edge<TData extends IRecord = IRecord> extends Partial<EdgeConfig> {
212
+ interface Edge<TData extends IRecord = IRecord> extends EdgeConfig {
213
213
  id: string;
214
214
  source: string;
215
215
  target: string;
@@ -217,12 +217,12 @@ interface Edge<TData extends IRecord = IRecord> extends Partial<EdgeConfig> {
217
217
  data?: TData;
218
218
  }
219
219
  interface EdgeConfig {
220
- sourcePosition: Position;
221
- targetPosition: Position;
222
- sourceYOffset: string | number;
223
- sourceXOffset: string | number;
224
- targetYOffset: string | number;
225
- targetXOffset: string | number;
220
+ sourcePosition?: Position;
221
+ targetPosition?: Position;
222
+ sourceYOffset?: string | number;
223
+ sourceXOffset?: string | number;
224
+ targetYOffset?: string | number;
225
+ targetXOffset?: string | number;
226
226
  }
227
227
  interface EdgeProps<TData extends IRecord = IRecord> {
228
228
  edge: Edge<TData>;
@@ -241,7 +241,7 @@ type NodeRenderType<TD extends IRecord = any, TR = any> = (props: NodeProps<TD>)
241
241
  type EdgeRenderType<TD extends IRecord = any, TR = any> = (props: EdgeProps<TD>) => TR;
242
242
  interface EdgeRender<TD extends IRecord = any, TR = any> {
243
243
  renderer: EdgeRenderType<TD, TR>;
244
- config: EdgeConfig;
244
+ config: Required<EdgeConfig>;
245
245
  }
246
246
  declare enum Layer {
247
247
  Canvas = 0,
@@ -164,7 +164,7 @@ declare class Engine<TRenderType extends RenderType = RenderType, TNode extends
164
164
  }): void;
165
165
  resetPluginTool<T extends keyof PluginTools>(pluginName: T): void;
166
166
  registerNodeRenderer(type: string, renderer: NodeRenderType): () => void;
167
- registerEdgeRenderer(type: string, renderer: EdgeRenderType, config: EdgeConfig): (() => void);
167
+ registerEdgeRenderer(type: string, renderer: EdgeRenderType, config: Required<EdgeConfig>): (() => void);
168
168
  listPlugins(): IPluginInfo[];
169
169
  listPluginTools({ pluginName }: {
170
170
  pluginName: string;
@@ -209,7 +209,7 @@ interface Node<TData extends IRecord = IRecord> {
209
209
  interface NodeProps<TData extends IRecord = IRecord> {
210
210
  node: Node<TData>;
211
211
  }
212
- interface Edge<TData extends IRecord = IRecord> extends Partial<EdgeConfig> {
212
+ interface Edge<TData extends IRecord = IRecord> extends EdgeConfig {
213
213
  id: string;
214
214
  source: string;
215
215
  target: string;
@@ -217,12 +217,12 @@ interface Edge<TData extends IRecord = IRecord> extends Partial<EdgeConfig> {
217
217
  data?: TData;
218
218
  }
219
219
  interface EdgeConfig {
220
- sourcePosition: Position;
221
- targetPosition: Position;
222
- sourceYOffset: string | number;
223
- sourceXOffset: string | number;
224
- targetYOffset: string | number;
225
- targetXOffset: string | number;
220
+ sourcePosition?: Position;
221
+ targetPosition?: Position;
222
+ sourceYOffset?: string | number;
223
+ sourceXOffset?: string | number;
224
+ targetYOffset?: string | number;
225
+ targetXOffset?: string | number;
226
226
  }
227
227
  interface EdgeProps<TData extends IRecord = IRecord> {
228
228
  edge: Edge<TData>;
@@ -241,7 +241,7 @@ type NodeRenderType<TD extends IRecord = any, TR = any> = (props: NodeProps<TD>)
241
241
  type EdgeRenderType<TD extends IRecord = any, TR = any> = (props: EdgeProps<TD>) => TR;
242
242
  interface EdgeRender<TD extends IRecord = any, TR = any> {
243
243
  renderer: EdgeRenderType<TD, TR>;
244
- config: EdgeConfig;
244
+ config: Required<EdgeConfig>;
245
245
  }
246
246
  declare enum Layer {
247
247
  Canvas = 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotx/core",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
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.0",
50
- "@knotx/utils": "0.4.0"
49
+ "@knotx/data": "0.4.1",
50
+ "@knotx/utils": "0.4.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/lodash-es": "^4.17.12",
54
- "@knotx/build-config": "0.4.0",
55
- "@knotx/eslint-config": "0.4.0",
56
- "@knotx/typescript-config": "0.4.0"
54
+ "@knotx/build-config": "0.4.1",
55
+ "@knotx/eslint-config": "0.4.1",
56
+ "@knotx/typescript-config": "0.4.1"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "unbuild",