@foblex/flow 1.5.6 → 1.5.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/domain/providers.d.ts +1 -1
- package/esm2022/errors/create-error-class.mjs +2 -2
- package/esm2022/errors/errors.mjs +3 -3
- package/f-draggable/connections/providers.d.ts +1 -1
- package/f-draggable/node/providers.d.ts +1 -1
- package/fesm2022/foblex-flow.mjs +3 -3
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +1 -1
package/domain/providers.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ import { ClearSelectionHandler } from './clear-selection';
|
|
|
12
12
|
import { GetNodesRectHandler } from './get-nodes-rect';
|
|
13
13
|
import { GetElementRectInFlowHandler } from './get-element-rect-in-flow';
|
|
14
14
|
import { GetInputRectInFlowHandler } from './get-input-rect-in-flow';
|
|
15
|
-
export declare const COMMON_PROVIDERS: (typeof
|
|
15
|
+
export declare const COMMON_PROVIDERS: (typeof ClearSelectionHandler | typeof GetConnectionVectorHandler | typeof GetElementRectInFlowHandler | typeof GetInputRectInFlowHandler | typeof GetNodesRectHandler | typeof GetOutputRectInFlowHandler | typeof GetSelectionHandler | typeof RedrawConnectionsHandler | typeof SelectAllHandler | typeof GetConnectionHandler | typeof GetIncomingConnectionsHandler | typeof GetOutgoingConnectionsHandler | typeof UpdateNodeLayerHandler | typeof UpdateConnectionLayerHandler)[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export function createErrorClass(impl) {
|
|
2
2
|
const _super = (instance) => {
|
|
3
3
|
Error.call(instance);
|
|
4
|
-
instance.stack = new Error().stack;
|
|
4
|
+
// instance.stack = new Error().stack;
|
|
5
5
|
};
|
|
6
6
|
const constructor = impl(_super);
|
|
7
7
|
constructor.prototype = Object.create(Error.prototype);
|
|
8
8
|
constructor.prototype.constructor = constructor;
|
|
9
9
|
return constructor;
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|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plY3QuY3JlYXRlKEVycm9yLnByb3RvdHlwZSk7XG4gIGNvbnN0cnVjdG9yLnByb3RvdHlwZS5jb25zdHJ1Y3RvciA9IGNvbnN0cnVjdG9yO1xuICByZXR1cm4gY29uc3RydWN0b3I7XG59XG4iXX0=
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { NotFoundError } from './not-found-error';
|
|
2
2
|
import { ConflictError } from './conflict-error';
|
|
3
3
|
export function OutputNotFound(id) {
|
|
4
|
-
return new NotFoundError(`Output with fOutputId ${id} not found.
|
|
4
|
+
return new NotFoundError(`Output with fOutputId ${id} not found. Make sure there is no f-connection to a non-existent fOutput.`);
|
|
5
5
|
}
|
|
6
6
|
export function InputNotFound(id) {
|
|
7
|
-
return new NotFoundError(`Input with fInputId ${id} not found.
|
|
7
|
+
return new NotFoundError(`Input with fInputId ${id} not found. Make sure there is no f-connection to a non-existent fInput.`);
|
|
8
8
|
}
|
|
9
9
|
export function RequiredOutput() {
|
|
10
10
|
return new ConflictError(`The fNode must contain at least one fOutput if there is an fOutlet`);
|
|
11
11
|
}
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9lcnJvcnMvZXJyb3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNsRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFakQsTUFBTSxVQUFVLGNBQWMsQ0FBQyxFQUFVO0lBQ3ZDLE9BQU8sSUFBSSxhQUFhLENBQUMseUJBQTBCLEVBQUcsMkVBQTJFLENBQUMsQ0FBQztBQUNySS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T3V0cHV0IGlmIHRoZXJlIGlzIGFuIGZPdXRsZXRgKTtcbn1cbiJdfQ==
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CreateConnectionOnPointerUp, CreateConnectionPrepareDragSequence, FindFirstCanBeConnectedOutputByOutletHandler } from './create-connection';
|
|
2
2
|
import { FindInputsUnderPointerHandler, FirstNotConnectedInputOfNodeUnderPointerHandler, InputsUnderPointerHandler } from './find-inputs-under-pointer';
|
|
3
3
|
import { ReassignConnectionOnPointerUp, ReassignConnectionPrepareDragSequence } from './reassign-connection';
|
|
4
|
-
export declare const CONNECTIONS_PROVIDERS: (typeof
|
|
4
|
+
export declare const CONNECTIONS_PROVIDERS: (typeof FindFirstCanBeConnectedOutputByOutletHandler | typeof FirstNotConnectedInputOfNodeUnderPointerHandler | typeof InputsUnderPointerHandler | typeof ReassignConnectionOnPointerUp | typeof ReassignConnectionPrepareDragSequence | typeof FindInputsUnderPointerHandler | typeof CreateConnectionOnPointerUp | typeof CreateConnectionPrepareDragSequence)[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { NodeOnPointerUp } from './node.on-pointer-up';
|
|
2
2
|
import { NodePrepareDragSequence } from './node.prepare-drag-sequence';
|
|
3
3
|
import { IsConnectionUnderNodeHandler } from './domain/is-connection-under-node';
|
|
4
|
-
export declare const NODE_PROVIDERS: (typeof
|
|
4
|
+
export declare const NODE_PROVIDERS: (typeof IsConnectionUnderNodeHandler | typeof NodeOnPointerUp | typeof NodePrepareDragSequence)[];
|
package/fesm2022/foblex-flow.mjs
CHANGED
|
@@ -2177,7 +2177,7 @@ class FindInputsUnderPointerRequest {
|
|
|
2177
2177
|
function createErrorClass(impl) {
|
|
2178
2178
|
const _super = (instance) => {
|
|
2179
2179
|
Error.call(instance);
|
|
2180
|
-
instance.stack = new Error().stack;
|
|
2180
|
+
// instance.stack = new Error().stack;
|
|
2181
2181
|
};
|
|
2182
2182
|
const constructor = impl(_super);
|
|
2183
2183
|
constructor.prototype = Object.create(Error.prototype);
|
|
@@ -2198,10 +2198,10 @@ const ConflictError = createErrorClass((_super) => function error(message) {
|
|
|
2198
2198
|
});
|
|
2199
2199
|
|
|
2200
2200
|
function OutputNotFound(id) {
|
|
2201
|
-
return new NotFoundError(`Output with fOutputId ${id} not found.
|
|
2201
|
+
return new NotFoundError(`Output with fOutputId ${id} not found. Make sure there is no f-connection to a non-existent fOutput.`);
|
|
2202
2202
|
}
|
|
2203
2203
|
function InputNotFound(id) {
|
|
2204
|
-
return new NotFoundError(`Input with fInputId ${id} not found.
|
|
2204
|
+
return new NotFoundError(`Input with fInputId ${id} not found. Make sure there is no f-connection to a non-existent fInput.`);
|
|
2205
2205
|
}
|
|
2206
2206
|
function RequiredOutput() {
|
|
2207
2207
|
return new ConflictError(`The fNode must contain at least one fOutput if there is an fOutlet`);
|