@graphrefly/graphrefly 0.16.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 (75) hide show
  1. package/dist/{chunk-RLVFZDCE.js → chunk-76YPZQTW.js} +3 -9
  2. package/dist/{chunk-RLVFZDCE.js.map → chunk-76YPZQTW.js.map} +1 -1
  3. package/dist/{chunk-VZY2B2LU.js → chunk-BV3TPSBK.js} +1 -2
  4. package/dist/chunk-BV3TPSBK.js.map +1 -0
  5. package/dist/{chunk-YX263TXI.js → chunk-F6ORUNO7.js} +19 -52
  6. package/dist/chunk-F6ORUNO7.js.map +1 -0
  7. package/dist/chunk-FCLROC4Q.js +231 -0
  8. package/dist/chunk-FCLROC4Q.js.map +1 -0
  9. package/dist/{chunk-ITDVOCFO.js → chunk-J7S54G7I.js} +2 -3
  10. package/dist/{chunk-26A4E7J7.js → chunk-KJGUP35I.js} +4 -10
  11. package/dist/chunk-KJGUP35I.js.map +1 -0
  12. package/dist/{chunk-3BLRREFM.js → chunk-LB3RYLSC.js} +207 -174
  13. package/dist/chunk-LB3RYLSC.js.map +1 -0
  14. package/dist/{chunk-LKP7IWRV.js → chunk-TNKODJ6E.js} +3 -7
  15. package/dist/chunk-TNKODJ6E.js.map +1 -0
  16. package/dist/{chunk-RZSQ7P2C.js → chunk-UVWEKTYC.js} +3 -3
  17. package/dist/compat/nestjs/index.cjs +221 -225
  18. package/dist/compat/nestjs/index.cjs.map +1 -1
  19. package/dist/compat/nestjs/index.d.cts +4 -4
  20. package/dist/compat/nestjs/index.d.ts +4 -4
  21. package/dist/compat/nestjs/index.js +7 -13
  22. package/dist/core/index.cjs +0 -84
  23. package/dist/core/index.cjs.map +1 -1
  24. package/dist/core/index.d.cts +2 -2
  25. package/dist/core/index.d.ts +2 -2
  26. package/dist/core/index.js +3 -7
  27. package/dist/extra/index.cjs +17 -54
  28. package/dist/extra/index.cjs.map +1 -1
  29. package/dist/extra/index.d.cts +4 -4
  30. package/dist/extra/index.d.ts +4 -4
  31. package/dist/extra/index.js +3 -9
  32. package/dist/graph/index.cjs +329 -174
  33. package/dist/graph/index.cjs.map +1 -1
  34. package/dist/graph/index.d.cts +3 -3
  35. package/dist/graph/index.d.ts +3 -3
  36. package/dist/graph/index.js +10 -6
  37. package/dist/{graph-fCsaaVIa.d.cts → graph-BYFlyNpX.d.cts} +47 -45
  38. package/dist/{graph-Dc-P9BVm.d.ts → graph-gISB9n3n.d.ts} +47 -45
  39. package/dist/{index-N704txAA.d.ts → index-7WnwgjMu.d.ts} +5 -7
  40. package/dist/{index-DWq0P9T6.d.ts → index-B43mC7uY.d.cts} +5 -7
  41. package/dist/{index-BmoUvOGN.d.ts → index-B80mMeuf.d.ts} +2 -4
  42. package/dist/{index-DlGMf_Qe.d.cts → index-BqOWSFhr.d.cts} +2 -2
  43. package/dist/{index-BBVBYPxr.d.cts → index-CEDaJaYE.d.ts} +5 -7
  44. package/dist/{index-DhXznWyH.d.ts → index-CgKPpiu8.d.ts} +2 -2
  45. package/dist/{index-Db27z6Ki.d.cts → index-Ci_vPaVm.d.cts} +90 -7
  46. package/dist/{index-BR19vQME.d.ts → index-DKaB2x0T.d.ts} +90 -7
  47. package/dist/{index-ClaKZFPl.d.cts → index-D_tUMcpz.d.cts} +5 -7
  48. package/dist/{index-YlOH1Gw6.d.cts → index-EmzYk-TG.d.cts} +2 -4
  49. package/dist/index.cjs +503 -282
  50. package/dist/index.cjs.map +1 -1
  51. package/dist/index.d.cts +99 -18
  52. package/dist/index.d.ts +99 -18
  53. package/dist/index.js +170 -63
  54. package/dist/index.js.map +1 -1
  55. package/dist/{meta-BV4pj9ML.d.cts → meta-npl5b97j.d.cts} +1 -53
  56. package/dist/{meta-BV4pj9ML.d.ts → meta-npl5b97j.d.ts} +1 -53
  57. package/dist/observable-DFBCBELR.d.cts +36 -0
  58. package/dist/observable-oAGygKvc.d.ts +36 -0
  59. package/dist/patterns/reactive-layout/index.cjs +204 -172
  60. package/dist/patterns/reactive-layout/index.cjs.map +1 -1
  61. package/dist/patterns/reactive-layout/index.d.cts +3 -3
  62. package/dist/patterns/reactive-layout/index.d.ts +3 -3
  63. package/dist/patterns/reactive-layout/index.js +4 -4
  64. package/package.json +1 -1
  65. package/dist/chunk-26A4E7J7.js.map +0 -1
  66. package/dist/chunk-3BLRREFM.js.map +0 -1
  67. package/dist/chunk-LKP7IWRV.js.map +0 -1
  68. package/dist/chunk-SHRJH2DN.js +0 -107
  69. package/dist/chunk-SHRJH2DN.js.map +0 -1
  70. package/dist/chunk-VZY2B2LU.js.map +0 -1
  71. package/dist/chunk-YX263TXI.js.map +0 -1
  72. package/dist/observable-Cz-AWhwR.d.cts +0 -42
  73. package/dist/observable-DCqlwGyl.d.ts +0 -42
  74. /package/dist/{chunk-ITDVOCFO.js.map → chunk-J7S54G7I.js.map} +0 -0
  75. /package/dist/{chunk-RZSQ7P2C.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,19 +31,16 @@ import {
31
31
  getNodeToken,
32
32
  observeSSE,
33
33
  observeSubscription
34
- } from "../../chunk-26A4E7J7.js";
35
- import "../../chunk-LKP7IWRV.js";
36
- import "../../chunk-SHRJH2DN.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-YX263TXI.js";
39
+ } from "../../chunk-F6ORUNO7.js";
43
40
  import "../../chunk-WZ2Z2CRV.js";
44
- import "../../chunk-3BLRREFM.js";
45
- import "../../chunk-ITDVOCFO.js";
46
- import "../../chunk-VZY2B2LU.js";
41
+ import "../../chunk-LB3RYLSC.js";
42
+ import "../../chunk-J7S54G7I.js";
43
+ import "../../chunk-BV3TPSBK.js";
47
44
  export {
48
45
  ACTOR_KEY,
49
46
  COMMAND_HANDLERS,
@@ -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,
@@ -917,7 +915,6 @@ var NodeImpl = class {
917
915
  this._downInternal(wasDirty ? [[RESOLVED]] : [[DIRTY], [RESOLVED]]);
918
916
  return;
919
917
  }
920
- this._cached = value;
921
918
  this._downInternal(wasDirty ? [[DATA, value]] : [[DIRTY], [DATA, value]]);
922
919
  }
923
920
  _runFn() {
@@ -1651,85 +1648,6 @@ function resolveDescribeFields(detail, fields) {
1651
1648
  return /* @__PURE__ */ new Set(["type", "deps"]);
1652
1649
  }
1653
1650
  }
1654
- function inferDescribeType(n) {
1655
- if (n._describeKind != null) return n._describeKind;
1656
- if (!n._hasDeps) return n._fn != null ? "producer" : "state";
1657
- if (n._fn == null) return "derived";
1658
- if (n._manualEmitUsed) return "operator";
1659
- return "derived";
1660
- }
1661
- function metaSnapshot(node2) {
1662
- const out = {};
1663
- for (const [key, child] of Object.entries(node2.meta)) {
1664
- try {
1665
- out[key] = child.get();
1666
- } catch {
1667
- }
1668
- }
1669
- return out;
1670
- }
1671
- function describeNode(node2, includeFields) {
1672
- const all = includeFields == null;
1673
- const metaKeys = !all && includeFields != null ? [...includeFields].filter((f) => f.startsWith("meta.")).map((f) => f.slice(5)) : null;
1674
- const wantsMeta = all || includeFields.has("meta") || metaKeys != null && metaKeys.length > 0;
1675
- let type = "state";
1676
- let deps = [];
1677
- if (node2 instanceof NodeImpl) {
1678
- type = inferDescribeType(node2);
1679
- deps = node2._deps.map((d) => d.name ?? "");
1680
- } else if (node2 instanceof DynamicNodeImpl) {
1681
- type = node2._describeKind ?? "derived";
1682
- deps = [];
1683
- }
1684
- const out = { type, deps };
1685
- if (all || includeFields.has("status")) {
1686
- out.status = node2.status;
1687
- }
1688
- const guard = node2 instanceof NodeImpl && node2._guard || node2 instanceof DynamicNodeImpl && node2._guard || void 0;
1689
- if (wantsMeta) {
1690
- const rawMeta = { ...metaSnapshot(node2) };
1691
- if (guard != null && rawMeta.access === void 0) {
1692
- rawMeta.access = accessHintForGuard(guard);
1693
- }
1694
- if (metaKeys != null && metaKeys.length > 0 && !includeFields.has("meta")) {
1695
- const filtered = {};
1696
- for (const k of metaKeys) {
1697
- if (k in rawMeta) filtered[k] = rawMeta[k];
1698
- }
1699
- out.meta = filtered;
1700
- } else {
1701
- out.meta = rawMeta;
1702
- }
1703
- }
1704
- if (node2.name != null) {
1705
- out.name = node2.name;
1706
- }
1707
- if (all || includeFields.has("value")) {
1708
- try {
1709
- out.value = node2.get();
1710
- } catch {
1711
- }
1712
- }
1713
- if ((all || includeFields.has("v")) && node2.v != null) {
1714
- const vInfo = { id: node2.v.id, version: node2.v.version };
1715
- if ("cid" in node2.v) {
1716
- vInfo.cid = node2.v.cid;
1717
- vInfo.prev = node2.v.prev;
1718
- }
1719
- out.v = vInfo;
1720
- }
1721
- if (all || includeFields.has("guard")) {
1722
- if (guard != null) {
1723
- out.guard = accessHintForGuard(guard);
1724
- }
1725
- }
1726
- if (all || includeFields.has("lastMutation")) {
1727
- if (node2.lastMutation != null) {
1728
- out.lastMutation = node2.lastMutation;
1729
- }
1730
- }
1731
- return out;
1732
- }
1733
1651
 
1734
1652
  // src/core/sugar.ts
1735
1653
  function state(initial, opts) {
@@ -1804,7 +1722,6 @@ var ResettableTimer = class {
1804
1722
  createVersioning,
1805
1723
  defaultHash,
1806
1724
  derived,
1807
- describeNode,
1808
1725
  downWithBatch,
1809
1726
  dynamicNode,
1810
1727
  effect,
@@ -1815,7 +1732,6 @@ var ResettableTimer = class {
1815
1732
  isV1,
1816
1733
  knownMessageTypes,
1817
1734
  messageTier,
1818
- metaSnapshot,
1819
1735
  monotonicNs,
1820
1736
  node,
1821
1737
  normalizeActor,