@yorkie-js/react 0.7.10 → 0.7.11

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.
@@ -98,7 +98,7 @@ declare type DocumentContextType<R, P extends Indexable = Indexable> = {
98
98
  * This component must be under a `YorkieProvider` component to initialize the
99
99
  * Yorkie client properly.
100
100
  */
101
- export declare const DocumentProvider: <R, P extends Indexable = Indexable>({ docKey, initialRoot, initialPresence, enableDevtools, syncMode, documentPollInterval, children, }: {
101
+ export declare const DocumentProvider: <R, P extends Indexable = Indexable>({ docKey, initialRoot, initialPresence, enableDevtools, syncMode, documentPollInterval, disableGC, children, }: {
102
102
  docKey: string;
103
103
  initialRoot?: R;
104
104
  initialPresence?: P;
@@ -113,6 +113,13 @@ export declare const DocumentProvider: <R, P extends Indexable = Indexable>({ do
113
113
  * Default: 3000. Applied at attach time.
114
114
  */
115
115
  documentPollInterval?: number;
116
+ /**
117
+ * `disableGC` declares that this attachment will not produce or consume
118
+ * tombstones. Use only with Counter or primitive workloads; misuse on a
119
+ * document that uses Tree, Text, or Array deletions leads to undefined
120
+ * GC behavior on this client.
121
+ */
122
+ disableGC?: boolean;
116
123
  children?: default_2.ReactNode;
117
124
  }) => JSX.Element;
118
125
 
@@ -317,6 +324,13 @@ export declare function useYorkieDoc<R, P extends Indexable = Indexable>(apiKey:
317
324
  enableDevtools?: boolean;
318
325
  syncMode?: SyncMode;
319
326
  documentPollInterval?: number;
327
+ /**
328
+ * `disableGC` declares that this attachment will not produce or consume
329
+ * tombstones. Use only with Counter or primitive workloads; misuse on a
330
+ * document that uses Tree, Text, or Array deletions leads to undefined
331
+ * GC behavior on this client.
332
+ */
333
+ disableGC?: boolean;
320
334
  }): {
321
335
  root: R;
322
336
  presences: Array<{