@yorkie-js/react 0.7.1 → 0.7.3-alpha
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ClientOptions } from '@yorkie-js/sdk';
|
|
2
|
+
import { Counter } from '@yorkie-js/sdk';
|
|
2
3
|
import { default as default_2 } from 'react';
|
|
3
4
|
import { Document as Document_2 } from '@yorkie-js/sdk';
|
|
4
5
|
import { Indexable } from '@yorkie-js/sdk';
|
|
@@ -9,6 +10,8 @@ import { Presence } from '@yorkie-js/sdk';
|
|
|
9
10
|
import { PropsWithChildren } from 'react';
|
|
10
11
|
import { RevisionSummary } from '@yorkie-js/sdk';
|
|
11
12
|
import { StreamConnectionStatus } from '@yorkie-js/sdk';
|
|
13
|
+
import { Text as Text_2 } from '@yorkie-js/sdk';
|
|
14
|
+
import { Tree } from '@yorkie-js/sdk';
|
|
12
15
|
|
|
13
16
|
/**
|
|
14
17
|
* `ChannelProvider` is a component that provides Channel context to its children.
|
|
@@ -42,6 +45,8 @@ declare type ChannelProviderProps = PropsWithChildren<{
|
|
|
42
45
|
isRealtime?: boolean;
|
|
43
46
|
}>;
|
|
44
47
|
|
|
48
|
+
export { Counter }
|
|
49
|
+
|
|
45
50
|
/**
|
|
46
51
|
* `createDocumentSelector` is a factory function that provides a selector-based `useDocument` hook.
|
|
47
52
|
* By currying this function, type T can be inferred from the selector function.
|
|
@@ -87,6 +92,10 @@ export { RevisionSummary }
|
|
|
87
92
|
*/
|
|
88
93
|
export declare function shallowEqual<T>(valueA: T, valueB: T): boolean;
|
|
89
94
|
|
|
95
|
+
export { Text_2 as Text }
|
|
96
|
+
|
|
97
|
+
export { Tree }
|
|
98
|
+
|
|
90
99
|
/**
|
|
91
100
|
* `useChannel` is a custom hook that returns the channel state.
|
|
92
101
|
* It must be used within a ChannelProvider.
|
|
@@ -5828,6 +5828,8 @@ class ElementRHT {
|
|
|
5828
5828
|
if (!node || executedAt.after(node.getValue().getPositionedAt())) {
|
|
5829
5829
|
this.nodeMapByKey.set(key, newNode);
|
|
5830
5830
|
value.setMovedAt(executedAt);
|
|
5831
|
+
} else if (!node.isRemoved()) {
|
|
5832
|
+
value.remove(node.getValue().getPositionedAt());
|
|
5831
5833
|
}
|
|
5832
5834
|
return removed;
|
|
5833
5835
|
}
|
|
@@ -19938,7 +19940,7 @@ function createAuthInterceptor(apiKey, token) {
|
|
|
19938
19940
|
};
|
|
19939
19941
|
}
|
|
19940
19942
|
const name$1 = "@yorkie-js/sdk";
|
|
19941
|
-
const version$1 = "0.7.
|
|
19943
|
+
const version$1 = "0.7.3-alpha";
|
|
19942
19944
|
const pkg$1 = {
|
|
19943
19945
|
name: name$1,
|
|
19944
19946
|
version: version$1
|
|
@@ -21793,7 +21795,7 @@ if (typeof globalThis !== "undefined") {
|
|
|
21793
21795
|
};
|
|
21794
21796
|
}
|
|
21795
21797
|
const name = "@yorkie-js/react";
|
|
21796
|
-
const version = "0.7.
|
|
21798
|
+
const version = "0.7.3-alpha";
|
|
21797
21799
|
const pkg = {
|
|
21798
21800
|
name,
|
|
21799
21801
|
version
|
|
@@ -22366,7 +22368,10 @@ const useChannelSessionCount = () => {
|
|
|
22366
22368
|
};
|
|
22367
22369
|
export {
|
|
22368
22370
|
ChannelProvider,
|
|
22371
|
+
Counter,
|
|
22369
22372
|
DocumentProvider,
|
|
22373
|
+
Text,
|
|
22374
|
+
Tree,
|
|
22370
22375
|
YorkieProvider,
|
|
22371
22376
|
createDocumentSelector,
|
|
22372
22377
|
shallowEqual,
|