@graphrefly/graphrefly 0.17.0 → 0.19.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 (77) hide show
  1. package/dist/{chunk-R6OHUUYB.js → chunk-AHRKWMNI.js} +7 -7
  2. package/dist/chunk-AHRKWMNI.js.map +1 -0
  3. package/dist/{chunk-2PORF4RP.js → chunk-BER7UYLM.js} +27 -32
  4. package/dist/chunk-BER7UYLM.js.map +1 -0
  5. package/dist/{chunk-646OG3PO.js → chunk-IRZAGZUB.js} +51 -52
  6. package/dist/chunk-IRZAGZUB.js.map +1 -0
  7. package/dist/{chunk-IHJHBADD.js → chunk-JC2SN46B.js} +385 -197
  8. package/dist/chunk-JC2SN46B.js.map +1 -0
  9. package/dist/{chunk-XJ6EMQ22.js → chunk-OO5QOAXI.js} +4 -10
  10. package/dist/chunk-OO5QOAXI.js.map +1 -0
  11. package/dist/{chunk-YXROQFXZ.js → chunk-UW77D7SP.js} +3 -3
  12. package/dist/{chunk-F2ULI3Q3.js → chunk-XUOY3YKN.js} +7 -3
  13. package/dist/chunk-XUOY3YKN.js.map +1 -0
  14. package/dist/chunk-YLR5JUJZ.js +111 -0
  15. package/dist/chunk-YLR5JUJZ.js.map +1 -0
  16. package/dist/{chunk-BV3TPSBK.js → chunk-YXR3WW3Q.js} +740 -755
  17. package/dist/chunk-YXR3WW3Q.js.map +1 -0
  18. package/dist/compat/nestjs/index.cjs +1127 -983
  19. package/dist/compat/nestjs/index.cjs.map +1 -1
  20. package/dist/compat/nestjs/index.d.cts +4 -4
  21. package/dist/compat/nestjs/index.d.ts +4 -4
  22. package/dist/compat/nestjs/index.js +7 -13
  23. package/dist/core/index.cjs +653 -749
  24. package/dist/core/index.cjs.map +1 -1
  25. package/dist/core/index.d.cts +2 -2
  26. package/dist/core/index.d.ts +2 -2
  27. package/dist/core/index.js +7 -7
  28. package/dist/extra/index.cjs +773 -795
  29. package/dist/extra/index.cjs.map +1 -1
  30. package/dist/extra/index.d.cts +4 -4
  31. package/dist/extra/index.d.ts +4 -4
  32. package/dist/extra/index.js +5 -11
  33. package/dist/graph/index.cjs +1036 -975
  34. package/dist/graph/index.cjs.map +1 -1
  35. package/dist/graph/index.d.cts +3 -3
  36. package/dist/graph/index.d.ts +3 -3
  37. package/dist/graph/index.js +8 -8
  38. package/dist/{graph-fCsaaVIa.d.cts → graph-KsTe57nI.d.cts} +127 -51
  39. package/dist/{graph-Dc-P9BVm.d.ts → graph-mILUUqW8.d.ts} +127 -51
  40. package/dist/{index-DhXznWyH.d.ts → index-8a605sg9.d.ts} +2 -2
  41. package/dist/{index-D7y9Q8W4.d.ts → index-B2SvPEbc.d.ts} +8 -69
  42. package/dist/{index-YlOH1Gw6.d.cts → index-BBUYZfJ1.d.cts} +122 -78
  43. package/dist/{index-ClaKZFPl.d.cts → index-Bjh5C1Tp.d.cts} +38 -35
  44. package/dist/{index-DWq0P9T6.d.ts → index-BjtlNirP.d.cts} +5 -7
  45. package/dist/{index-N704txAA.d.ts → index-BnkMgNNa.d.ts} +38 -35
  46. package/dist/{index-BBVBYPxr.d.cts → index-CgSiUouz.d.ts} +5 -7
  47. package/dist/{index-BmoUvOGN.d.ts → index-CvKzv0AW.d.ts} +122 -78
  48. package/dist/{index-4OIX-q0C.d.cts → index-UudxGnzc.d.cts} +8 -69
  49. package/dist/{index-DlGMf_Qe.d.cts → index-VHA43cGP.d.cts} +2 -2
  50. package/dist/index.cjs +6146 -5725
  51. package/dist/index.cjs.map +1 -1
  52. package/dist/index.d.cts +617 -383
  53. package/dist/index.d.ts +617 -383
  54. package/dist/index.js +4401 -4028
  55. package/dist/index.js.map +1 -1
  56. package/dist/{meta-BV4pj9ML.d.cts → meta-BnG7XAaE.d.cts} +395 -289
  57. package/dist/{meta-BV4pj9ML.d.ts → meta-BnG7XAaE.d.ts} +395 -289
  58. package/dist/observable-C8Kx_O6k.d.cts +36 -0
  59. package/dist/observable-DcBwQY7t.d.ts +36 -0
  60. package/dist/patterns/reactive-layout/index.cjs +1037 -857
  61. package/dist/patterns/reactive-layout/index.cjs.map +1 -1
  62. package/dist/patterns/reactive-layout/index.d.cts +3 -3
  63. package/dist/patterns/reactive-layout/index.d.ts +3 -3
  64. package/dist/patterns/reactive-layout/index.js +4 -4
  65. package/package.json +1 -1
  66. package/dist/chunk-2PORF4RP.js.map +0 -1
  67. package/dist/chunk-646OG3PO.js.map +0 -1
  68. package/dist/chunk-BV3TPSBK.js.map +0 -1
  69. package/dist/chunk-EBNKJULL.js +0 -231
  70. package/dist/chunk-EBNKJULL.js.map +0 -1
  71. package/dist/chunk-F2ULI3Q3.js.map +0 -1
  72. package/dist/chunk-IHJHBADD.js.map +0 -1
  73. package/dist/chunk-R6OHUUYB.js.map +0 -1
  74. package/dist/chunk-XJ6EMQ22.js.map +0 -1
  75. package/dist/observable-Cz-AWhwR.d.cts +0 -42
  76. package/dist/observable-DCqlwGyl.d.ts +0 -42
  77. /package/dist/{chunk-YXROQFXZ.js.map → chunk-UW77D7SP.js.map} +0 -0
@@ -0,0 +1,36 @@
1
+ import { Observable } from 'rxjs';
2
+ import { N as Node, l as Messages } from './meta-BnG7XAaE.cjs';
3
+
4
+ /** Options for {@link toObservable}. */
5
+ type ToObservableOptions = {
6
+ /**
7
+ * When `true`, emit raw `Messages` batches instead of extracted `DATA` values.
8
+ * Terminal batches are still emitted as the final `next()` before the
9
+ * Observable signal (error/complete).
10
+ */
11
+ raw?: boolean;
12
+ };
13
+ /**
14
+ * Bridge a `Node<T>` to an RxJS `Observable`.
15
+ *
16
+ * Default mode emits the node's value on each `DATA` message. Maps `ERROR` to
17
+ * `subscriber.error()` and `COMPLETE` to `subscriber.complete()`.
18
+ * Protocol-internal signals (DIRTY, RESOLVED, PAUSE, etc.) are skipped.
19
+ *
20
+ * With `{ raw: true }`, emits full `[[Type, Data?], ...]` message batches.
21
+ * The Observable terminates on ERROR or COMPLETE (the terminal batch is still
22
+ * emitted as the final `next()` before the Observable signal).
23
+ *
24
+ * For graph-level observation, use `toObservable(graph.resolve(path))` or
25
+ * subscribe to `graph.observe()` directly.
26
+ *
27
+ * Unsubscribing the Observable unsubscribes the node.
28
+ */
29
+ declare function toObservable<T>(node: Node<T>, options?: ToObservableOptions & {
30
+ raw?: false;
31
+ }): Observable<T>;
32
+ declare function toObservable<T>(node: Node<T>, options: ToObservableOptions & {
33
+ raw: true;
34
+ }): Observable<Messages>;
35
+
36
+ export { type ToObservableOptions as T, toObservable as t };
@@ -0,0 +1,36 @@
1
+ import { Observable } from 'rxjs';
2
+ import { N as Node, l as Messages } from './meta-BnG7XAaE.js';
3
+
4
+ /** Options for {@link toObservable}. */
5
+ type ToObservableOptions = {
6
+ /**
7
+ * When `true`, emit raw `Messages` batches instead of extracted `DATA` values.
8
+ * Terminal batches are still emitted as the final `next()` before the
9
+ * Observable signal (error/complete).
10
+ */
11
+ raw?: boolean;
12
+ };
13
+ /**
14
+ * Bridge a `Node<T>` to an RxJS `Observable`.
15
+ *
16
+ * Default mode emits the node's value on each `DATA` message. Maps `ERROR` to
17
+ * `subscriber.error()` and `COMPLETE` to `subscriber.complete()`.
18
+ * Protocol-internal signals (DIRTY, RESOLVED, PAUSE, etc.) are skipped.
19
+ *
20
+ * With `{ raw: true }`, emits full `[[Type, Data?], ...]` message batches.
21
+ * The Observable terminates on ERROR or COMPLETE (the terminal batch is still
22
+ * emitted as the final `next()` before the Observable signal).
23
+ *
24
+ * For graph-level observation, use `toObservable(graph.resolve(path))` or
25
+ * subscribe to `graph.observe()` directly.
26
+ *
27
+ * Unsubscribing the Observable unsubscribes the node.
28
+ */
29
+ declare function toObservable<T>(node: Node<T>, options?: ToObservableOptions & {
30
+ raw?: false;
31
+ }): Observable<T>;
32
+ declare function toObservable<T>(node: Node<T>, options: ToObservableOptions & {
33
+ raw: true;
34
+ }): Observable<Messages>;
35
+
36
+ export { type ToObservableOptions as T, toObservable as t };