@huanlin/dsh-plugin-input-history 0.1.1 → 0.2.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/README.md +30 -30
- package/lib/client.js +217 -167
- package/lib/client.js.map +1 -1
- package/lib/types/client/HistoryDock.d.ts +27 -15
- package/lib/types/client/HistoryDock.js +136 -32
- package/lib/types/client/dom.d.ts +63 -39
- package/lib/types/client/dom.js +121 -78
- package/lib/types/client/index.d.ts +14 -22
- package/lib/types/client/index.js +35 -128
- package/lib/types/index.d.ts +6 -7
- package/lib/types/index.js +6 -7
- package/package.json +16 -19
- package/lib/invariant.js +0 -24
- package/lib/types/invariant.d.ts +0 -16
- package/lib/types/invariant.js +0 -26
package/lib/types/invariant.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package-owned invariant companion for `@huanlin/dsh-plugin-input-history`.
|
|
3
|
-
*
|
|
4
|
-
* @module @huanlin/dsh-plugin-input-history/invariant
|
|
5
|
-
*/
|
|
6
|
-
const PACKAGE_NAME = '@huanlin/dsh-plugin-input-history';
|
|
7
|
-
/** Cordis companion plugin name. */
|
|
8
|
-
export const name = 'dsh-plugin-input-history-invariant';
|
|
9
|
-
/** Service required before the companion can reserve package ownership. */
|
|
10
|
-
export const inject = ['invariants'];
|
|
11
|
-
/**
|
|
12
|
-
* No runtime invariant: the single `conversation.composer.dock` slot
|
|
13
|
-
* registration is a registry-owned contribution whose disposal is proven
|
|
14
|
-
* by the HMR-safety spec. The plugin's only mutable state is the
|
|
15
|
-
* localStorage-backed history array, whose lifecycle is bounded by the
|
|
16
|
-
* browser profile (not the cordis fiber) and whose write path is
|
|
17
|
-
* last-writer-wins with try/catch containment.
|
|
18
|
-
*/
|
|
19
|
-
const install = () => { };
|
|
20
|
-
/**
|
|
21
|
-
* Register this package's invariant companion.
|
|
22
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
23
|
-
* @returns the installed registration's disposer after setup succeeds.
|
|
24
|
-
*/
|
|
25
|
-
export const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
26
|
-
/* jscpd:ignore-end */
|