@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.
- package/dist/{chunk-R6OHUUYB.js → chunk-AHRKWMNI.js} +7 -7
- package/dist/chunk-AHRKWMNI.js.map +1 -0
- package/dist/{chunk-2PORF4RP.js → chunk-BER7UYLM.js} +27 -32
- package/dist/chunk-BER7UYLM.js.map +1 -0
- package/dist/{chunk-646OG3PO.js → chunk-IRZAGZUB.js} +51 -52
- package/dist/chunk-IRZAGZUB.js.map +1 -0
- package/dist/{chunk-IHJHBADD.js → chunk-JC2SN46B.js} +385 -197
- package/dist/chunk-JC2SN46B.js.map +1 -0
- package/dist/{chunk-XJ6EMQ22.js → chunk-OO5QOAXI.js} +4 -10
- package/dist/chunk-OO5QOAXI.js.map +1 -0
- package/dist/{chunk-YXROQFXZ.js → chunk-UW77D7SP.js} +3 -3
- package/dist/{chunk-F2ULI3Q3.js → chunk-XUOY3YKN.js} +7 -3
- package/dist/chunk-XUOY3YKN.js.map +1 -0
- package/dist/chunk-YLR5JUJZ.js +111 -0
- package/dist/chunk-YLR5JUJZ.js.map +1 -0
- package/dist/{chunk-BV3TPSBK.js → chunk-YXR3WW3Q.js} +740 -755
- package/dist/chunk-YXR3WW3Q.js.map +1 -0
- package/dist/compat/nestjs/index.cjs +1127 -983
- package/dist/compat/nestjs/index.cjs.map +1 -1
- package/dist/compat/nestjs/index.d.cts +4 -4
- package/dist/compat/nestjs/index.d.ts +4 -4
- package/dist/compat/nestjs/index.js +7 -13
- package/dist/core/index.cjs +653 -749
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +7 -7
- package/dist/extra/index.cjs +773 -795
- package/dist/extra/index.cjs.map +1 -1
- package/dist/extra/index.d.cts +4 -4
- package/dist/extra/index.d.ts +4 -4
- package/dist/extra/index.js +5 -11
- package/dist/graph/index.cjs +1036 -975
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +3 -3
- package/dist/graph/index.d.ts +3 -3
- package/dist/graph/index.js +8 -8
- package/dist/{graph-fCsaaVIa.d.cts → graph-KsTe57nI.d.cts} +127 -51
- package/dist/{graph-Dc-P9BVm.d.ts → graph-mILUUqW8.d.ts} +127 -51
- package/dist/{index-DhXznWyH.d.ts → index-8a605sg9.d.ts} +2 -2
- package/dist/{index-D7y9Q8W4.d.ts → index-B2SvPEbc.d.ts} +8 -69
- package/dist/{index-YlOH1Gw6.d.cts → index-BBUYZfJ1.d.cts} +122 -78
- package/dist/{index-ClaKZFPl.d.cts → index-Bjh5C1Tp.d.cts} +38 -35
- package/dist/{index-DWq0P9T6.d.ts → index-BjtlNirP.d.cts} +5 -7
- package/dist/{index-N704txAA.d.ts → index-BnkMgNNa.d.ts} +38 -35
- package/dist/{index-BBVBYPxr.d.cts → index-CgSiUouz.d.ts} +5 -7
- package/dist/{index-BmoUvOGN.d.ts → index-CvKzv0AW.d.ts} +122 -78
- package/dist/{index-4OIX-q0C.d.cts → index-UudxGnzc.d.cts} +8 -69
- package/dist/{index-DlGMf_Qe.d.cts → index-VHA43cGP.d.cts} +2 -2
- package/dist/index.cjs +6146 -5725
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +617 -383
- package/dist/index.d.ts +617 -383
- package/dist/index.js +4401 -4028
- package/dist/index.js.map +1 -1
- package/dist/{meta-BV4pj9ML.d.cts → meta-BnG7XAaE.d.cts} +395 -289
- package/dist/{meta-BV4pj9ML.d.ts → meta-BnG7XAaE.d.ts} +395 -289
- package/dist/observable-C8Kx_O6k.d.cts +36 -0
- package/dist/observable-DcBwQY7t.d.ts +36 -0
- package/dist/patterns/reactive-layout/index.cjs +1037 -857
- package/dist/patterns/reactive-layout/index.cjs.map +1 -1
- package/dist/patterns/reactive-layout/index.d.cts +3 -3
- package/dist/patterns/reactive-layout/index.d.ts +3 -3
- package/dist/patterns/reactive-layout/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-2PORF4RP.js.map +0 -1
- package/dist/chunk-646OG3PO.js.map +0 -1
- package/dist/chunk-BV3TPSBK.js.map +0 -1
- package/dist/chunk-EBNKJULL.js +0 -231
- package/dist/chunk-EBNKJULL.js.map +0 -1
- package/dist/chunk-F2ULI3Q3.js.map +0 -1
- package/dist/chunk-IHJHBADD.js.map +0 -1
- package/dist/chunk-R6OHUUYB.js.map +0 -1
- package/dist/chunk-XJ6EMQ22.js.map +0 -1
- package/dist/observable-Cz-AWhwR.d.cts +0 -42
- package/dist/observable-DCqlwGyl.d.ts +0 -42
- /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 };
|