after
element, if it doesn't exist, create it implicitly. |
+| [afterShadow](./kit.domproxy.aftershadow.md) | ShadowRoot | Returns the ShadowRoot
of the after
element. |
+| [before](./kit.domproxy.before.md) | Before | Returns the before
element, if it doesn't exist, create it implicitly. |
+| [beforeShadow](./kit.domproxy.beforeshadow.md) | ShadowRoot | Returns the ShadowRoot
of the before
element. |
+| [current](./kit.domproxy.current.md) | ProxiedElement | A proxy that always point to realCurrent
, and if realCurrent
changes, all action will be forwarded to new realCurrent
|
+| [destroyed](./kit.domproxy.destroyed.md) | boolean | |
+| [observer](./kit.domproxy.observer.md) | { readonly observer: MutationObserver \| null; callback: MutationCallback \| undefined; init: MutationObserverInit \| undefined; } | Observer for the current node. You need to set callback and init to activate it. |
+| [realCurrent](./kit.domproxy.realcurrent.md) | ProxiedElement \| null | The real current of the current
|
-## Variables
+## Methods
-| Variable | Description |
+| Method | Description |
| --- | --- |
-| [enhanceDebugger](./kit.domproxy.enhancedebugger.md) | |
+| [destroy()](./kit.domproxy.destroy.md) | Destroy the DOMProxy |
+| [has(type)](./kit.domproxy.has.md) | Get weak reference to before
node |
+| [has(type)](./kit.domproxy.has_1.md) | Get weak reference to after
node |
+| [has(type)](./kit.domproxy.has_2.md) | Get weak reference to beforeShadow
or afterShadow
node |
diff --git a/api-documents/kit.eventwatcher.md b/api-documents/kit.eventwatcher.md
index 0b84ace..4ef4942 100644
--- a/api-documents/kit.eventwatcher.md
+++ b/api-documents/kit.eventwatcher.md
@@ -11,7 +11,7 @@ A Watcher based on event handlers.
```typescript
export declare class EventWatcher.replace(() => initialElements)
|
+| initialElements | readonly T\[\] | (Optional) provides initial results, equals to .replace(() => initialElements)
|
diff --git a/api-documents/kit.liveselector.at.md b/api-documents/kit.liveselector.at.md
index 669fbe0..6b7ea9a 100644
--- a/api-documents/kit.liveselector.at.md
+++ b/api-documents/kit.liveselector.at.md
@@ -27,6 +27,5 @@ at(n: SingleMode extends true ? 'LiveSelector.nth() is not available in SingleMo
```ts
ls.at(-1)
-
```
diff --git a/api-documents/kit.liveselector.clone.md b/api-documents/kit.liveselector.clone.md
index de95d6b..123953e 100644
--- a/api-documents/kit.liveselector.clone.md
+++ b/api-documents/kit.liveselector.clone.md
@@ -22,6 +22,5 @@ a new LiveSelector with same action
```ts
ls.clone()
-
```
diff --git a/api-documents/kit.liveselector.closest.md b/api-documents/kit.liveselector.closest.md
index 3aa4c15..b9b3534 100644
--- a/api-documents/kit.liveselector.closest.md
+++ b/api-documents/kit.liveselector.closest.md
@@ -27,6 +27,5 @@ closeststatic
| Call this function to enhance the debug experience in the Chrome DevToolsYou need to open "Enable custom formatters" in your DevTools settings. |
| [evaluate()](./kit.liveselector.evaluate.md) | | Evaluate selector expression |
| [filter(f)](./kit.liveselector.filter.md) | | Select the elements of a LiveSelector that meet the condition specified in a callback function. |
| [flat()](./kit.liveselector.flat.md) | | Flat T\[\]\[\] to T\[\] |
diff --git a/api-documents/kit.liveselector.queryselector.md b/api-documents/kit.liveselector.queryselector.md
index 2a8e2d9..9742b15 100644
--- a/api-documents/kit.liveselector.queryselector.md
+++ b/api-documents/kit.liveselector.queryselector.md
@@ -27,7 +27,6 @@ querySelectorkey
If the key is changed, the same node will call through forEachRemove
then forEach
|
| [defaultStarterForThen()](./kit.watcher.defaultstarterforthen.md) | | |
| [dismissSingleModeWarning()](./kit.watcher.dismisssinglemodewarning.md) | | Dismiss the warning that let you enable single mode but the warning is false positive. |
-| [enhanceDebugger()](./kit.watcher.enhancedebugger.md) | static
| Call this function to enhance the debug experience in the Chrome DevToolsYou need to open "Enable custom formatters" in your DevTools settings. |
| [getDOMProxyByKey(key)](./kit.watcher.getdomproxybykey.md) | | Get DOMProxy by key. DOMProxy will be unavailable if it is deleted |
| [omitWarningForForgetWatch()](./kit.watcher.omitwarningforforgetwatch.md) | | If you're expecting Watcher may not be called, call this function, this will omit the warning. |
| [omitWarningForRepeatedKeys()](./kit.watcher.omitwarningforrepeatedkeys.md) | | If you're expecting repeating keys, call this function, this will omit the warning. |
diff --git a/api-documents/kit.watcher.setcomparer.md b/api-documents/kit.watcher.setcomparer.md
index 014e2e7..b93796d 100644
--- a/api-documents/kit.watcher.setcomparer.md
+++ b/api-documents/kit.watcher.setcomparer.md
@@ -18,8 +18,8 @@ setComparer(keyComparer?: (a: unknown, b: unknown) => boolean, valueComparer?: (
| Parameter | Type | Description |
| --- | --- | --- |
-| keyComparer | (a: unknown, b: unknown) => boolean | compare between two keys, defaults to ===
|
-| valueComparer | (a: T, b: T) => boolean | compare between two value, defaults to ===
|
+| keyComparer | (a: unknown, b: unknown) => boolean | (Optional) compare between two keys, defaults to ===
|
+| valueComparer | (a: T, b: T) => boolean | (Optional) compare between two value, defaults to ===
|
Returns:
@@ -33,6 +33,5 @@ watcher.setComparer(
(a, b) => JSON.stringify(a) === JSON.stringify(b),
(a, b) => a.equals(b)
)
-
```
diff --git a/api-documents/kit.watcher.then.md b/api-documents/kit.watcher.then.md
index ea3381f..fb229d5 100644
--- a/api-documents/kit.watcher.then.md
+++ b/api-documents/kit.watcher.then.md
@@ -19,9 +19,9 @@ then- | Element | -- | Real Current | -
| | -{chain.type} | -- {Array.isArray(chain.param) ? ( - chain.param.map((paramI: any, index: any, params: any) => ( - - - {index === params.length - 1 ? '' : , } - - )) - ) : ( - - )} - | -
- {LiveSelectorDevtoolsEnhancer.getPrivateItems(obj).single ? ' (SingleMode)' : null}
-
- | | -{chain.type} | -- {Array.isArray(chain.param) ? ( - chain.param.map((paramI, index, params) => ( - - - {index === params.length - 1 ? '' : , } - - )) - ) : ( - - )} - | -
{ls.single ? ' (SingleMode)' : null}
- {watcher.isWatching ? ' Running' : ' Not running'}
- {state.refreshed ? this.body(obj) : null}
-
- )
- }
- return null
- }
- hasBody(obj: unknown): obj is AnyWatcher {
- if (obj instanceof Watcher) {
- const [state, setState] = React.useState