@graphrefly/graphrefly 0.17.0 → 0.18.0

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.
Files changed (71) hide show
  1. package/dist/{chunk-2PORF4RP.js → chunk-76YPZQTW.js} +2 -8
  2. package/dist/{chunk-2PORF4RP.js.map → chunk-76YPZQTW.js.map} +1 -1
  3. package/dist/{chunk-646OG3PO.js → chunk-F6ORUNO7.js} +18 -51
  4. package/dist/chunk-F6ORUNO7.js.map +1 -0
  5. package/dist/{chunk-EBNKJULL.js → chunk-FCLROC4Q.js} +2 -2
  6. package/dist/chunk-FCLROC4Q.js.map +1 -0
  7. package/dist/{chunk-F2ULI3Q3.js → chunk-J7S54G7I.js} +1 -2
  8. package/dist/{chunk-XJ6EMQ22.js → chunk-KJGUP35I.js} +3 -9
  9. package/dist/chunk-KJGUP35I.js.map +1 -0
  10. package/dist/{chunk-IHJHBADD.js → chunk-LB3RYLSC.js} +206 -173
  11. package/dist/chunk-LB3RYLSC.js.map +1 -0
  12. package/dist/{chunk-R6OHUUYB.js → chunk-TNKODJ6E.js} +2 -6
  13. package/dist/chunk-TNKODJ6E.js.map +1 -0
  14. package/dist/{chunk-YXROQFXZ.js → chunk-UVWEKTYC.js} +2 -2
  15. package/dist/compat/nestjs/index.cjs +221 -224
  16. package/dist/compat/nestjs/index.cjs.map +1 -1
  17. package/dist/compat/nestjs/index.d.cts +4 -4
  18. package/dist/compat/nestjs/index.d.ts +4 -4
  19. package/dist/compat/nestjs/index.js +6 -12
  20. package/dist/core/index.cjs +0 -83
  21. package/dist/core/index.cjs.map +1 -1
  22. package/dist/core/index.d.cts +2 -2
  23. package/dist/core/index.d.ts +2 -2
  24. package/dist/core/index.js +2 -6
  25. package/dist/extra/index.cjs +17 -53
  26. package/dist/extra/index.cjs.map +1 -1
  27. package/dist/extra/index.d.cts +4 -4
  28. package/dist/extra/index.d.ts +4 -4
  29. package/dist/extra/index.js +2 -8
  30. package/dist/graph/index.cjs +204 -171
  31. package/dist/graph/index.cjs.map +1 -1
  32. package/dist/graph/index.d.cts +3 -3
  33. package/dist/graph/index.d.ts +3 -3
  34. package/dist/graph/index.js +3 -3
  35. package/dist/{graph-Dc-P9BVm.d.ts → graph-BYFlyNpX.d.cts} +47 -45
  36. package/dist/{graph-fCsaaVIa.d.cts → graph-gISB9n3n.d.ts} +47 -45
  37. package/dist/{index-N704txAA.d.ts → index-7WnwgjMu.d.ts} +5 -7
  38. package/dist/{index-DWq0P9T6.d.ts → index-B43mC7uY.d.cts} +5 -7
  39. package/dist/{index-BmoUvOGN.d.ts → index-B80mMeuf.d.ts} +2 -4
  40. package/dist/{index-DlGMf_Qe.d.cts → index-BqOWSFhr.d.cts} +2 -2
  41. package/dist/{index-BBVBYPxr.d.cts → index-CEDaJaYE.d.ts} +5 -7
  42. package/dist/{index-DhXznWyH.d.ts → index-CgKPpiu8.d.ts} +2 -2
  43. package/dist/{index-D7y9Q8W4.d.ts → index-Ci_vPaVm.d.cts} +4 -6
  44. package/dist/{index-4OIX-q0C.d.cts → index-DKaB2x0T.d.ts} +4 -6
  45. package/dist/{index-ClaKZFPl.d.cts → index-D_tUMcpz.d.cts} +5 -7
  46. package/dist/{index-YlOH1Gw6.d.cts → index-EmzYk-TG.d.cts} +2 -4
  47. package/dist/index.cjs +312 -239
  48. package/dist/index.cjs.map +1 -1
  49. package/dist/index.d.cts +51 -13
  50. package/dist/index.d.ts +51 -13
  51. package/dist/index.js +103 -24
  52. package/dist/index.js.map +1 -1
  53. package/dist/{meta-BV4pj9ML.d.cts → meta-npl5b97j.d.cts} +1 -53
  54. package/dist/{meta-BV4pj9ML.d.ts → meta-npl5b97j.d.ts} +1 -53
  55. package/dist/observable-DFBCBELR.d.cts +36 -0
  56. package/dist/observable-oAGygKvc.d.ts +36 -0
  57. package/dist/patterns/reactive-layout/index.cjs +204 -171
  58. package/dist/patterns/reactive-layout/index.cjs.map +1 -1
  59. package/dist/patterns/reactive-layout/index.d.cts +3 -3
  60. package/dist/patterns/reactive-layout/index.d.ts +3 -3
  61. package/dist/patterns/reactive-layout/index.js +3 -3
  62. package/package.json +1 -1
  63. package/dist/chunk-646OG3PO.js.map +0 -1
  64. package/dist/chunk-EBNKJULL.js.map +0 -1
  65. package/dist/chunk-IHJHBADD.js.map +0 -1
  66. package/dist/chunk-R6OHUUYB.js.map +0 -1
  67. package/dist/chunk-XJ6EMQ22.js.map +0 -1
  68. package/dist/observable-Cz-AWhwR.d.cts +0 -42
  69. package/dist/observable-DCqlwGyl.d.ts +0 -42
  70. /package/dist/{chunk-F2ULI3Q3.js.map → chunk-J7S54G7I.js.map} +0 -0
  71. /package/dist/{chunk-YXROQFXZ.js.map → chunk-UVWEKTYC.js.map} +0 -0
@@ -1,7 +1,7 @@
1
- export { o as observeGraph$, a as observeNode$, t as toMessages$, b as toObservable } from '../../observable-Cz-AWhwR.cjs';
2
- export { A as ACTOR_KEY, a as ActorExtractor, C as COMMAND_HANDLERS, b as CQRS_EVENT_HANDLERS, d as CRON_HANDLERS, e as CommandHandler, f as CommandHandlerMeta, E as EVENT_HANDLERS, g as EventHandler, h as EventHandlerMeta, G as GRAPHREFLY_REQUEST_GRAPH, j as GRAPHREFLY_ROOT_GRAPH, k as GraphCron, l as GraphCronMeta, m as GraphInterval, n as GraphIntervalMeta, o as GraphReflyCqrsOptions, p as GraphReflyEventExplorer, q as GraphReflyFeatureOptions, r as GraphReflyGuard, s as GraphReflyGuardImpl, t as GraphReflyModule, u as GraphReflyRootOptions, I as INTERVAL_HANDLERS, v as InjectCqrsGraph, w as InjectGraph, x as InjectNode, O as ObserveGateway, y as ObserveGatewayOptions, z as ObserveSSEOptions, B as ObserveSubscriptionOptions, D as ObserveWsCommand, F as ObserveWsMessage, H as OnGraphEvent, J as OnGraphEventMeta, Q as QUERY_HANDLERS, K as QueryHandler, L as QueryHandlerMeta, S as SAGA_HANDLERS, M as SagaHandler, N as SagaHandlerMeta, P as fromHeader, R as fromJwtPayload, T as getActor, U as getGraphToken, V as getNodeToken, W as observeSSE, X as observeSubscription } from '../../index-BBVBYPxr.cjs';
1
+ export { T as ToObservableOptions, t as toObservable } from '../../observable-DFBCBELR.cjs';
2
+ export { A as ACTOR_KEY, a as ActorExtractor, C as COMMAND_HANDLERS, b as CQRS_EVENT_HANDLERS, d as CRON_HANDLERS, e as CommandHandler, f as CommandHandlerMeta, E as EVENT_HANDLERS, g as EventHandler, h as EventHandlerMeta, G as GRAPHREFLY_REQUEST_GRAPH, j as GRAPHREFLY_ROOT_GRAPH, k as GraphCron, l as GraphCronMeta, m as GraphInterval, n as GraphIntervalMeta, o as GraphReflyCqrsOptions, p as GraphReflyEventExplorer, q as GraphReflyFeatureOptions, r as GraphReflyGuard, s as GraphReflyGuardImpl, t as GraphReflyModule, u as GraphReflyRootOptions, I as INTERVAL_HANDLERS, v as InjectCqrsGraph, w as InjectGraph, x as InjectNode, O as ObserveGateway, y as ObserveGatewayOptions, z as ObserveSSEOptions, B as ObserveSubscriptionOptions, D as ObserveWsCommand, F as ObserveWsMessage, H as OnGraphEvent, J as OnGraphEventMeta, Q as QUERY_HANDLERS, K as QueryHandler, L as QueryHandlerMeta, S as SAGA_HANDLERS, M as SagaHandler, N as SagaHandlerMeta, P as fromHeader, R as fromJwtPayload, T as getActor, U as getGraphToken, V as getNodeToken, W as observeSSE, X as observeSubscription } from '../../index-B43mC7uY.cjs';
3
3
  import 'rxjs';
4
- import '../../meta-BV4pj9ML.cjs';
5
- import '../../graph-fCsaaVIa.cjs';
4
+ import '../../meta-npl5b97j.cjs';
6
5
  import '@nestjs/common';
7
6
  import '@nestjs/core';
7
+ import '../../graph-BYFlyNpX.cjs';
@@ -1,7 +1,7 @@
1
- export { o as observeGraph$, a as observeNode$, t as toMessages$, b as toObservable } from '../../observable-DCqlwGyl.js';
2
- export { A as ACTOR_KEY, a as ActorExtractor, C as COMMAND_HANDLERS, b as CQRS_EVENT_HANDLERS, d as CRON_HANDLERS, e as CommandHandler, f as CommandHandlerMeta, E as EVENT_HANDLERS, g as EventHandler, h as EventHandlerMeta, G as GRAPHREFLY_REQUEST_GRAPH, j as GRAPHREFLY_ROOT_GRAPH, k as GraphCron, l as GraphCronMeta, m as GraphInterval, n as GraphIntervalMeta, o as GraphReflyCqrsOptions, p as GraphReflyEventExplorer, q as GraphReflyFeatureOptions, r as GraphReflyGuard, s as GraphReflyGuardImpl, t as GraphReflyModule, u as GraphReflyRootOptions, I as INTERVAL_HANDLERS, v as InjectCqrsGraph, w as InjectGraph, x as InjectNode, O as ObserveGateway, y as ObserveGatewayOptions, z as ObserveSSEOptions, B as ObserveSubscriptionOptions, D as ObserveWsCommand, F as ObserveWsMessage, H as OnGraphEvent, J as OnGraphEventMeta, Q as QUERY_HANDLERS, K as QueryHandler, L as QueryHandlerMeta, S as SAGA_HANDLERS, M as SagaHandler, N as SagaHandlerMeta, P as fromHeader, R as fromJwtPayload, T as getActor, U as getGraphToken, V as getNodeToken, W as observeSSE, X as observeSubscription } from '../../index-DWq0P9T6.js';
1
+ export { T as ToObservableOptions, t as toObservable } from '../../observable-oAGygKvc.js';
2
+ export { A as ACTOR_KEY, a as ActorExtractor, C as COMMAND_HANDLERS, b as CQRS_EVENT_HANDLERS, d as CRON_HANDLERS, e as CommandHandler, f as CommandHandlerMeta, E as EVENT_HANDLERS, g as EventHandler, h as EventHandlerMeta, G as GRAPHREFLY_REQUEST_GRAPH, j as GRAPHREFLY_ROOT_GRAPH, k as GraphCron, l as GraphCronMeta, m as GraphInterval, n as GraphIntervalMeta, o as GraphReflyCqrsOptions, p as GraphReflyEventExplorer, q as GraphReflyFeatureOptions, r as GraphReflyGuard, s as GraphReflyGuardImpl, t as GraphReflyModule, u as GraphReflyRootOptions, I as INTERVAL_HANDLERS, v as InjectCqrsGraph, w as InjectGraph, x as InjectNode, O as ObserveGateway, y as ObserveGatewayOptions, z as ObserveSSEOptions, B as ObserveSubscriptionOptions, D as ObserveWsCommand, F as ObserveWsMessage, H as OnGraphEvent, J as OnGraphEventMeta, Q as QUERY_HANDLERS, K as QueryHandler, L as QueryHandlerMeta, S as SAGA_HANDLERS, M as SagaHandler, N as SagaHandlerMeta, P as fromHeader, R as fromJwtPayload, T as getActor, U as getGraphToken, V as getNodeToken, W as observeSSE, X as observeSubscription } from '../../index-CEDaJaYE.js';
3
3
  import 'rxjs';
4
- import '../../meta-BV4pj9ML.js';
5
- import '../../graph-Dc-P9BVm.js';
4
+ import '../../meta-npl5b97j.js';
6
5
  import '@nestjs/common';
7
6
  import '@nestjs/core';
7
+ import '../../graph-gISB9n3n.js';
@@ -31,18 +31,15 @@ import {
31
31
  getNodeToken,
32
32
  observeSSE,
33
33
  observeSubscription
34
- } from "../../chunk-XJ6EMQ22.js";
35
- import "../../chunk-EBNKJULL.js";
36
- import "../../chunk-R6OHUUYB.js";
34
+ } from "../../chunk-KJGUP35I.js";
35
+ import "../../chunk-TNKODJ6E.js";
36
+ import "../../chunk-FCLROC4Q.js";
37
37
  import {
38
- observeGraph$,
39
- observeNode$,
40
- toMessages$,
41
38
  toObservable
42
- } from "../../chunk-646OG3PO.js";
39
+ } from "../../chunk-F6ORUNO7.js";
43
40
  import "../../chunk-WZ2Z2CRV.js";
44
- import "../../chunk-IHJHBADD.js";
45
- import "../../chunk-F2ULI3Q3.js";
41
+ import "../../chunk-LB3RYLSC.js";
42
+ import "../../chunk-J7S54G7I.js";
46
43
  import "../../chunk-BV3TPSBK.js";
47
44
  export {
48
45
  ACTOR_KEY,
@@ -75,11 +72,8 @@ export {
75
72
  getActor,
76
73
  getGraphToken,
77
74
  getNodeToken,
78
- observeGraph$,
79
- observeNode$,
80
75
  observeSSE,
81
76
  observeSubscription,
82
- toMessages$,
83
77
  toObservable
84
78
  };
85
79
  //# sourceMappingURL=index.js.map
@@ -43,7 +43,6 @@ __export(core_exports, {
43
43
  createVersioning: () => createVersioning,
44
44
  defaultHash: () => defaultHash,
45
45
  derived: () => derived,
46
- describeNode: () => describeNode,
47
46
  downWithBatch: () => downWithBatch,
48
47
  dynamicNode: () => dynamicNode,
49
48
  effect: () => effect,
@@ -54,7 +53,6 @@ __export(core_exports, {
54
53
  isV1: () => isV1,
55
54
  knownMessageTypes: () => knownMessageTypes,
56
55
  messageTier: () => messageTier,
57
- metaSnapshot: () => metaSnapshot,
58
56
  monotonicNs: () => monotonicNs,
59
57
  node: () => node,
60
58
  normalizeActor: () => normalizeActor,
@@ -1650,85 +1648,6 @@ function resolveDescribeFields(detail, fields) {
1650
1648
  return /* @__PURE__ */ new Set(["type", "deps"]);
1651
1649
  }
1652
1650
  }
1653
- function inferDescribeType(n) {
1654
- if (n._describeKind != null) return n._describeKind;
1655
- if (!n._hasDeps) return n._fn != null ? "producer" : "state";
1656
- if (n._fn == null) return "derived";
1657
- if (n._manualEmitUsed) return "operator";
1658
- return "derived";
1659
- }
1660
- function metaSnapshot(node2) {
1661
- const out = {};
1662
- for (const [key, child] of Object.entries(node2.meta)) {
1663
- try {
1664
- out[key] = child.get();
1665
- } catch {
1666
- }
1667
- }
1668
- return out;
1669
- }
1670
- function describeNode(node2, includeFields) {
1671
- const all = includeFields == null;
1672
- const metaKeys = !all && includeFields != null ? [...includeFields].filter((f) => f.startsWith("meta.")).map((f) => f.slice(5)) : null;
1673
- const wantsMeta = all || includeFields.has("meta") || metaKeys != null && metaKeys.length > 0;
1674
- let type = "state";
1675
- let deps = [];
1676
- if (node2 instanceof NodeImpl) {
1677
- type = inferDescribeType(node2);
1678
- deps = node2._deps.map((d) => d.name ?? "");
1679
- } else if (node2 instanceof DynamicNodeImpl) {
1680
- type = node2._describeKind ?? "derived";
1681
- deps = [];
1682
- }
1683
- const out = { type, deps };
1684
- if (all || includeFields.has("status")) {
1685
- out.status = node2.status;
1686
- }
1687
- const guard = node2 instanceof NodeImpl && node2._guard || node2 instanceof DynamicNodeImpl && node2._guard || void 0;
1688
- if (wantsMeta) {
1689
- const rawMeta = { ...metaSnapshot(node2) };
1690
- if (guard != null && rawMeta.access === void 0) {
1691
- rawMeta.access = accessHintForGuard(guard);
1692
- }
1693
- if (metaKeys != null && metaKeys.length > 0 && !includeFields.has("meta")) {
1694
- const filtered = {};
1695
- for (const k of metaKeys) {
1696
- if (k in rawMeta) filtered[k] = rawMeta[k];
1697
- }
1698
- out.meta = filtered;
1699
- } else {
1700
- out.meta = rawMeta;
1701
- }
1702
- }
1703
- if (node2.name != null) {
1704
- out.name = node2.name;
1705
- }
1706
- if (all || includeFields.has("value")) {
1707
- try {
1708
- out.value = node2.get();
1709
- } catch {
1710
- }
1711
- }
1712
- if ((all || includeFields.has("v")) && node2.v != null) {
1713
- const vInfo = { id: node2.v.id, version: node2.v.version };
1714
- if ("cid" in node2.v) {
1715
- vInfo.cid = node2.v.cid;
1716
- vInfo.prev = node2.v.prev;
1717
- }
1718
- out.v = vInfo;
1719
- }
1720
- if (all || includeFields.has("guard")) {
1721
- if (guard != null) {
1722
- out.guard = accessHintForGuard(guard);
1723
- }
1724
- }
1725
- if (all || includeFields.has("lastMutation")) {
1726
- if (node2.lastMutation != null) {
1727
- out.lastMutation = node2.lastMutation;
1728
- }
1729
- }
1730
- return out;
1731
- }
1732
1651
 
1733
1652
  // src/core/sugar.ts
1734
1653
  function state(initial, opts) {
@@ -1803,7 +1722,6 @@ var ResettableTimer = class {
1803
1722
  createVersioning,
1804
1723
  defaultHash,
1805
1724
  derived,
1806
- describeNode,
1807
1725
  downWithBatch,
1808
1726
  dynamicNode,
1809
1727
  effect,
@@ -1814,7 +1732,6 @@ var ResettableTimer = class {
1814
1732
  isV1,
1815
1733
  knownMessageTypes,
1816
1734
  messageTier,
1817
- metaSnapshot,
1818
1735
  monotonicNs,
1819
1736
  node,
1820
1737
  normalizeActor,