@dxos/app-graph 0.8.4-main.422d1c7879 → 0.8.4-main.4f23b4e393
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/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/{browser/chunk-W47H2NND.mjs → neutral/chunk-WJJ5KEOH.mjs} +46 -173
- package/dist/lib/neutral/chunk-WJJ5KEOH.mjs.map +7 -0
- package/dist/lib/{browser → neutral}/index.mjs +4 -2
- package/dist/lib/{browser → neutral}/index.mjs.map +2 -2
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/scheduler.mjs +15 -0
- package/dist/lib/neutral/scheduler.mjs.map +7 -0
- package/dist/lib/{browser → neutral}/testing/index.mjs +2 -1
- package/dist/types/src/atoms.d.ts.map +1 -1
- package/dist/types/src/graph-builder.d.ts +1 -1
- package/dist/types/src/graph-builder.d.ts.map +1 -1
- package/dist/types/src/graph.d.ts.map +1 -1
- package/dist/types/src/node-matcher.d.ts +2 -2
- package/dist/types/src/node-matcher.d.ts.map +1 -1
- package/dist/types/src/node.d.ts +2 -2
- package/dist/types/src/node.d.ts.map +1 -1
- package/dist/types/src/scheduler.browser.d.ts +2 -0
- package/dist/types/src/scheduler.browser.d.ts.map +1 -0
- package/dist/types/src/scheduler.d.ts +8 -0
- package/dist/types/src/scheduler.d.ts.map +1 -0
- package/dist/types/src/stories/EchoGraph.stories.d.ts.map +1 -1
- package/dist/types/src/testing/setup-graph-builder.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +1 -0
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +31 -23
- package/src/graph-builder.test.ts +126 -0
- package/src/graph-builder.ts +20 -1
- package/src/node-matcher.ts +2 -2
- package/src/scheduler.browser.ts +5 -0
- package/src/scheduler.ts +17 -0
- package/src/stories/EchoGraph.stories.tsx +4 -4
- package/src/util.ts +9 -3
- package/dist/lib/browser/chunk-W47H2NND.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/testing/index.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-LYZWNJ7J.mjs +0 -1605
- package/dist/lib/node-esm/chunk-LYZWNJ7J.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -39
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/testing/index.mjs +0 -40
- /package/dist/lib/{node-esm → neutral}/testing/index.mjs.map +0 -0
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-J5LGTIGS.mjs";
|
|
6
4
|
|
|
7
5
|
// src/node.ts
|
|
8
6
|
var node_exports = {};
|
|
@@ -61,8 +59,12 @@ var secondaryKey = (...parts) => parts.join(SECONDARY);
|
|
|
61
59
|
var secondaryParts = (key) => key.split(SECONDARY);
|
|
62
60
|
var normalizeRelation = (relation2) => relation2 == null ? childRelation() : typeof relation2 === "string" ? relation(relation2) : relation2;
|
|
63
61
|
var shallowEqual = (a, b) => {
|
|
64
|
-
if (a === b)
|
|
65
|
-
|
|
62
|
+
if (a === b) {
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
if (a == null || b == null || typeof a !== "object" || typeof b !== "object") {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
66
68
|
const keysA = Object.keys(a);
|
|
67
69
|
const keysB = Object.keys(b);
|
|
68
70
|
if (keysA.length !== keysB.length) {
|
|
@@ -76,7 +78,7 @@ var nodeArgsUnchanged = (prev, next) => {
|
|
|
76
78
|
}
|
|
77
79
|
return prev.every((prevNode, idx) => {
|
|
78
80
|
const nextNode = next[idx];
|
|
79
|
-
return prevNode.id === nextNode.id && prevNode.type === nextNode.type && shallowEqual(prevNode.data, nextNode.data) && shallowEqual(prevNode.properties, nextNode.properties);
|
|
81
|
+
return prevNode.id === nextNode.id && prevNode.type === nextNode.type && shallowEqual(prevNode.data, nextNode.data) && shallowEqual(prevNode.properties, nextNode.properties) && nodeArgsUnchanged(prevNode.nodes ?? [], nextNode.nodes ?? []);
|
|
80
82
|
});
|
|
81
83
|
};
|
|
82
84
|
var qualifyId = (parentId, ...segmentIds) => [
|
|
@@ -84,15 +86,7 @@ var qualifyId = (parentId, ...segmentIds) => [
|
|
|
84
86
|
...segmentIds
|
|
85
87
|
].join(PATH);
|
|
86
88
|
var validateSegmentId = (id) => {
|
|
87
|
-
invariant(!id.includes(PATH), `Node segment ID must not contain '${PATH}': ${id}`, {
|
|
88
|
-
F: __dxlog_file,
|
|
89
|
-
L: 78,
|
|
90
|
-
S: void 0,
|
|
91
|
-
A: [
|
|
92
|
-
"!id.includes(PATH)",
|
|
93
|
-
"`Node segment ID must not contain '${PATH}': ${id}`"
|
|
94
|
-
]
|
|
95
|
-
});
|
|
89
|
+
invariant(!id.includes(PATH), `Node segment ID must not contain '${PATH}': ${id}`, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 56, S: void 0, A: ["!id.includes(PATH)", "`Node segment ID must not contain '${PATH}': ${id}`"] });
|
|
96
90
|
};
|
|
97
91
|
var getParentId = (qualifiedId) => {
|
|
98
92
|
const lastSlash = qualifiedId.lastIndexOf(PATH);
|
|
@@ -147,15 +141,7 @@ var __dxlog_file2 = "/__w/dxos/dxos/packages/sdk/app-graph/src/graph.ts";
|
|
|
147
141
|
var graphSymbol = /* @__PURE__ */ Symbol("graph");
|
|
148
142
|
var getGraph = (node) => {
|
|
149
143
|
const graph = node[graphSymbol];
|
|
150
|
-
invariant2(graph, "Node is not associated with a graph.", {
|
|
151
|
-
F: __dxlog_file2,
|
|
152
|
-
L: 33,
|
|
153
|
-
S: void 0,
|
|
154
|
-
A: [
|
|
155
|
-
"graph",
|
|
156
|
-
"'Node is not associated with a graph.'"
|
|
157
|
-
]
|
|
158
|
-
});
|
|
144
|
+
invariant2(graph, "Node is not associated with a graph.", { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 21, S: void 0, A: ["graph", "'Node is not associated with a graph.'"] });
|
|
159
145
|
return graph;
|
|
160
146
|
};
|
|
161
147
|
var GraphTypeId = /* @__PURE__ */ Symbol.for("@dxos/app-graph/Graph");
|
|
@@ -194,15 +180,7 @@ var GraphImpl = class {
|
|
|
194
180
|
_nodeOrThrow = Atom.family((id) => {
|
|
195
181
|
return Atom.make((get2) => {
|
|
196
182
|
const node = get2(this._node(id));
|
|
197
|
-
invariant2(Option.isSome(node), `Node not available: ${id}`, {
|
|
198
|
-
F: __dxlog_file2,
|
|
199
|
-
L: 172,
|
|
200
|
-
S: this,
|
|
201
|
-
A: [
|
|
202
|
-
"Option.isSome(node)",
|
|
203
|
-
"`Node not available: ${id}`"
|
|
204
|
-
]
|
|
205
|
-
});
|
|
183
|
+
invariant2(Option.isSome(node), `Node not available: ${id}`, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 67, S: this, A: ["Option.isSome(node)", "`Node not available: ${id}`"] });
|
|
206
184
|
return node.value;
|
|
207
185
|
});
|
|
208
186
|
});
|
|
@@ -373,15 +351,7 @@ function getConnections(graphOrId, idOrRelation, relation2) {
|
|
|
373
351
|
} else {
|
|
374
352
|
const graph = graphOrId;
|
|
375
353
|
const id = idOrRelation;
|
|
376
|
-
invariant2(relation2 !== void 0, "Relation is required.", {
|
|
377
|
-
F: __dxlog_file2,
|
|
378
|
-
L: 449,
|
|
379
|
-
S: this,
|
|
380
|
-
A: [
|
|
381
|
-
"relation !== undefined",
|
|
382
|
-
"'Relation is required.'"
|
|
383
|
-
]
|
|
384
|
-
});
|
|
354
|
+
invariant2(relation2 !== void 0, "Relation is required.", { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 272, S: this, A: ["relation !== undefined", "'Relation is required.'"] });
|
|
385
355
|
const rel = relation2;
|
|
386
356
|
return getConnectionsImpl(graph, id, rel);
|
|
387
357
|
}
|
|
@@ -518,12 +488,7 @@ var initializeImpl = async (graph, id) => {
|
|
|
518
488
|
log("initialize", {
|
|
519
489
|
id,
|
|
520
490
|
initialized
|
|
521
|
-
}, {
|
|
522
|
-
F: __dxlog_file2,
|
|
523
|
-
L: 671,
|
|
524
|
-
S: void 0,
|
|
525
|
-
C: (f, a) => f(...a)
|
|
526
|
-
});
|
|
491
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 431, S: void 0 });
|
|
527
492
|
if (!initialized) {
|
|
528
493
|
Record.set(internal._initialized, id, true);
|
|
529
494
|
await internal._onInitialize?.(id);
|
|
@@ -549,24 +514,14 @@ var expandImpl = (graph, id, relation2) => {
|
|
|
549
514
|
log("expand", {
|
|
550
515
|
key,
|
|
551
516
|
deferred: true
|
|
552
|
-
}, {
|
|
553
|
-
F: __dxlog_file2,
|
|
554
|
-
L: 717,
|
|
555
|
-
S: void 0,
|
|
556
|
-
C: (f, a) => f(...a)
|
|
557
|
-
});
|
|
517
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 463, S: void 0 });
|
|
558
518
|
return graph;
|
|
559
519
|
}
|
|
560
520
|
const expanded = Record.get(internal._expanded, key).pipe(Option.getOrElse(() => false));
|
|
561
521
|
log("expand", {
|
|
562
522
|
key,
|
|
563
523
|
expanded
|
|
564
|
-
}, {
|
|
565
|
-
F: __dxlog_file2,
|
|
566
|
-
L: 722,
|
|
567
|
-
S: void 0,
|
|
568
|
-
C: (f, a) => f(...a)
|
|
569
|
-
});
|
|
524
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 470, S: void 0 });
|
|
570
525
|
if (!expanded) {
|
|
571
526
|
Record.set(internal._expanded, key, true);
|
|
572
527
|
internal._onExpand?.(id, normalizedRelation);
|
|
@@ -581,15 +536,7 @@ function expand(graphOrId, idOrRelation, relation2) {
|
|
|
581
536
|
} else {
|
|
582
537
|
const graph = graphOrId;
|
|
583
538
|
const id = idOrRelation;
|
|
584
|
-
invariant2(relation2 !== void 0, "Relation is required.", {
|
|
585
|
-
F: __dxlog_file2,
|
|
586
|
-
L: 758,
|
|
587
|
-
S: this,
|
|
588
|
-
A: [
|
|
589
|
-
"relation !== undefined",
|
|
590
|
-
"'Relation is required.'"
|
|
591
|
-
]
|
|
592
|
-
});
|
|
539
|
+
invariant2(relation2 !== void 0, "Relation is required.", { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 490, S: this, A: ["relation !== undefined", "'Relation is required.'"] });
|
|
593
540
|
const rel = relation2;
|
|
594
541
|
return expandImpl(graph, id, rel);
|
|
595
542
|
}
|
|
@@ -658,24 +605,14 @@ var addNodeImpl = (graph, nodeArg) => {
|
|
|
658
605
|
typeChanged,
|
|
659
606
|
dataChanged,
|
|
660
607
|
propertiesChanged
|
|
661
|
-
}, {
|
|
662
|
-
F: __dxlog_file2,
|
|
663
|
-
L: 880,
|
|
664
|
-
S: void 0,
|
|
665
|
-
C: (f, a) => f(...a)
|
|
666
|
-
});
|
|
608
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 565, S: void 0 });
|
|
667
609
|
if (typeChanged || dataChanged || propertiesChanged) {
|
|
668
610
|
log("updating node", {
|
|
669
611
|
id,
|
|
670
612
|
type,
|
|
671
613
|
data,
|
|
672
614
|
properties
|
|
673
|
-
}, {
|
|
674
|
-
F: __dxlog_file2,
|
|
675
|
-
L: 887,
|
|
676
|
-
S: void 0,
|
|
677
|
-
C: (f, a) => f(...a)
|
|
678
|
-
});
|
|
615
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 572, S: void 0 });
|
|
679
616
|
const newNode = Option.some({
|
|
680
617
|
...existing,
|
|
681
618
|
...rest,
|
|
@@ -699,12 +636,7 @@ var addNodeImpl = (graph, nodeArg) => {
|
|
|
699
636
|
type,
|
|
700
637
|
data,
|
|
701
638
|
properties
|
|
702
|
-
}, {
|
|
703
|
-
F: __dxlog_file2,
|
|
704
|
-
L: 900,
|
|
705
|
-
S: void 0,
|
|
706
|
-
C: (f, a) => f(...a)
|
|
707
|
-
});
|
|
639
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 596, S: void 0 });
|
|
708
640
|
const newNode = internal._constructNode({
|
|
709
641
|
id,
|
|
710
642
|
type,
|
|
@@ -845,12 +777,7 @@ var addEdgeImpl = (graph, edgeArg) => {
|
|
|
845
777
|
source: edgeArg.source,
|
|
846
778
|
target: edgeArg.target,
|
|
847
779
|
relation: relationId
|
|
848
|
-
}, {
|
|
849
|
-
F: __dxlog_file2,
|
|
850
|
-
L: 1083,
|
|
851
|
-
S: void 0,
|
|
852
|
-
C: (f, a) => f(...a)
|
|
853
|
-
});
|
|
780
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 758, S: void 0 });
|
|
854
781
|
internal._registry.set(sourceAtom, {
|
|
855
782
|
...source,
|
|
856
783
|
[relationId]: [
|
|
@@ -867,12 +794,7 @@ var addEdgeImpl = (graph, edgeArg) => {
|
|
|
867
794
|
source: edgeArg.source,
|
|
868
795
|
target: edgeArg.target,
|
|
869
796
|
relation: inverseId
|
|
870
|
-
}, {
|
|
871
|
-
F: __dxlog_file2,
|
|
872
|
-
L: 1091,
|
|
873
|
-
S: void 0,
|
|
874
|
-
C: (f, a) => f(...a)
|
|
875
|
-
});
|
|
797
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 775, S: void 0 });
|
|
876
798
|
internal._registry.set(targetAtom, {
|
|
877
799
|
...target,
|
|
878
800
|
[inverseId]: [
|
|
@@ -972,39 +894,15 @@ var relationKey = (relation2) => {
|
|
|
972
894
|
};
|
|
973
895
|
var relationFromKey = (encoded) => {
|
|
974
896
|
const parts = secondaryParts(encoded);
|
|
975
|
-
invariant2(parts.length === 2 && parts[0].length > 0 && parts[1].length > 0, `Invalid relation key: ${encoded}`, {
|
|
976
|
-
F: __dxlog_file2,
|
|
977
|
-
L: 1236,
|
|
978
|
-
S: void 0,
|
|
979
|
-
A: [
|
|
980
|
-
"parts.length === 2 && parts[0].length > 0 && parts[1].length > 0",
|
|
981
|
-
"`Invalid relation key: ${encoded}`"
|
|
982
|
-
]
|
|
983
|
-
});
|
|
897
|
+
invariant2(parts.length === 2 && parts[0].length > 0 && parts[1].length > 0, `Invalid relation key: ${encoded}`, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 894, S: void 0, A: ["parts.length === 2 && parts[0].length > 0 && parts[1].length > 0", "`Invalid relation key: ${encoded}`"] });
|
|
984
898
|
const [kind, directionRaw] = parts;
|
|
985
|
-
invariant2(directionRaw === "outbound" || directionRaw === "inbound", `Invalid relation direction: ${directionRaw}`, {
|
|
986
|
-
F: __dxlog_file2,
|
|
987
|
-
L: 1238,
|
|
988
|
-
S: void 0,
|
|
989
|
-
A: [
|
|
990
|
-
"directionRaw === 'outbound' || directionRaw === 'inbound'",
|
|
991
|
-
"`Invalid relation direction: ${directionRaw}`"
|
|
992
|
-
]
|
|
993
|
-
});
|
|
899
|
+
invariant2(directionRaw === "outbound" || directionRaw === "inbound", `Invalid relation direction: ${directionRaw}`, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 896, S: void 0, A: ["directionRaw === 'outbound' || directionRaw === 'inbound'", "`Invalid relation direction: ${directionRaw}`"] });
|
|
994
900
|
return relation(kind, directionRaw);
|
|
995
901
|
};
|
|
996
902
|
var connectionKey = (id, relation2) => primaryKey(id, relationKey(relation2));
|
|
997
903
|
var relationFromConnectionKey = (key) => {
|
|
998
904
|
const [id, encodedRelation] = primaryParts(key);
|
|
999
|
-
invariant2(id && encodedRelation, `Invalid connection key: ${key}`, {
|
|
1000
|
-
F: __dxlog_file2,
|
|
1001
|
-
L: 1246,
|
|
1002
|
-
S: void 0,
|
|
1003
|
-
A: [
|
|
1004
|
-
"id && encodedRelation",
|
|
1005
|
-
"`Invalid connection key: ${key}`"
|
|
1006
|
-
]
|
|
1007
|
-
});
|
|
905
|
+
invariant2(id && encodedRelation, `Invalid connection key: ${key}`, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 902, S: void 0, A: ["id && encodedRelation", "`Invalid connection key: ${key}`"] });
|
|
1008
906
|
return {
|
|
1009
907
|
id,
|
|
1010
908
|
relation: relationFromKey(encodedRelation)
|
|
@@ -1086,9 +984,9 @@ import * as Function2 from "effect/Function";
|
|
|
1086
984
|
import * as Option3 from "effect/Option";
|
|
1087
985
|
import * as Pipeable2 from "effect/Pipeable";
|
|
1088
986
|
import * as Record2 from "effect/Record";
|
|
1089
|
-
import { scheduleTask, yieldOrContinue } from "main-thread-scheduling";
|
|
1090
987
|
import { log as log2 } from "@dxos/log";
|
|
1091
988
|
import { byPosition, getDebugName, isNonNullable as isNonNullable2 } from "@dxos/util";
|
|
989
|
+
import { scheduleTask, yieldOrContinue } from "#scheduler";
|
|
1092
990
|
var __dxlog_file3 = "/__w/dxos/dxos/packages/sdk/app-graph/src/graph-builder.ts";
|
|
1093
991
|
var GraphBuilderTypeId = /* @__PURE__ */ Symbol.for("@dxos/app-graph/GraphBuilder");
|
|
1094
992
|
var GraphBuilderImpl = class {
|
|
@@ -1103,6 +1001,8 @@ var GraphBuilderImpl = class {
|
|
|
1103
1001
|
_dirtyConnectors = /* @__PURE__ */ new Map();
|
|
1104
1002
|
/** Last-flushed node IDs per connector key, used for edge removal on update. */
|
|
1105
1003
|
_connectorPrevious = /* @__PURE__ */ new Map();
|
|
1004
|
+
/** All inline-descendant IDs per connector key, used to remove stale inline nodes on update. */
|
|
1005
|
+
_connectorPreviousInlineIds = /* @__PURE__ */ new Map();
|
|
1106
1006
|
/** Last-flushed node args per connector key, used for change detection. */
|
|
1107
1007
|
_connectorPreviousArgs = /* @__PURE__ */ new Map();
|
|
1108
1008
|
/** Whether a dirty-flush task is already scheduled. */
|
|
@@ -1141,6 +1041,11 @@ var GraphBuilderImpl = class {
|
|
|
1141
1041
|
const removed = previous.filter((pid) => !ids.includes(pid));
|
|
1142
1042
|
this._connectorPrevious.set(key, ids);
|
|
1143
1043
|
this._connectorPreviousArgs.set(key, nodes);
|
|
1044
|
+
const currentInlineIds = collectAllInlineIds(nodes);
|
|
1045
|
+
const previousInlineIds = this._connectorPreviousInlineIds.get(key) ?? [];
|
|
1046
|
+
const staleInlineIds = previousInlineIds.filter((pid) => !currentInlineIds.includes(pid));
|
|
1047
|
+
this._connectorPreviousInlineIds.set(key, currentInlineIds);
|
|
1048
|
+
removeNodes(this._graph, staleInlineIds, true);
|
|
1144
1049
|
removeEdges(this._graph, removed.map((target) => ({
|
|
1145
1050
|
source: id,
|
|
1146
1051
|
target,
|
|
@@ -1207,12 +1112,7 @@ var GraphBuilderImpl = class {
|
|
|
1207
1112
|
id,
|
|
1208
1113
|
relation: relation2,
|
|
1209
1114
|
registry: getDebugName(this._registry)
|
|
1210
|
-
}, {
|
|
1211
|
-
F: __dxlog_file3,
|
|
1212
|
-
L: 269,
|
|
1213
|
-
S: this,
|
|
1214
|
-
C: (f, a) => f(...a)
|
|
1215
|
-
});
|
|
1115
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file3, L: 136, S: this });
|
|
1216
1116
|
this._expandRelation(id, relation2);
|
|
1217
1117
|
if (relation2.kind === "child" && relation2.direction === "outbound") {
|
|
1218
1118
|
expand(this._graph, id, "action");
|
|
@@ -1235,12 +1135,7 @@ var GraphBuilderImpl = class {
|
|
|
1235
1135
|
id,
|
|
1236
1136
|
relation: relation2,
|
|
1237
1137
|
ids
|
|
1238
|
-
}, {
|
|
1239
|
-
F: __dxlog_file3,
|
|
1240
|
-
L: 296,
|
|
1241
|
-
S: this,
|
|
1242
|
-
C: (f, a) => f(...a)
|
|
1243
|
-
});
|
|
1138
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file3, L: 160, S: this });
|
|
1244
1139
|
this._dirtyConnectors.set(key, {
|
|
1245
1140
|
nodes,
|
|
1246
1141
|
previous
|
|
@@ -1254,12 +1149,7 @@ var GraphBuilderImpl = class {
|
|
|
1254
1149
|
async _onInitialize(id) {
|
|
1255
1150
|
log2("onInitialize", {
|
|
1256
1151
|
id
|
|
1257
|
-
}, {
|
|
1258
|
-
F: __dxlog_file3,
|
|
1259
|
-
L: 307,
|
|
1260
|
-
S: this,
|
|
1261
|
-
C: (f, a) => f(...a)
|
|
1262
|
-
});
|
|
1152
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file3, L: 176, S: this });
|
|
1263
1153
|
const resolver = this._resolvers(id);
|
|
1264
1154
|
const cancel = this._registry.subscribe(resolver, (node) => {
|
|
1265
1155
|
const trigger = this._initialized[id];
|
|
@@ -1442,12 +1332,7 @@ var createExtensionRaw = (extension) => {
|
|
|
1442
1332
|
id: getId("connector"),
|
|
1443
1333
|
node,
|
|
1444
1334
|
error
|
|
1445
|
-
}, {
|
|
1446
|
-
F: __dxlog_file3,
|
|
1447
|
-
L: 609,
|
|
1448
|
-
S: void 0,
|
|
1449
|
-
C: (f, a) => f(...a)
|
|
1450
|
-
});
|
|
1335
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file3, L: 383, S: void 0 });
|
|
1451
1336
|
return [];
|
|
1452
1337
|
}
|
|
1453
1338
|
}).pipe(Atom2.withLabel(`graph-builder:connector:${id}`)))
|
|
@@ -1468,12 +1353,7 @@ var createExtensionRaw = (extension) => {
|
|
|
1468
1353
|
id: getId("actionGroups"),
|
|
1469
1354
|
node,
|
|
1470
1355
|
error
|
|
1471
|
-
}, {
|
|
1472
|
-
F: __dxlog_file3,
|
|
1473
|
-
L: 630,
|
|
1474
|
-
S: void 0,
|
|
1475
|
-
C: (f, a) => f(...a)
|
|
1476
|
-
});
|
|
1356
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file3, L: 404, S: void 0 });
|
|
1477
1357
|
return [];
|
|
1478
1358
|
}
|
|
1479
1359
|
}).pipe(Atom2.withLabel(`graph-builder:connector:actionGroups:${id}`)))
|
|
@@ -1493,12 +1373,7 @@ var createExtensionRaw = (extension) => {
|
|
|
1493
1373
|
id: getId("actions"),
|
|
1494
1374
|
node,
|
|
1495
1375
|
error
|
|
1496
|
-
}, {
|
|
1497
|
-
F: __dxlog_file3,
|
|
1498
|
-
L: 647,
|
|
1499
|
-
S: void 0,
|
|
1500
|
-
C: (f, a) => f(...a)
|
|
1501
|
-
});
|
|
1376
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file3, L: 424, S: void 0 });
|
|
1502
1377
|
return [];
|
|
1503
1378
|
}
|
|
1504
1379
|
}).pipe(Atom2.withLabel(`graph-builder:connector:actions:${id}`)))
|
|
@@ -1510,12 +1385,7 @@ var runEffectSyncWithFallback = (effect, context2, extensionId, fallback) => {
|
|
|
1510
1385
|
log2.warn("Extension failed", {
|
|
1511
1386
|
extension: extensionId,
|
|
1512
1387
|
error
|
|
1513
|
-
}, {
|
|
1514
|
-
F: __dxlog_file3,
|
|
1515
|
-
L: 690,
|
|
1516
|
-
S: void 0,
|
|
1517
|
-
C: (f, a) => f(...a)
|
|
1518
|
-
});
|
|
1388
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file3, L: 441, S: void 0 });
|
|
1519
1389
|
return Effect.succeed(fallback);
|
|
1520
1390
|
})));
|
|
1521
1391
|
};
|
|
@@ -1563,6 +1433,10 @@ var qualifyNodeArgs = (parentId) => (nodes) => nodes.map((node) => {
|
|
|
1563
1433
|
nodes: node.nodes ? qualifyNodeArgs(qualified)(node.nodes) : void 0
|
|
1564
1434
|
};
|
|
1565
1435
|
});
|
|
1436
|
+
var collectAllInlineIds = (nodes) => nodes.flatMap((node) => node.nodes ? [
|
|
1437
|
+
...node.nodes.map((child) => child.id),
|
|
1438
|
+
...collectAllInlineIds(node.nodes)
|
|
1439
|
+
] : []);
|
|
1566
1440
|
var connectorKey = (id, relation2) => primaryKey(id, relationKey(relation2));
|
|
1567
1441
|
var relationFromConnectorKey = (key) => {
|
|
1568
1442
|
const [id, encodedRelation] = primaryParts(key);
|
|
@@ -1587,7 +1461,6 @@ var flattenExtensions = (extension, acc = []) => {
|
|
|
1587
1461
|
};
|
|
1588
1462
|
|
|
1589
1463
|
export {
|
|
1590
|
-
__export,
|
|
1591
1464
|
node_exports,
|
|
1592
1465
|
qualifyId,
|
|
1593
1466
|
getParentId,
|
|
@@ -1601,4 +1474,4 @@ export {
|
|
|
1601
1474
|
flush,
|
|
1602
1475
|
graph_builder_exports
|
|
1603
1476
|
};
|
|
1604
|
-
//# sourceMappingURL=chunk-
|
|
1477
|
+
//# sourceMappingURL=chunk-WJJ5KEOH.mjs.map
|